In Chapter 6, we discussed how to store a linked list in an array of nodes using
Question:
In Chapter 6, we discussed how to store a linked list in an array of nodes using index values as pointers and managing our list of free nodes. We can use these same techniques to store the nodes of a binary search tree in an array rather than using dynamic storage allocation. Free space is linked through the left member. 1. Show how the array would look after these elements had been inserted in this order:
Q L W F M R N S Be sure to fill in all the spaces. If you do not know the contents of a space, use the question mark “?”.
2. Show the contents of the array after “B” has been inserted and “R” has been deleted.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C++ Plus Data Structures
ISBN: 9781284089189
6th Edition
Authors: Nell Dale, Chip Weems, Tim Richards
Question Posted: