Skip to main content
Top

1992 | OriginalPaper | Chapter

Depth-First and Breadth-First Search

Author : Dexter C. Kozen

Published in: The Design and Analysis of Algorithms

Publisher: Springer New York

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Depth-first search (DFS) and breadth-first search (BFS) are two of the most useful subroutines in graph algorithms. They allow one to search a graph in linear time and compile information about the graph. They differ in that the former uses a stack (LIFO) discipline and the latter uses a queue (FIFO) discipline to choose the next edge to explore.

Metadata
Title
Depth-First and Breadth-First Search
Author
Dexter C. Kozen
Copyright Year
1992
Publisher
Springer New York
DOI
https://doi.org/10.1007/978-1-4612-4400-4_4

Premium Partner