Question:
Link list does not have any advantage when compared to an Array
Answer:
False: When you dont know in advance how many elements will be there linked list is more suitable than array. Source: CoolInterview.com
IN THE SEARCH CASE,LINKED LIST DOES NOT HAVE ANY ADVANTAGE THAN ARRAY.BECUASE LINKED LIST ALLOWS ONLY THE LINEAR SERCHING METHOD TO SEARCH THE DATAELMENTS,WHEREAS ARRAY PROVIDES OTHER MORE EFFICIENT METHOD TO SEARCH THAT'S DATA ELEMENTS. Source: CoolInterview.com
Answered by: DEEPAK JENA | Date: 3/12/2010
| Contact DEEPAK JENA
The one advantage array has, the array elements are store sequential in memory but this is not the case with link list, which gives advantage to access fast memory for array Source: CoolInterview.com
Answered by: Nisha | Date: 4/11/2010
| Contact Nisha
Arrays & Linked list both working mechanisms are in linear...
In arrays we dynamically specify no. of locations we need and change the size of the array.. But when insert the element in the list we have to shifting all the remaining elements to left or right .
In searching arrays & linked list both supports divide & concur.
But the over head in linked list maintaining extra memory pointers for traversing list.
But in arrays we use base address then we traverse the list
Source: CoolInterview.com
Answered by: Dinesh kumar | Date: 5/7/2010
| Contact Dinesh kumar
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|