Dynamic Connectivity

Defects of Quick-Find are :

  1. Union too expensive
  2. Tree are flat, but too expensive to keep them flat

Defects of Quick-Union are :

  1. Trees can get tall
  2. Find too expensive

So We need two improvement approach :

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahmad Berahman

Ahmad Berahman

I have a dream to have a spectacular garden