5,323
edits
Line 557: | Line 557: | ||
;Notes | ;Notes | ||
* In step 2, you can | * Without step 3, the algorithm will run in <math>O(n)</math> time instead of <math>O(\log n)</math> but the result will be valid. | ||
* In step 2, you can hook rooted trees in addition to rooted stars for better empirical performance | |||
{{ hidden | Proof | | {{ hidden | Proof | |