GO-V.ORG
As seen in

Breadth-first search

game tree In computer science, breadth-first search (BFS) is an algorithm for searching a tree data structure for a node that satisfies a given property.[src] It starts at the tree root and explores all nodes at the present depth prior to moving on to the nodes at the next depth level.[src] Extra memory, usually a queue, is needed to keep track of the child nodes that were encountered but not yet explored.[src] For example, in a chess endgame, a chess engine may build the game tree from the current position by applying all possible moves and use breadth-first search to find a winning position for White.[src] Implicit trees (such as game trees or other problem-solving trees) may be of infinite size; breadth-first search is guaranteed to find a solution node if one exists.[src] In contrast, (plain) depth-first search (DFS), which explores the node branch as far as possible before backtracking and expanding other nodes, may get lost in an infinite branch and never make it to the solution node.[src] Iterative deepening depth-first search avoids the latter drawback at the price of exploring the tree's top parts over and over again.[src] On the other hand, both depth-first algorithms typically require far less extra memory than breadth-first search.[src] Breadth-first search can be generalized to both undirected graphs and directed graphs with a given start node (sometimes referred to as a 'search key').…[src]

game tree In computer science, breadth-first search (BFS) is an algorithm for searching a tree data structure for a node that satisfies a given property.[src] It starts at the tree root and explores all nodes at the present depth prior to moving on to the nodes at the next depth level.[src] Extra memory, usually a queue, is needed to keep track of the child nodes that were encountered but not yet explored.[src] For example, in a chess endgame, a chess engine may build the game tree from the current position by applying all possible moves and use breadth-first search to find a winning position for White.[src] Implicit trees (such as game trees or other problem-solving trees) may be of infinite size; breadth-first search is guaranteed to find a solution node if one exists.[src] In contrast, (plain) depth-first search (DFS), which explores the node branch as far as possible before backtracking and expanding other nodes, may get lost in an infinite branch and never make it to the solution node.[src] Iterative deepening depth-first search avoids the latter drawback at the price of exploring the tree's top parts over and over again.[src] On the other hand, both depth-first algorithms typically require far less extra memory than breadth-first search.[src] Breadth-first search can be generalized to both undirected graphs and directed graphs with a given start node (sometimes referred to as a 'search key').[src] In state space search in artificial intelligence, repeated searches of vertices are often allowed, while in theoretical analysis of algorithms based on breadth-first search, precautions are typically taken to prevent repetitions.[src] BFS and its application in finding connected components of graphs were invented in 1945 by Konrad Zuse, in his (rejected) Ph.D.[src] thesis on the Plankalkül programming language, but this was not published until 1972.[src] It was reinvented in 1959 by Edward F.[src] Moore, who used it to find the shortest path out of a maze, and later developed by C.[src] Y.[src] Lee into a wire routing algorithm (published in 1961).[src] 6 v := Q.dequeue() 7 if v is the goal then 8 return v 9 for all edges from v to w in G.adjacentEdges(v) do 10 if w is not labeled as explored then 11 label w as explored 12 w.parent := v 13 Q.enqueue(w) ==BFS ordering== An enumeration of the vertices of a graph is said to be a BFS ordering if it is a possible output of the application of BFS to this graph.[src] Let G=(V,E) be a graph with n vertices.[src] Recall that N(v) is the set of neighbors of v .[src] Let \sigma=(v_1,\dots,v_m) be a list of distinct elements of V , for v\in V\setminus\{v_1,\dots,v_m\} , let \nu_{\sigma}(v) be the least i such that v_i is a neighbor of v , if such a i exists, and be \infty otherwise.[src] Let \sigma=(v_1,\dots,v_n) be an enumeration of the vertices of V .[src] The enumeration \sigma is said to be a BFS ordering (with source v_1 ) if, for all 1 , v_i is the vertex w\in V\setminus\{v_1,\dots,v_{i-1}\} such that \nu_{(v_1,\dots,v_{i-1})}(w) is minimal.[src] Equivalently, \sigma is a BFS ordering if, for all 1\le i with v_i\in N(v_k)\setminus N(v_j) , there exists a neighbor v_m of v_j such that m .[src]

32 sentences · 32 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Breadth-first search." encyclopegia.org, 2026, https://encyclopegia.org/wiki/breadth-first-search. Accessed 03 December 2026.

Chicago

"Breadth-first search." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/breadth-first-search.

APA

encyclopegia.org. (2026). Breadth-first search. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/breadth-first-search

Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date1972Wikipedia
publication date1961Wikipedia

Related articles

Google Search

stub · references available

search and rescue dog

stub · references available

2013 Norwegian First Division

stub · references available

First Book of Kings

stub · references available

First Epistle of John

stub · references available

Guardian First Book Award

stub · references available

First Army

stub · references available

Bulgarian First Army

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1367399306 · 0.5 · snapshot enwiki-001367399306

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.