Question: This question is from Object-Oriented Data Structures Using Java Third edition, chapter 7. 16. An Array of nodes is used to hold a doubly linked
This question is from Object-Oriented Data Structures Using Java Third edition, chapter 7.
16. An Array of nodes is used to hold a doubly linked sorted list, with the next and back node values indicating the indexes of the linked nodes in each direction.
a. Show how the array would look after it was initiated to an empty state, with all the nodes linked into the free space list.
| nodes | .info | .next | .back |
| [0] | |||
| [1] | |||
| [2] | |||
| [3] | |||
| [4] | |||
| [5] |
b. Draw a box-and-arrow picture of an abstract doubly linked list into which the following numbers are added into their proper places: 17, 4, 25.
c. Show how the array in part a would look after the following numbers are added into their proper places in the doubly linked list: 17, 4, 25. (use same table as above table).
d. Show how the array in part c would look after 17 is removed from the doubly linked list. (use same table as above table).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
