Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Depth-first search, discovery and finishing times?

Dikenal juga sebagai: depth-first search · discovery time · finishing time

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

Baca dalam konteks →