0

There are lots of sources about amortized complexity or union-find, quick-find operations but I couldn't find anything about the proof of single union operation complexity.

So, how can I prove that the amortized complexity of the union operation is O(log n).

Thanks.

2
  • Union-find has 3 main operations: MakeSet, Find and Union. If you prove the complexity for each, you 'll reach complexity for the entire algorithm. In the case of the union, you could use path compression, splitting/halving in union by size/rank and prove that the amortized complexity will be O(α log n). Commented Aug 19, 2021 at 17:25
  • You have to show some kind of effort you did yourself to get the answer. After that, you should post your question along with that effort to get a solution. Commented Aug 29, 2021 at 19:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.