599 views

2 Answers

0 votes
0 votes

@Jothee. You would write a loop like

for(i=0; i<E; i++)

So, its basically linear in terms of index of 'E' i.e T(n)=O(E)  but E=O(V2) so this is inherently quadratic running time algo.

Related questions

4 votes
4 votes
0 answers
2