Skip to content

yuval-cohen-dev/Path-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Path-Algorithms

C project in visual studio 2022 using OpenGL , showcasing popular path algorithms.

config

https://github.com/cohenyuval315/Path-Algorithms/blob/main/Graphics/main.cpp

bool INIT_MAZE = true;  // Default=True - Show the maze in the console
bool INIT_GRAPH = true;  // Default=True - Show the graph and its nodes in the console, cannot be used with INIT_MAZE (MAZE overides)

Features:

  • using context menu , you can choose the path algorithm

Maze:

  1. Breadth-first search:
  • unknown target position.
  • searching through all tiles at each depth level before continuing to the next depth level.
  1. Depth-first search:
  • unknown target position.
  • search though the deepest depth level tile along each branch before backtracking.
  1. Best-first search:
  • known target position.
  • greedily prioritize tiles by target poisiton from a starting point ,and search though all tiles at each depth level before continuing to the next depth level.
  1. Astar:
  • known target position.
  • explore tiles by considering multiple paths from a starting point to a target ,and selects the shortest path based on heuristic estimates.

Graph

  1. Uniform Cost Search:
  • variant of Dijkstra's algorithm.
  • explores the graph by considering paths with the lowest cumulative cost from the starting point to each node.


Preview

Maze:

  • in the video , you cant see the context menu , at first i used bf then dfs then astar
Maze.mp4

Graph:

Graph.mp4

About

C OpenGL Visual Studio 2022 - Showcase of popular search algorithm: Astar ,Best-FS , Breadth FS, Depth FS, UCS

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors