请输入您要查询的字词:

 

单词 TheAnnalsOfHavingCompensatedToCompleteSurveys
释义

The Annals of Having Compensated To Complete Surveys


The depth-first search (DFS) is a method for finding a spanning forest of a connected graphMathworldPlanetmath (specifically, a spanning treeMathworldPlanetmath in the case of an undirected connected graph), and is a useful for other . In particular, the DFS is useful for finding the connected componentsMathworldPlanetmathPlanetmathPlanetmath of a graph. This article currently describes only the DFS for an undirected graph.

\\theoremstyle

definition

Definition (DFS on an Undirected Graph)

Assume that the undirected graph G=(V,E) is connected. The DFS proceeds as follows.

  1. 1.

    Fix a vertex v in G and mark it as visited.

  2. 2.

    For each edge (v,w) from v to w:

    • If w has been visited, do nothing.

    • If w has not been visited, perform a DFS starting from w.

When the search is , it G into two sets. One the directed edges between visited vertices, called tree edges, which form a directed spanning tree of the graph. The other the remaining edges of G which were left unexamined because they were incidentPlanetmathPlanetmathPlanetmath on a vertex that was already visited at some in the search. Because these unexamined edges can be seen as returning to vertices that were previously visited, they are called back edges.

References

  • 1 Swamy, M.N.S., Thulasiraman, K., Graphs, Networks and Algorithms, John Wiley and Sons, New York, 1981.
随便看

 

数学辞典收录了18232条数学词条,基本涵盖了常用数学知识及数学英语单词词组的翻译及用法,是数学学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2025/5/4 9:39:47