Friday, August 9, 2013

Advantage and Disadvantage of singly Linked list and Doubly Linked list

Que-    Advantage and Disadvantage of singly Linked list and Doubly Linked list


SINGLY LINKED LIST
*ADVANTAGE :-
1) Insertions and Deletions can be done easily.
2) It does not need movement of elements for insertion and deletion.
3) It space is not wasted as we can get space according to our requirements.
4) Its size is not fixed.
5) It can be extended or reduced according to requirements.
6) Elements may or may not be stored in consecutive memory available,even then we can store the data in computer.
7) It is less expensive.


*DISADVANTAGE :-
1) It requires more space as pointers  are also stored  with information.
2) Different amount of time is required to access each element.
3) If we have to go to a particular element then we have to go through all those elements that come before that element.
4) we can not traverse it from last & only from the beginning.
5) It is not easy to sort the elements stored in the linear linked list.



-----------------------------------------------------------------------------------------------------------

DOUBLY LINKED LIST

*ADVANTAGE :-

1) We can traverse in both direction i.e from starting to end & as well as from end to starting.
2) It is easy to reverse the linked list.
3) If we are at a node,the we can go at any node.But in linked list,it is not possible to reach the previous node.



*DISADVANTAGE :-

1) It requires more space per space per node because extra field is required for pointer to previous node.
20 Insertion and Deletion take more time than linear linked list because more pointer operations are required than linear linked list. 



18 comments:

  1. thnx it help me in cmpleting my assgn

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This Advantage & Deadvantage are really Help full for studying linked list. Click Here To Learn Web Designing Full Course with Fun

    ReplyDelete
  4. I request to all my viewer plz don't use rough & abusing words

    ReplyDelete
  5. I request to all my viewer plz don't use rough & abusing words

    ReplyDelete
  6. Thnk u so much bro ..It hlp full for my exm

    ReplyDelete
  7. Very nice...thanks
    plz ...Also add advantage and disadvantages of circular linked list

    ReplyDelete
  8. Very nice...thanks
    plz ...Also add advantage and disadvantages of circular linked list

    ReplyDelete
  9. Circular linked list advantage and disadvantages send karo.

    ReplyDelete