Y
Hacker News
new
|
ask
|
show
|
jobs
by
eutectic
2070 days ago
Optimal depth for union-find is O(1); every node points directly to the root. It's a very different case than building a binary search tree.