Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Depth-first search, discovery and finishing times?

Ook bekend als: depth-first search · discovery time · finishing time

Definition 24.13 University Computer Science — Year 1 · Hoofdstuk 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.

Lees in het hoofdstuk →