DFS

Stack-based graph exploration

DFS stands for depth-first search, an algorithm that explores a tree or graph by going as deep as possible along each branch before backtracking.

It's fundamental in computer science for traversing data structures, solving mazes, and detecting cycles.

DFS contrasts with breadth-first search (BFS), which explores all neighbors at the current depth before moving deeper.

graph

vertex

Point where edges converge

  • edgeBoundary or sharpness
  • nodeConnection point in networks
  • directedGave guidance or orders

undirected · acyclic · connected · path · cycle · tree · forest · root · leaf · neighbor

recursion

stack

Items piled vertically

  • backtrackReverse one's position
  • pushForce something away
  • popFizzy drink, regionally

LIFO · depth · termination · unwinding · overflow

algorithm

backtracking

Reversing to find alternatives

reachability · pruning

filesystem

Hadoop

Open-source cluster framework

fault-tolerance · block · partition · scalability · throughput

retail

airport

Aviation passenger facility

liquor · perfume · allowance · declaration · departure · arrival · terminal · tourist

Opposites
graph traversal strategy

DFSbreadth-first search

Layer-by-layer graph exploration

breadth-first · Dijkstra's algorithm · random walk

Familiarity
Top 1,000,000
Profile
Used worldwide · Timeless · Rated G