A depth-first search visits a vertex by marking it, then visiting in turn each unmarked neighbour of ; on the whole graph, it visits each vertex not yet marked. A clock ticks at each start and each end of a visit: ’s discovery time is the tick when its visit starts, its finishing time the tick when it ends. Between the two, is open. If the visit of calls the visit of , is the parent of ; the parent links form the DFS forest.
Computer Science · Glossário
O que é Depth-first search, discovery and finishing times?
Também chamado de: depth-first search · discovery time · finishing time