
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Union – Find Algorithms. 1. Write a program that generates random connections between pairs of objects. Estimate how many random connections ...
Typology: Lecture notes
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Biostatistics 615/ Problem Set 1 Due Wednesday September 22
Union – Find Algorithms
Modify the program you generated for exercise 1, so that it outputs the average distance between each node and the root of the tree after enough random connections have been generated for all objects to be connected.
What is the average distance between each node and the root of the tree? What is the maximum distance between each node and the root of the tree?
Which version do you expect to be more efficient? [You can make a theoretical argument, conduct empirical studies or even use the code you developed in problem 2 to justify your answer.]
Please indicate how much time it took you to complete this assignment. This will help me calibrate future assignments.