answersLogoWhite

0


Best Answer

3 pointers...

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the minimum number of additional pointers will be needed to reverse a singly linked list?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How the pointer used in the linked list?

The pointer in linked list is used for traversing through the elements of the linked list. In a singly linked list, only a next pointer exits. So this pointer can be used for traversing only in one direction in the list. In case of a doubly linked list, a next and previous pointer exits. These pointers are used for traversing in both direction in the list.


How do you implement stack without array?

Stacks are often implemented using the same node structure as a linked list.


What is the advantage of doubly linked list over Doubly linked list?

A doubly linked list can be traversed in both directions (forward and backward). A singly linked list can only be traversed in one direction. A node on a doubly linked list may be deleted with little trouble, since we have pointers to the previous and next nodes. A node on a singly linked list cannot be removed unless we have the pointer to its predecessor. On the flip side however, a doubly linked list needs more operations while inserting or deleting and it needs more space (to store the extra pointer).


Is it true or false that a dynamically linked list can be accessed both sequentially and randomly?

No. Linked lists require traversal, and are therefore accessed sequentially. For random access you need an array. An array of pointers to the data in your list would do, but you will incur an overhead in creating the array on top of the list.


The linked list that does not contain NULL pointers?

What is your question about it?It is quite possible, for example if it is a circular list, having a 'sentinel' node.typedef struct ListE {struct ListE *next;...} ListE;ListE listhdr;listhdr.next = &listhdr; /* empty list */

Related questions

Is Linked list representation require an additional N words of memory for a list of pointers?

yes


How will you represent the linked list?

With pointers pointing to the next element.


What are the differences between singly-linked doubly-linked and circularly-linked lists?

The difference is how many pointers each node has, and what they are pointing to. A linked list is comprised of "Nodes" each node contains data as well as 1 or more pointers. A singly linked list has one pointer per node, and a doubly linked list has 2 pointers per node. Some programs use several pointers per node. The purpose of these pointers is to hold the list together. In a singly linked list, you can view a node and can then move on to the next node that it is pointing to until you've passed through them all. A doubly-linked list would have a pointer to the next node as well as to the previous node. Thus you can move forward and backward through the list. A circularly-linked list doesn't necessarily have a set number of pointers because it simply means that the last node points to the first node creating a big circle. A non-circularly-linked list would not contain this last to first pointer and thus you would eventually reach the end of the list and stop.


What is linked file organization?

The next record in a linked list is found at the address stored in the record. Records are added at any location in the DASD(Direct Access Storage Device) and pointers adjusted to include them. Deletions are not erased, but pointers changed to omit the deleted record. Just like a normal linked list has a value part in its structures, here the linked list structure can have multiple value parts.


What is linked file?

The next record in a linked list is found at the address stored in the record. Records are added at any location in the DASD(Direct Access Storage Device) and pointers adjusted to include them. Deletions are not erased, but pointers changed to omit the deleted record. Just like a normal linked list has a value part in its structures, here the linked list structure can have multiple value parts.


What kind of data is linked list useful for and what not very useful for?

A linked list is useful for data which will be changed very often. The linked nature of linked lists makes them ideal for inserting and removing elements, as it requires only changing one or two pointers.


What is monofluorophosphate?

It is a polymer which is linked to the additional monomers phosphate and floride.


Are the Reverse Lights on 94' Tarus linked to the Transmission?

The reverse lights on a 94' Ford Taurus are linked to the transmission to indicate when the vehicle is moving backwards. This is done for safety reasons as cars are typically moving forward.


How the pointer used in the linked list?

The pointer in linked list is used for traversing through the elements of the linked list. In a singly linked list, only a next pointer exits. So this pointer can be used for traversing only in one direction in the list. In case of a doubly linked list, a next and previous pointer exits. These pointers are used for traversing in both direction in the list.


What is sponsorship- linked marketing?

Sponsorship-linked marketing is when a business refers to their sponsors in their ads. This helps creates additional goodwill for both companies.


How do you find whether linked list is circular or not?

To determine if a linked list is circular, you can use the Floyd's cycle detection algorithm. This algorithm involves using two pointers moving at different speeds through the list, and if there is a cycle, the two pointers will eventually meet at the same node. If they don't meet and one of the pointers reaches the end of the list, then the list is not circular.


Disadvantages of linked lists in c?

Because the C programming language leaves the responsibility for memory allocation and pointers entirely with the programmer, the disadvantage of linked lists over some other linear data structures (such as arrays) is that the bear a risk or memory leaks and invalid pointers. The fact that the size of a linked list is generally not deterministic is also commonly viewed a disadvantage over statically linked linear containers (e.g. arrays) in some systems, primarily in embedded systems. Compared to containers of higher order (such as trees or hash tables), search operations in a linked list are generally slower. Compared to a double linked list, removal and insertion of items (except head and tail) is generally more expensive.