Connecting Tech Pros Worldwide Help | Site Map

how to create a doubly liked list???

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 23rd, 2005, 03:58 AM
surrealtrauma
Guest
 
Posts: n/a
Default how to create a doubly liked list???

I want to ask what's the differences between doubly liked list and linear
liked list, and also the circular doubly liked list in terms of
implementation. THX


  #2  
Old July 23rd, 2005, 03:58 AM
Ivan Vecerina
Guest
 
Posts: n/a
Default Re: how to create a doubly liked list???

"surrealtrauma" <surrealtrauma@hotmail.com> wrote in message
news:7b74d112d02292cb4e438c25ebd60e63@localhost.ta lkaboutprogramming.com...[color=blue]
>I want to ask what's the differences between doubly liked list and linear
> liked list, and also the circular doubly liked list in terms of
> implementation. THX[/color]
In C++ you create a doubly linked list by using std::list
in the standard library.
Other than that, your question is not about C++, and does
not belong in this newsgroup (try comp.programming).

This said:
In a doubly linked list, each list entry stores a pointer
to both the next and the previous item. A single-linked
list only stores a pointer to the next item.

"Linear" linked list doesn't mean much too me, except
when opposed to more general graph structures (e.g. trees).

A circular linked list is a list where the 'next' pointer
of the last item points to the first item (and reciproqually
for the 'prev' pointer of the first item).


hth-Ivan
--
http://ivan.vecerina.com/contact/?subject=NG_POST <- email contact form


  #3  
Old July 23rd, 2005, 03:58 AM
sam
Guest
 
Posts: n/a
Default Re: how to create a doubly liked list???

Ivan Vecerina wrote:
[color=blue]
> "surrealtrauma" <surrealtrauma@hotmail.com> wrote in message
> news:7b74d112d02292cb4e438c25ebd60e63@localhost.ta lkaboutprogramming.com...
>[color=green]
>>I want to ask what's the differences between doubly liked list and linear
>>liked list, and also the circular doubly liked list in terms of
>>implementation. THX[/color]
>
> In C++ you create a doubly linked list by using std::list
> in the standard library.
> Other than that, your question is not about C++, and does
> not belong in this newsgroup (try comp.programming).
>
> This said:
> In a doubly linked list, each list entry stores a pointer
> to both the next and the previous item. A single-linked
> list only stores a pointer to the next item.
>
> "Linear" linked list doesn't mean much too me, except
> when opposed to more general graph structures (e.g. trees).
>
> A circular linked list is a list where the 'next' pointer
> of the last item points to the first item (and reciproqually
> for the 'prev' pointer of the first item).
>
>[/color]
This is a general C programming practice.
[color=blue]
> hth-Ivan[/color]
  #4  
Old July 23rd, 2005, 03:59 AM
osmium
Guest
 
Posts: n/a
Default Re: how to create a doubly liked list???

"surrealtrauma" writes:
[color=blue]
>I want to ask what's the differences between doubly liked list and linear
> liked list, and also the circular doubly liked list in terms of
> implementation. THX[/color]

This link should be helpful.

http://en.wikipedia.org/wiki/Linked_list


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.