Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Breadth-first search
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Applications == Breadth-first search can be used to solve many problems in graph theory, for example: * Copying [[Garbage collection (computer science)|garbage collection]], [[Cheney's algorithm]] * Finding the [[shortest path]] between two nodes ''u'' and ''v'', with path length measured by number of edges (an advantage over [[depth-first search]])<ref>{{cite book | title = Algorithms for Interviews | page = 144 | chapter = 4. Algorithms on Graphs | last1 = Aziz | first1 = Adnan | last2 = Prakash | first2 = Amit | date = 2010 | publisher = Algorithmsforinterviews.com | isbn = 978-1453792995 }}</ref> * [[Cuthill–McKee algorithm|(Reverse) Cuthill–McKee]] mesh numbering * [[Ford–Fulkerson algorithm|Ford–Fulkerson method]] for computing the [[maximum flow problem|maximum flow]] in a [[flow network]] * Serialization/Deserialization of a binary tree vs serialization in sorted order, allows the tree to be re-constructed in an efficient manner. * Construction of the ''failure function'' of the [[Aho-Corasick]] pattern matcher. *Testing [[Bipartite graph#Testing bipartiteness|bipartiteness of a graph]]. *Implementing parallel algorithms for computing a graph's transitive closure. <ref>{{cite book |last1=Dhulipala |first1=Laxman |last2=Blelloch |first2=Guy E. |last3=Shun |first3=Julian |title=Theoretically Efficient Parallel Graph Algorithms Can Be Fast and Scalable |date=August 21, 2019 |page=17 |doi=10.1145/3210377.3210414 |arxiv=1805.05208 |isbn=9781450357999 |s2cid=44126609 }}</ref>
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Breadth-first search
(section)
Add topic