3 ms·
Those are two different algorithms for searching in a graph (they are in fact very similar, one uses a queue, and the other uses a stack). Check your Cormen.
by ekr 13y ago
Those are two different algorithms for searching in a graph (they are in fact very similar, one uses a queue, and the other uses a stack). Check your Cormen.
- sltkr 13y agoIt's more like: breadth-first search is a specialization of Dijkstra's algorithm, which is a specialization of A*.
- jmt7les 13y agoA* uses BFS but was a specialization of Dijkstra's, not the other way around.
- sgeisenh 13y agoWhile breadth-first search and Dijkstra's have a lot in common, Dijkstra's is a priority first search which is inherently sequential, whereas there is some parallelism to be had in BFS since you can check the neighbors of your frontier concurrently given a data structure with which it is efficient to do so.