Research any topic before you write.

Find related topics. | Discover entities. | See connections. | Build a topical map.

Breadth-first search

In computer science, breadth-first search (BFS) is an algorithm for searching a tree data structure for a node that satisfies a given property. 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. Extra memory, usually a queue, is needed to keep track of the child nodes that were…

Applications, Art & Science

Use the mouse wheel or two fingers (on touchscreens) to zoom in and out of the map.

Research this topic

Explore the main themes, entities and connections around Breadth-first search. Start with the topic map, then use the sections below for research and deeper semantic analysis.

Explore this topic

Start with a few of the strongest sections from the source topic. These are research directions, not a list of keywords you must use.

Key facts & relationships

High-confidence facts extracted from structured source data. Use them as anchors for further research.

Class
Search algorithm
Data structure
Graph
Optimal
Yes (always finds shortest paths)
Worst-case performance
O ( | V | + | E | ) {\displaystyle O(|V|+|E|)}
Worst-case space complexity
O ( | V | ) {\displaystyle O(|V|)}

Topics to explore

Browse the full topic structure. Each item opens a new analysis centered on that subject.

Overview

Pseudocode

Analysis

Applications

Advanced semantic analysis

Deeper signals for content research, entity SEO and topical coverage. The plain-language headings explain what each technical view is useful for.

Map overview Semantic statistics

Breadth-first search

Nodes44
Edges43
Triples30
Avg. degree1.95
Density0.045455
Components1

How this topic connects Entity context

See the strongest relationship patterns around the current topic before diving into the raw triples.

Breadth-first search

Top relations

has application · 12
Breadth-first search → Aho-Corasick, Breadth-first, Cheney's, Construction, Copying, Cuthill, Deserialization, Fulkerson, Implementing, McKee, Reverse, Testing
see also · 6
Breadth-first search → Algorithm, Depth-first, Object, Parallel, Partition-based, Tree
related to Completeness · 4
Breadth-first search → Breadth-first, However, In, When
related to External links · 3
Breadth-first search → Open Data Structures, Pat Morin, Section
Class · 1
Breadth-first search → Search algorithm
Data structure · 1
Breadth-first search → Graph
Optimal · 1
Breadth-first search → Yes (always finds shortest paths)
Worst-case performance · 1
Breadth-first search → O ( | V | + | E | ) {\displaystyle O(|V|+|E|)}
Worst-case space complexity · 1
Breadth-first search → O ( | V | ) {\displaystyle O(|V|)}

Important terminology Word statistics

Use these terms to understand the vocabulary surrounding the topic, not as a checklist for keyword stuffing.

Important terminology

search breadth-first graph tree bfs algorithm depth-first displaystyle nodes node may find queue shortest vertices space infinite graphs explored example

Entity relationships Subject–Predicate–Object triples

SubjectPredicateObjectConfidenceSrc
Breadth-first searchClassSearch algorithm1.00infobox
Breadth-first searchData structureGraph1.00infobox
Breadth-first searchOptimalYes (always finds shortest paths)1.00infobox
Breadth-first searchWorst-case performanceO ( | V | + | E | ) {\displaystyle O(|V|+|E|)}1.00infobox
Breadth-first searchWorst-case space complexityO ( | V | ) {\displaystyle O(|V|)}1.00infobox
Breadth-first searchhas applicationBreadth-first0.60section
Breadth-first searchhas applicationCopying0.60section
Breadth-first searchhas applicationCheney's0.60section
Breadth-first searchhas applicationReverse0.60section
Breadth-first searchhas applicationCuthill0.60section
Breadth-first searchhas applicationMcKee0.60section
Breadth-first searchhas applicationFulkerson0.60section

Related concept clusters Concept neighborhoods

These clusters group vocabulary that occurs around closely connected concepts in the source material.

    Connections between topic areas Semantic bridges

    Bridges can reveal useful research angles that are easy to miss in a flat list of related terms.

    Min side: 3
    For writers, content strategists, SEOs, marketers and creators — from quick topic research to advanced semantic analysis.