Metraipolis › archive › dc_e04940dcb563

Depth-first search — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Depth-first_search
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-07T16:54:53.600Z
SHA-256 of the archived text
f70a7a1e97639c2dceb40510f7d8daa279ba20699dce347a1d5bdbe9ff8d6225
Stable URL of this page
https://metraipolis.com/documento/dc_e04940dcb563

How to cite

Depth-first search — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Depth-first_search (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_e04940dcb563 (Metraipolis archive dc_e04940dcb563, sha256 f70a7a1e97639c2dceb40510f7d8daa279ba20699dce347a1d5bdbe9ff8d6225)
BibTeX
@misc{dce04940dcb563,
  title = {Depth-first search — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Depth-first_search},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_e04940dcb563; sha256 f70a7a1e97639c2dceb40510f7d8daa279ba20699dce347a1d5bdbe9ff8d6225},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Depth-first_search. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In computer science, depth-first search (DFS) 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. A version of depth-first search was investigated in the 19th century by French mathematician Charles Pierre Trémaux as a strategy for solving mazes.

Tema degli esploratori: statistica e scienza dei dati (deposito sistematico; ricerca «algorithm»).
Fonte: Wikipedia in inglese, voce «Depth-first search» — https://en.wikipedia.org/wiki/Depth-first_search
Wikidata Q816319 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q816319
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Depth-first_search?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1363174330, consultata il 2026-10-07T16:24:25.722Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 3a771c901c11d42ac739bc1c2566e003f4baeb411a016b84ec008bc5460d498f