Our study of tree algorithmics has shown that most tree structures are quite efficient. Let’s examine the efficiency of heaps. Modify the heap ADT developed in Section 9.3 to determine the complexity of building a heap. For this program measure efficiency as the number of data moves necessary to build the heap. To determine a pattern, run your program with arrays filled with random numbers. Use five different array sizes: 100, 200, 500, 1000, and 2000. Then analyze the heuristics developed in these runs and determine which big-O notation best applies. Prepare a short report of your findings with appropriate tables and graphs.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here