Describe how to implement the weighted union rule efficiently. In particular, describe what information must be stored with each node and how this information is updated when two trees are merged. Modify the implementation of Figure 6.4 to support the weighted union rule.
Figure 6.4
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here