An array of records (nodes) is used to contain a doubly linked list, with the next and

Question:

An array of records (nodes) is used to contain a doubly linked list, with the next and back members indicating the indexes of the linked nodes in each direction. 1. Show how the array would look after it was initialized to an empty state, with all the nodes linked into the freespace list. (The free-space nodes have to be linked in only one direction.)

image text in transcribed 2. Draw a box-and-arrow picture of a doubly linked list into which the following numbers are inserted into their proper places: 17, 4, 25. 3. Fill in the contents of the array on the next page after the following numbers are inserted into their proper places in the doubly linked list: 17, 4, 25.

image text in transcribed 4. Show how the array in part

(c) would look after 17 is deleted.

image text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

C++ Plus Data Structures

ISBN: 9781284089189

6th Edition

Authors: Nell Dale, Chip Weems, Tim Richards

Question Posted: