在用邻接表表示图时,对图进行深度优先搜索遍历的算法的时间复杂度为()
A.
O(n)
B.
O(n+e)
C.
O(n²)
D.
O(n³)
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/232016.html
上一篇:【阅读理解】Jamie was worried about the junk food which he saw being served which included burgers, pizzas and chips. So he decided to ban the junk and started cooking some good soup and curries for the children instead. So he improved the school dinners i
下一篇:属于中央预算的政府采购项目,其集中采购目录的确定并公布的单位是