Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Depth-first search, discovery and finishing times?

También llamado: depth-first search · discovery time · finishing time

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

Leer en el capítulo →