retagged by
749 views

2 Answers

Best answer
3 votes
3 votes

we get relation logE= O(logV)

selected by
1 votes
1 votes

the number of edges in a graph is less than or equal to (v(v-1))/2.......i.e number of edeges in complete graph with v vertices...so it will be |E|= O(V)...........

Related questions

0 votes
0 votes
1 answer
1
iarnav asked Apr 21, 2018
1,495 views
Kruskal Time complexity is O(mlog m) then how in upper bound it can be written as - O(m2) How log m = O(m)and O (mn) - How log n = O(n)
0 votes
0 votes
3 answers
3
iarnav asked Apr 29, 2018
1,560 views
Question 1) The shortest-path tree computed by Dijkstra's algorithm is necessarily an MST?Question2 ) Prim's algorithm works with negative weighted edges?
0 votes
0 votes
1 answer
4
divya_theodore asked Jan 21, 2016
267 views
How does adding a vertex into a graph represented by adjacency matrix take O(n^2) time where n is no of nodes in graph?What is the complexity of adding a vertex into a gr...