🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #35

Re: r�cursivit�

#35
From: Anthony Fleury
Date: Sat, 21 Jun 2003 13:06
39 lines
2898 bytes
Bon, vu qu'on est un peu HS, on va se remettre au bon endroit.
FU2 sur fr.comp.algorithme :)

Le sujet �tait : 

> > > voici les 3 parcours en profondeur �xistant, il se caract�rise 
> > > par la position du traitement par rapport au parcours en lui 
> > > meme. (infixe, on traite au premier passage dans le noeud, 
> > > interne au second et postfixe au 3eme).

> > > void parcours ( arbre A )
> > > {
> > >     if (A == NULL) return;
> > > 
> > >     traitement_infixe (A.valeur);
> > >     parcours (A.left);
> > >     traitement_interne (A.valeur);
> > >     parcours(A.right);
> > >     traitement_postfixe(A.valeur);
> > > }

> > Il me semble que tu confonds :
> > Dans le cas d'arbre binaire comme ici, on a :
> > parcours infix� :
> > sous arbre gauche - p�re - sous arbre droit
> > parcours pr�fix� :
> > p�re - sous arbe gauche - sous arbre droit
> > parcours postfix� :
> > sous arbre gauche - sous arbre droit - p�re

> > Vu que tu m'as mis le doute j'ai m�me v�rifi� dans un livre d'algo
> > (Initiation � l'algorithmie de Cormen ) qui est d'accord avec moi :-)

> j'ai eu moi aussi le doute quand cela m'a �t� pr�senter comme ca cette
> ann�e, et le bouquin d'algo que j'ai regarder en biblio avait bien la
> nomenclature que j'ai donn�e. il y a peut-etre bien les 2 en vigeurs, mais
> ca m'�tonnerait surtout que "infixe" serait utilis� diff�rement d'une a
> l'autre. pour ma part, j'utilisais pr�fixe avant cela.
Technical Details
Message-ID: <brwr1sxz.fsf@prog.linux-site.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-quince!easynet.net!teaser.fr!asynchrone!not-for-mail
References: <bd17mi$skg$1@news-reader2.wanadoo.fr> <bd19o1$t78$1@tem.asynchrone.net> <bd1aj8$c7k$1@news-reader2.wanadoo.fr> <bd1hv5$bs4$1@news-reader3.wanadoo.fr> <bd1j69$a6f$1@tem.asynchrone.net> <bd1jqp$s8d$1@news-reader2.wanadoo.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: f5075,b8404ad60db7898c,start
X-Google-Attributes: gidf5075,public
X-Google-Thread: f9822,ec6477bfbdf4941a
X-Google-Attributes: gidf9822,public
X-Google-ArrivalTime: 2003-06-21 06:05:09 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-quince!easynet.net!teaser.fr!asynchrone!not-for-mail
From: Anthony Fleury <fleury_anthony@hotmail.com>
Newsgroups: fr.comp.lang.c,fr.comp.algorithmes
Subject: Re: r�cursivit�
Followup-To: fr.comp.algorithmes
Date: 21 Jun 2003 15:06:00 +0200
Organization: Et la marmotte pousse les octets dans le port 119.
Lines: 39
Message-ID: <brwr1sxz.fsf@prog.linux-site.net>
References: <bd17mi$skg$1@news-reader2.wanadoo.fr> <bd19o1$t78$1@tem.asynchrone.net> <bd1aj8$c7k$1@news-reader2.wanadoo.fr> <bd1hv5$bs4$1@news-reader3.wanadoo.fr> <bd1j69$a6f$1@tem.asynchrone.net> <bd1jqp$s8d$1@news-reader2.wanadoo.fr>
NNTP-Posting-Host: acb1c64c.ipt.aol.com
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: tem.asynchrone.net 1056200707 11352 172.177.198.76 (21 Jun 2003 13:05:07 GMT)
X-Complaints-To: abuse@asynchrone.net
NNTP-Posting-Date: 21 Jun 2003 13:05:07 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Native Windows TTY Support (Windows))