当前位置:网站首页>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
边栏推荐
猜你喜欢
史上最全!47个“数字化转型”常见术语合集,看完秒懂~
Get out of the machine learning world forever!
【C语言】剖析函数递归(3)
【Tensorflow】AttributeError: ‘_TfDeviceCaptureOp‘ object has no attribute ‘_set_device_from_string‘
【ONE·Data || 排序入门】
k8s之KubeSphere部署有状态数据库中间件服务 mysql、redis、mongo
删除链表的节点
网络安全第二次作业
【ONE·Data || Getting Started with Sorting】
供应磷脂-聚乙二醇-羧基,DSPE-PEG-COOH,DSPE-PEG-Acid,MW:5000
随机推荐
目标检测场景SSD-Mobilenetv1-FPN
泡利不相容原理适用的空间范围(系统)是多大?
【C语言】剖析函数递归(3)
【C语言】虐打循环结构练习题
Flutter 实现光影变换的立体旋转效果
文件加密软件有哪些?保障你的文件安全
第二讲 软件生命周期
SQL函数 UCASE
监管再次重拳出击,后市如何?2021-05-22
Diodes and their applications
rhce第三天作业
此次519暴跌的几点感触 2021-05-21
【C语言】夏日一题 —— 求最大公约数和最小公倍数
线程安全问题及关键字synchronized,volatile
GTK:Gdk-CRITICAL **: IA__gdk_draw_pixbuf: assertion ‘GDK_IS_DRAWABLE (drawable)’ failed
stack && queue
智能指针-使用、避坑和实现
【C语言】函数哪些事儿,你真的get到了吗?(1)
不精确微分/不完全微分(Inexact differential/Imperfect differential)
你真的懂单例模式么