2

I happened to read on Wikipedia that the amortized time per operation on a disjoint set (union two elements, find parent of a specific element) is O(a(n)), where a(n) is the inverse Ackermann function, which grows very fast.

Can anyone explain why this is true?

polygenelubricants
  • 376,812
  • 128
  • 561
  • 623
ooboo
  • 16,259
  • 13
  • 37
  • 32

3 Answers3

0

Well, that would be rather hard to explain, because it isn't true. It's the non-inverse Ackermann function that grows like a rocket on steroids, the inverse Ackermann grows very slowly.

This gives you the theoretical background.

John Machin
  • 81,303
  • 11
  • 141
  • 189
0

There is a proof of the fact in Introduction to Algorithms. It's a fairly popular read it seems, and your city or school library might have a copy. I've also seen copies floating about on the Internet but the legality of those is probably questionable.

EDIT: a chunk of the proof appears to be readable on Google Books.

dmkc
  • 1,161
  • 1
  • 15
  • 22
0

Well, the Wikipedia page has a citation. If you're that interested, check it out. If you're at college that should be easy, if not, just find a nearby college and use their library (they don't care if you're not a student).

Dietrich Epp
  • 205,541
  • 37
  • 345
  • 415