文件名称:Connect-Set
介绍说明--下载内容均来自于网络,请自行研究使用
网易云课堂-陈越、何钦铭-数据结构-2016春
PTA-06-图1 列出连通集
给定一个有NNN个顶点和EEE条边的无向图,请用DFS和BFS分别列出其所有的连通集。假设顶点从0到N− 1N-1N− 1编号。进行搜索时,假设我们总是从编号最小的顶点出发,按编号递增的顺序访问邻接点。-Given a free E N vertices and edges of the graph, please list the set of all of its communication with the DFS and BFS. Assume that the vertices 0 to N-1N-1N-1 number. When you search, we always assume the smallest number of vertices in ascending numerical order adjacent access points.
PTA-06-图1 列出连通集
给定一个有NNN个顶点和EEE条边的无向图,请用DFS和BFS分别列出其所有的连通集。假设顶点从0到N− 1N-1N− 1编号。进行搜索时,假设我们总是从编号最小的顶点出发,按编号递增的顺序访问邻接点。-Given a free E N vertices and edges of the graph, please list the set of all of its communication with the DFS and BFS. Assume that the vertices 0 to N-1N-1N-1 number. When you search, we always assume the smallest number of vertices in ascending numerical order adjacent access points.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Connect Set.py