Question

What are some issues that should be taken into account when considering using a linked list...

What are some issues that should be taken into account when considering using a linked list versus another data structure?

Homework Answers

Answer #1

The best reward you get with linkedlist is that insertion is an O(1) operation on both the ends with the fact that the list can expand exactly as per your size requirements whenever you want, which is not the case with some data structures, where size need to be mentioned at the time of creation..

however, Linked Lists are not ideal solution for the cases, where insertion in between list needs to be done, Or data needs to be accessed in between the list, Because the LinkedList do not allow random access, which means, We need to start from head and find our node, due to which insertion/removal in mid becomes an O(N) operation..

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
In 350 words describe what are some of the issues that art directors and copywriters should...
In 350 words describe what are some of the issues that art directors and copywriters should take into account when creating advertising for world markets?
Create another list to store your Song objects using a linked list. Show that you understand...
Create another list to store your Song objects using a linked list. Show that you understand how to use pointers and linked list by demonstrating the use of them with the Song objects. 8) Additional criteria for your code - Usability – your code provides users with meaningful messages/prompts for inputs and display of outputs. [3 points] - Accuracy - your code must run and terminate normally. [3 points] - Readability – your code should be well structured and easy...
C++ Goals  Build single linked lists using pointers  Learn how to manipulate linked lists...
C++ Goals  Build single linked lists using pointers  Learn how to manipulate linked lists In this lab, you will create simple single linked structures consisting of Node objects. Each node will have a pointer to the next node. You will use a head pointer to keep track of the first node in the linked list, and a tail pointer to keep track of the last node in the linked list. Set both head and tail to NULL when...
How would I make a linked list of a linked list in C? For example I...
How would I make a linked list of a linked list in C? For example I want a linked list that holds all the words inputted from the user. Example: typedef struct node{ char *word; struct node *next; }node; This list will hold all the strings that were inputted from the user. What I want to do is have another linked list that holds all the words that are no vowel matches which means that they would be equal if...
What are some tax implications that should be considered when a company is considering a merger...
What are some tax implications that should be considered when a company is considering a merger or acquisition?
6. What are some of the ethical and legal considerations that must be taken into account...
6. What are some of the ethical and legal considerations that must be taken into account in telemedicine and telehealth projects? A. Licensure, Quality and standard of care, Confidentiality, Privacy, Data security. B. Physician patient relationship, Authentication, Pharmacy.
Data Structures using C++ Searching a Linked List Here are the declarations for a simple unsorted...
Data Structures using C++ Searching a Linked List Here are the declarations for a simple unsorted linked list of ints that ends in a null pointer. //=============================================================== class Cell { friend class UList; private: int data; Cell* next; Cell( int dt, Cell* nx=nullptr ) : data(dt), next(nx) {} }; //=============================================================== class UList { private: Cell* head = nullptr;    // stationary head pointer. Cell* scan = nullptr;          // for walking down the List. Cell* follow = nullptr; public: void find( int...
C PROGRAMMING Doubly Linked List For this program you’ll implement a doubly linked list of strings....
C PROGRAMMING Doubly Linked List For this program you’ll implement a doubly linked list of strings. You must base your code on the doubly linked list implementation given in my Week 8 slides. Change the code so that instead of an ‘int’ each node stores a string (choose a suitable size). Each node should also have a next node pointer, and previous node pointer. Then write functions to implement the following linked list operations: • A printList function that prints...
what are key economic indicators, trends, and conciderations that should be taken into account when looking...
what are key economic indicators, trends, and conciderations that should be taken into account when looking into exspanding an american company abroad to start opperations abroad in a foregin country such as france, germany, or spain? im looking for very non-broad economic figures that could refelct if an abroad venture is worth it or not.
What legal and ethical issues do service providers need to take into account when supporting clients...
What legal and ethical issues do service providers need to take into account when supporting clients and carers? List at least three.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT