Skip to content
/ Search Public

a star search, greedy best search and bfs and dfs lib

License

Notifications You must be signed in to change notification settings

vtarale/Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Search

plotting of graphs, a star search, greedy best search and bfs and dfs lib

importing the libs

import search.breath_first_search as bfs
import search.depth_first_search as dfs
import search.a_star_search as a_star
import search.greedy_best_first_search as gbfs

creating nodes

# a star search
a = a_star.Node(parameters)
# same applys for others

joining nodes

# a is a node
a.n = [other nodes]

searching

# Ex
bfs.bfs(a, h)

Running

python <name>.py

License

apache 2.0