Skip to content
/ search Public
forked from asparagus/search

Generic search algorithm implementations. Includes Breadth First Search, Depth First Search and A*

Notifications You must be signed in to change notification settings

Foris/search

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

search

Generic search algorithm implementations. Includes Breadth First Search, Depth First Search and A*

Sample Usage:

import problem
import search
adjacency_matrix = [
  [0, 1, 0, 0, 1],
  [1, 0, 0, 0, 1],
  [1, 0, 0, 0, 0],
  [0, 0, 1, 0, 0],
  [0, 1, 0, 1, 0]]

start = 4
end = 0

spp = problem.ShortestPathProblem(adjacency_matrix, start, end)
a = search.BestFirstSearch()
a.solve(spp)

About

Generic search algorithm implementations. Includes Breadth First Search, Depth First Search and A*

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%