Circular linked list

Reply

Join Date: Dec 2004
Posts: 1
Reputation: girlzone is an unknown quantity at this point 
Solved Threads: 0
girlzone girlzone is offline Offline
Newbie Poster

Circular linked list

 
0
  #1
Dec 5th, 2004
Hello all,
I have a question:
What are the advantages & disadvantages of the circular linked list compared with:
a. Usual linked list
b. Doubled linked list
Although the implementation of the usual list functions & the circular list functions are similar…when do we have to use it?? or in which situations the circular list is better than the usual list? :rolleyes:

Thank you,
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Circular linked list

 
0
  #2
Dec 5th, 2004
sounds like a homework assignment as you can find the answers in any good textbook dealing with the subject.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 1
Reputation: ManojGupta91 is an unknown quantity at this point 
Solved Threads: 0
ManojGupta91 ManojGupta91 is offline Offline
Newbie Poster

Re: Circular linked list

 
0
  #3
Mar 4th, 2006
Originally Posted by girlzone
Hello all,
I have a question:
What are the advantages & disadvantages of the circular linked list compared with:
a. Usual linked list
b. Doubled linked list
Although the implementation of the usual list functions & the circular list functions are similar…when do we have to use it?? or in which situations the circular list is better than the usual list? :rolleyes:

Thank you,
Hi..........

Suppose the case of non circular link list. If u r at the last node of the list and u want to move to first u need to go one - one step back till u reach to first. But in circular link list from last to first u need to make only one move.

In single link list u can move only in one direction but in double link list u can move in any direction, i.e. back or forward.

Single list contain refrence to it next node but not for its backward node. But in Double link list it contain refrences for its next node as well as for its backward node.

Single list can be circular and non circular both.
Same with double link list. It can be both circular or non circular.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 1
Reputation: babitagoyal is an unknown quantity at this point 
Solved Threads: 0
babitagoyal babitagoyal is offline Offline
Newbie Poster

Re: Circular linked list

 
0
  #4
Jun 24th, 2006
Originally Posted by girlzone
Hello all,
I have a question:
What are the advantages & disadvantages of the circular linked list compared with:
a. Usual linked list
b. Doubled linked list
Although the implementation of the usual list functions & the circular list functions are similar…when do we have to use it?? or in which situations the circular list is better than the usual list? :rolleyes:

Thank you,
hi
circular list has the biggest advantage of time saving ie when we hav e to go from last node to first node. it doesnot go back to all the inbetween nodes again rather it is the next node that is the first node.
thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC