Did you know Cards Games

Depth-first search

Depth-first search: algorithm for traversing or searching tree or graph data structures. No. 32,953 of 4,515,532 cards by fame.

Depth-first search: quick facts

Description
Algorithm for traversing or searching tree or graph data structures
Rarity in the game
Legendary card
In its topic
No. 745 of 9,102 “Computer science” cards
Wikipedia
article in 39 languages
Wikidata
Q816319
Wikipedia page views
about 17,000 a month (November 2025 – October 2026)

Fame score: Wikipedia page views (July 2015 – October 2026, 39 languages). Updated .

Picture illustrating “Depth-first search”
Photo: Alexander Drichel, CC BY-SA 3.0 (Wikimedia Commons)

Depth-first search: summary

In computer science, depth-first search is an algorithm for traversing or searching tree or graph data structures. The algorithm starts at the root node (selecting some arbitrary node as the root node in the case of a graph) and explores as far as possible along each branch before backtracking. Extra memory, usually a stack, is needed to keep track of the nodes discovered so far along a specified branch which helps in backtracking of the graph.

Source: Wikipedia (CC BY-SA 4.0)

More cards: Computer science

  • HTML5 — No. 374 of the “Computer science” cards
  • Vint Cerf — No. 845 of the “Computer science” cards
  • Evernote — No. 1,491 of the “Computer science” cards
  • Floyd–Warshall algorithm — No. 1,745 of the “Computer science” cards

The best-known of the 9,102 “Computer science” cards

This card's topics

“Depth-first search” is one of the 4,515,532 cards of Did you know Cards, the free Wikipedia card game where you learn as you play: every card is a piece of knowledge from Wikipedia. Open boosters, complete your albums and challenge other players to duels.