当前位置:网站首页>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

边栏推荐
猜你喜欢

定了!就在7月30日!

Mysql index details (with pictures and texts)

关于市场后市的发展预测? 2021-05-23

Break the limit of file locks and use storage power to help enterprises grow new momentum

Gstreamer Plugin注册流程详解

eclipse连接数据库后插入数据报错null

删除链表的节点

史上最全!47个“数字化转型”常见术语合集,看完秒懂~

Image retrieval method based on deep learning!

二分查找 && 树
随机推荐
【C语言】手撕循环结构 ——do...while语句及循环练习题(1)
【C语言】虐打循环结构练习题
CSDN(成长一夏竞赛)- 最大数
面试SQL语句,学会这些就够了!!!
【C语言】手撕循环结构 —— while语句
多个驻外使领馆发提醒 事关赴华出行、人身财产安全
SQL函数 UNIX_TIMESTAMP
How to improve the originality of self-media creation and create popular works?
网络安全第二次作业
软件测试和硬件测试的区别及概念
栈 && 队列
els 长条方块变形条件、边界碰撞判定
Flashback Technology of Oracle Database
Differences and concepts between software testing and hardware testing
【Tensorflow】AttributeError: ‘_TfDeviceCaptureOp‘ object has no attribute ‘_set_device_from_string‘
线程安全问题及关键字synchronized,volatile
【C语言】夏日一题 —— 求最大公约数和最小公倍数
微信小程序-最近动态滚动实现
【C语言】细品分支结构——switch语句
RKMPP 在FFmpeg上实现硬编解码