"Thus, the total time for the Prim algorithm is O (V log V + E log V) = O (E log V), which is asymptotically the same as for our implementation of the Kruskal algorithm."
From http://serverbob.3x.ro/IA/DDU0137.html
But why is O (V log V + E log V) = O (E log V) ??
Is it because E is at least V-1?
Since in the normal case we assume that E is greater than V. Thus, ignoring the members of the lower order, we obtain E lg V
In particular, E can be a maximum of V ^ 2 in a directed graph. If we take E = v ^ 2 (to account for the worst case), E swallows V.
Source: https://habr.com/ru/post/890555/More articles:Why can't I paste text copied from WPF FlowDocumentScrollViewer or Reader? - copy-pasteRelational lighting in Yii - phpHow to display ObservableCollection in UserControl - copy-pasteWhy worry about google CDN APIs - apiAndroid custom setting not persisted - javaUsing preg_match to find all words in a list - phpvariable problem in lisp - variablesbackbone, javascript mvc - view styles using javascript - javascriptTuring full template engines - pythonGenerating strings and executing them as programs at runtime - evalAll Articles