Skip to content

Graph algorithms and search agents implemented in Lua language for fun and some practice.

Notifications You must be signed in to change notification settings

rkv0id/lua-graphsolv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-graphsolv

A project I've created for some fun and practice of basic and semi-advanced search agents using the Lua language.

The search problem was a simple path-finding problem, also if the algorithm allows it, we try to return the least costly path between the departure and the destination.

The graph nodes used for this problem are the central cities of the Tunisian governorates. Each city is only connected to the governorates that it has direct geographical access to it. As such, the maximum branching factor of the example graph constructed is 7.

The search algorithms implemented are:

  • Breadth-First Search
  • Depth-First Search
  • Uniform Cost Search (Dijkstra without the memorization of all paths)
  • Greedy Search
  • A-star Search
  • Hill Climbing Algorithm
  • Steepest-Ascent Hill Climbing

Tunisia governorates/cities graph example

About

Graph algorithms and search agents implemented in Lua language for fun and some practice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages