Skip to content
ricerca in profondità

File:Depth-first-tree.svg · Wikimedia Commons · See Wikimedia Commons

EntityQ816319· pop 42· linked from 194 articles

ricerca in profondità

Sign in to save

Also known as DFS, depth-first traversal, depth first search, depth-first search

algoritmo ricorsivo di ricerca su grafi che permette di individuare la loro struttura

Key facts

Class
Search algorithm
Data structure
Graph
Worst case performance
O ( | V | + | E | ) {\displaystyle O(|V|+|E|)} for explicit graphs traversed without repetition, O ( b d ) {\displaystyle O(b^{d})} for implicit graphs with branching factor b searched to depth d
Worst case space complexity
O ( | V | ) {\displaystyle O(|V|)} if entire graph is traversed without repetition, O(longest path length searched) = O ( b d ) {\displaystyle O(bd)} for implicit graphs without elimination of duplicate nodes
Optimal
no (does not generally find shortest paths)

via Wikipedia infobox

Described at

Depth first search - Wikimedia Commons

commons.wikimedia.org →

Link to a page describing this subject · 937 chars · not written by Vinony

Wikidata facts

Subclass of
graph traversal
Image
Depth-first-tree.svg
Show 7 more facts
Commons category
Depth-first search
uses
LIFO
short name
DFS
maintained by WikiProject
WikiProject Mathematics
Commons gallery
Depth first search
Sources (2)

via Wikidata · CC0

Article · Italiano

Nella teoria dei grafi, la ricerca in profondità (in inglese depth-first search, in acronimo DFS), è un algoritmo di ricerca su alberi e grafi. A differenza della ricerca in ampiezza, ha la caratteristica di essere intrinsecamente ricorsivo.

Abstract from DBpedia / Wikipedia · CC BY-SA

Gallery (5)