PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > linked list
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linked list

Réponse
 
LinkBack Outils de la discussion
Vieux 14/04/2008, 13h46   #1
sophia
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut linked list

Dear all,

Is there any condition / requirement that nodes in linked list
must be stored in contigous memory locations ?
  Réponse avec citation
Vieux 14/04/2008, 13h54   #2
Chris Dollin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: linked list

sophia wrote:

> Is there any condition / requirement that nodes in linked list
> must be stored in contigous memory locations ?


No.

(this is not a C question.)

--
"Oh, but it can be applied to almost any situation." /Tactics of Mistake/

Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England

  Réponse avec citation
Vieux 14/04/2008, 14h03   #3
harsha
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: linked list

On Apr 14, 5:46 pm, sophia <sophia.ag...@gmail.com> wrote:
> Dear all,
>
> Is there any condition / requirement that nodes in linked list
> must be stored in contigous memory locations ?


no
  Réponse avec citation
Vieux 14/04/2008, 20h51   #4
gw7rib@aol.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: linked list

On 14 Apr, 13:46, sophia <sophia.ag...@gmail.com> wrote:
> Dear all,
>
> Is there any condition / requirement that nodes in linked list
> must be stored in contigous memory locations ?


Far from it. Some of the main advantages of a linked list are that you
can delete nodes in the middle of a list without having to move
anything, add new nodes at the end, add extra nodes in the middle
(again without moving anything), and change the order of the nodes
without actually moving them. This would not be possible if the nodes
had to be stored in contiguous locations.

Hope that s.
Paul.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07789 seconds with 12 queries