Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kul_
· 9y ago · 0 comments
I have never seen anything more elegant than Disjoint Set Datastructure
https://en.wikipedia.org/wiki/Disjoint-set_data_structure
Comments
[–]
aryamaan
9y ago
+1. I was in love with union data structure as well when I get to know about them. And always used to feel good when I used to solve any algo problem with it.
[–]
gpderetta
9y ago
Another fan of union-find here as well. Simple, elegant and magical.
Also best (only?) practical use of the (inverse) Ackermann function!