Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Depth-first search, discovery and finishing times » ?

Aussi appelé : depth-first search · discovery time · finishing time

Definition 24.13 University Computer Science — Year 1 · Chapitre 24 — Graphs and Traversals

A depth-first search visits a vertex uu by marking it, then visiting in turn each unmarked neighbour of uu; on the whole graph, it visits each vertex not yet marked. A clock ticks at each start and each end of a visit: uu’s discovery time d(u)d(u) is the tick when its visit starts, its finishing time f(u)f(u) the tick when it ends. Between the two, uu is open. If the visit of uu calls the visit of vv, uu is the parent of vv; the parent links form the DFS forest.

Lire dans le chapitre →