Running Time
The algorithm can be shown to run in O(E log V (log log V)3) time, where E is the number of edges and V is the number of vertices. This bound is achieved as follows:
- sorting the edges by weight using a comparison sort in O(E log E) time
- E iterations of loop
- deleting in O(1) time
- connectivity checked in O(logV (log log V)3) time (Thorup 2000).
Equally, the running time can be considered O(E log E (log log E)3) because the largest E can be is V2. Remember that logV2 = 2 * logV, so 2 is a multiplicative constant that will be ignored in big-O notation.
Read more about this topic: Reverse-delete Algorithm
Famous quotes containing the words running and/or time:
“Swan/Mary Rutledge: Oh no, no. Im not running away. I came here to get something, and Im going to get it.
Col. Cobb: Yes, but San Francisco is no place for a woman.
Swan: Why not? Im not afraid. I like the fog. I like this new world. I like the noise of something happening.... Im tired of dreaming, Colonel Cobb. Im staying. Im staying and holding out my hands for goldbright, yellow gold.”
—Ben Hecht (18931964)
“Fathers and Sons is not only the best of Turgenevs novels, it is one of the most brilliant novels of the nineteenth century. Turgenev managed to do what he intended to do, to create a male character, a young Russian, who would affirm histhat charactersabsence of introspection and at the same time would not be a journalists dummy of the socialistic type.”
—Vladimir Nabokov (18991977)