设图G中有n个顶点,e条弧,采用邻接表存储,则拓扑排序算法的时间复杂度为
A.O(n)
B.O(n+e)
C.O(n2)
D.O(n×e)
正确答案是B
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/231870.html
上一篇:银行作为金融部门,其给居民家庭的住房按揭贷款,其利息的来源多数是()
下一篇:In the second half of the 19th century, Europe was swept by a "mania (狂热)for Japanese aesthetics (美学)",said Nina Siegal in The New York Times.Closed to outsiders for centuries, Japan had opened itself up to trade and diplomacy, allowing the res