answersLogoWhite

0


Best Answer

Type your answer here...  Let lists be a linked. Then list will be maintained in memory unless otherwise specified or implied as follows. First of all list required two liner array we will call them here INFO and LINK such that INFO[K] and LINK[K] contain, respectively, the information part and the next pointer filed of a node of list.

 As noted above list also required a variable name such as start which will contain the location of the beginning of the lists and the next pointer sentinel denoted as null which indicates the end of the lists

 Since the subscripts of the array INFO and LINK will usually be positive, we will chose null otherwise started.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

A linked list consists of nodes connected together. Consider a link list node:

struct node{

int data;

struct node *next;

};


The nodes of the linked list will be allotted chunks of memory in random. Each memory chunk will be of the size node(= sizeof(node)). The actual content(data) will be stored in the data element of the node. The next pointer will store the starting address of the next node. Hence using this pointer value, we can traverse through the list. If there is no next node, then it is made to point to NULL. Hence in linked list, the memory chunks need not be in contiguous locations and can be allotted int random locations.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Explain how memory is represented in a linked list data structure?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Advantage and disadvantage of linked list?

Linked list is a dynamic data structure that contains a "link" to the structure containing the next item. It is a collection of structures ordered not by their physical placement in memory (like array) but by logical links that are stored as part of the data in the structure itself.Advantages of Linked Lists- Dynamic structure (Mem. Allocated at run-time).- We can have more than one datatype.- Re-arrange of linked list is easy (Insertion-Deletion).- It doesn't waste memory.Disadvantages of Linked Lists- In linked list, if we want to access any node it is difficult.- It is occupying more memory.


What Linked list uses.type of memory allocation?

Linked lists use dynamic memory allocation (also called "heap memory allocation", as the linked list is stored in heap memory).


Why a In the linked list structure Overflow can never occur unless the memory is actually full?

That's not quite true... It is true that overflow in a linked list structure can not occur so long as there is at least one chunk of allocatable memory large enough to hold one element. It is not true, however, that overflow can nover occur unless memory is actually full. This is because you can still have allocatable memory, while not having any contiguous chunks large enough to satisfy a single request.


What are the linked list utility in memory management?

A simple linked-list is an approach is to store the freelist of memory blocks, where each node of the linked list contains a pointer to a single free block in the memory pool.


Why an operation to check queue overflow is not implemented on linked queue?

In linked queue we're dynamically allocating the memory and there's no fixed memory limit in Linked Queue. That's why there's no operation for overflow. I guess It's the correct reason

Related questions

Advantage and disadvantage of linked list?

Linked list is a dynamic data structure that contains a "link" to the structure containing the next item. It is a collection of structures ordered not by their physical placement in memory (like array) but by logical links that are stored as part of the data in the structure itself.Advantages of Linked Lists- Dynamic structure (Mem. Allocated at run-time).- We can have more than one datatype.- Re-arrange of linked list is easy (Insertion-Deletion).- It doesn't waste memory.Disadvantages of Linked Lists- In linked list, if we want to access any node it is difficult.- It is occupying more memory.


What are the two basic ways in representing linear structures in memory?

Data structures are classified as either linear or non linear, a data structure is said to be linear if its elements form a sequence, or, in other words, a linear list, there are two basic ways of representing such linear structures in memory, one way is to have the linear relationship between the elements represented by means of sequential memory locations, these linear structures are called arrays, the other way is to have the linear relationship between the elements represented by means of pointers or links, these linear structures are called linked lists.


What Linked list uses.type of memory allocation?

Linked lists use dynamic memory allocation (also called "heap memory allocation", as the linked list is stored in heap memory).


Why a In the linked list structure Overflow can never occur unless the memory is actually full?

That's not quite true... It is true that overflow in a linked list structure can not occur so long as there is at least one chunk of allocatable memory large enough to hold one element. It is not true, however, that overflow can nover occur unless memory is actually full. This is because you can still have allocatable memory, while not having any contiguous chunks large enough to satisfy a single request.


What are the linked list utility in memory management?

A simple linked-list is an approach is to store the freelist of memory blocks, where each node of the linked list contains a pointer to a single free block in the memory pool.


How do you represented linked list in memory?

Memory Representation of Linear Linked List:Let LIST is linear linked list. It needs two linear arrays for memory representation. Let these linear arrays are INFO and LINK. INFO[K] contains the information part and LINK[K] contains the next pointer field of node K. A variable START is used to store the location of the beginning of the LIST and NULL is used as next pointer sentinel which indicates the end of LIST. It is shown below:


Which is the best definition of linked words?

Linked words are words that are connected or related to each other in some way, often by a common theme, topic, or concept. They are used to create logical connections and relationships between different parts of a text, guiding the reader through the content.


How do you detect the linked list is full?

A linked list cannot be 'full'. You might run out of memory, though.


Draw the block diagram of ram and explain its operation?

Memory is technically any form of electronic storage. Personal computer system have a hierarchical memory structure consisting of auxiliary memory (disks), main memory (DRAM) and cache memory (SRAM). A design objective of computer system architects is to have the memory hierarchy work as through it were entirely comprised of the fastest memory type in the system.


Why an operation to check queue overflow is not implemented on linked queue?

In linked queue we're dynamically allocating the memory and there's no fixed memory limit in Linked Queue. That's why there's no operation for overflow. I guess It's the correct reason


What is slow memory interfacing?

explain how slow memory get interfaced with 8085


Where linked list using?

linked list are used for creation of stack,queues to use memory in optimum manner linked list are used as they are dynamic in nature