当前位置:网站首页>Data Organization---Chapter 6 Diagram---Graph Traversal---Multiple Choice Questions
Data Organization---Chapter 6 Diagram---Graph Traversal---Multiple Choice Questions
2022-08-02 14:01:00 【A life without a root, gone with the wind, such as dust on the 】
1What is the single-source shortest path problem
Given a starting point in the graph, find the shortest distance from the starting point to other vertices.
When the weights of each edge are equal, the breadth-first algorithm can solve the single-source shortest path problem
But not when the weights are not equal, because the breadth-first algorithm does not consider the weights, it only considers the number of edges.
2 Breadth-first traversal is similar to level-order traversal in a tree, and depth-first search traversal is similar to pre-order traversal in a tree.
3 Breadth-first search requires a queue, and depth-first search requires a stack.
4 For a non-connected undirected graph G, using depth-first traversal to access all vertices, the number of calls to DFS in the DFSTraverse function is exactly equal to?

5 Breadth First Search Spanning Tree for Graph, Depth First Search Spanning Tree for Graph

边栏推荐
- Embedded system driver primary [2] - based on character device driver _ basic framework
- 二分查找 && 树
- 数据机构---第六章图---图的遍历---选择题
- 玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据
- Mysql index details (with pictures and texts)
- 【C语言】函数哪些事儿,你真的get到了吗?(2)
- 泡利不相容原理适用的空间范围(系统)是多大?
- 【C语言】夏日一题 —— 如何判断素数?
- 腾讯安全发布Tencent Cloud EdgeOne,为企业出海打造安全加速一体化服务
- 苹果,与Web3 “八字不合”
猜你喜欢
随机推荐
【Tensorflow】AttributeError: ‘_TfDeviceCaptureOp‘ object has no attribute ‘_set_device_from_string‘
苹果,与Web3 “八字不合”
Flutter 实现光影变换的立体旋转效果
电脑死机,Word忘了保存怎么办?怎么恢复?(编辑器是WPS)
Embedded system driver primary [2] - based on character device driver _ basic framework
二叉树的类型、构建、遍历、操作
SQL函数 USER
文件加密软件有哪些?保障你的文件安全
科研试剂DSPE-PEG-VIP,二硬脂酰基磷脂酰乙醇胺-聚乙二醇-血管活性肠肽VIP
SQL函数 UCASE
Fabric.js 动态设置字号大小
[C language] Analysis of function recursion (2)
Interviewer: Can you talk about optimistic locking and pessimistic locking?
How to improve the originality of self-media creation and create popular works?
mysql的case when如何用
C语言提高篇(三)
RKMPP库快速上手--(一)RKMPP功能及使用详解
CVE-2020-27986(Sonarqube敏感信息泄漏) 漏洞修复
RKMPP 在FFmpeg上实现硬编解码
线程安全问题及关键字synchronized,volatile









