Disjoint-Sets have a very cool implementation whose amortized time complexity is extremely slow growing. It is not quite constant, but even for a disjoint-set with as many elements as there are particles in the universe, the amortized cost of an operation will be less than or equal to 4.https://en.wikipedia.org/wiki/Disjoint-set_data_structure
andreareina|3 years ago
[1] doesn't implement the inverse-ackermann algorithm but still implemented as union/find.
kragen|3 years ago
EnderShadow8|3 years ago
pjscott|3 years ago
https://en.m.wikipedia.org/wiki/Ackermann_function