Learning about Kruskal's algorithm and searching for the BigO of this algorithm, I have ended up finding two answer equally dispersed:
For E = Number of edges in the graph. For V = Number of vertices in the graph.
Kruskal's algorithm is know to have either:
O(E log E)
or
O(E log V)
Searching further and going on the English wiki page of the algorithm I've found what seem to be an explanation:
E is at most V^2 and log(V^2) = 2*log(V) = O(log(V))
But I don't get it, why 2*log(V) = O(log(V))
shouldn't it be O(2*log(V))
?