-
Notifications
You must be signed in to change notification settings - Fork 0
Search Algorithms
Kyle Coberly edited this page Aug 26, 2017
·
1 revision
- Used in searching trees and graphs
- Follow a path from the beginning vertex until the last vertex
- Then follow the next path
- Until there are no paths left.
- Used in searching trees and graphs
- Uses a queue
- Finds the shortest path
- Find an unvisted vertex that is adjacent to the current vertex
- Add it to the list of visited vertices
- Add it to the queue
- Take the next vertex (v) from the graph and add it to the list of visited vertices
- Add all unmarked vertices that are adjacent to v and add them to the queue
- Also called linear or brute-force