Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DO PART B ONLY PLEASE Task 3: (10 points) Given: A new node structure (intended to be used to create a list of lists) is

image text in transcribed

image text in transcribed

DO PART B ONLY PLEASE

Task 3: (10 points) Given: A new node structure (intended to be used to create a list of lists) is defined in the table below (using struct node): struct node t struct soll nede int item: struct node * next; link Ld // NOTE: Ld must be represented with a dummy starting node. struct sollnode * next: In your drawings, show all the data as done in class (including the list nodes, of type struct node). Use boxes for all member variables and write their value inside the box and their name outside the box. a) (7 points) Draw two nodes (of type struct sailnode) that point to each other. For one of them Ld should be empty (but not NULL) and for the other one Ld should be: 30-15- 18. Use the representation with a DUMMY node for any normal list, Ld, part of nodes of type struct cailnode b) (3 points) Assume that an int is stored in 4 Bytes and a memory address is 8 Bytes. How much space will the above two nodes (and the data that they reference) occupy? That is, give the total space needed to store in memory what you drew above. SHOW YOUR WORK

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

What is the net income?

Answered: 1 week ago