Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Algorithmic and Data Structures Courses

Rating
-
Sold
-
Pages
11
Uploaded on
22-04-2026
Written in
2025/2026

Algorithmic and Data Structures Courses

Institution
ESSTHS

Content preview

Chapitre V : Les arbres
3. Parcours
3.1 Parcours des arbres (arbres ordonnés).
a- Parcours en profondeur
Dans un parcours en profondeur d’abord, on descend le plus
profondément possible dans l’arbre puis, une fois qu’une feuille a
été atteinte, on remonte pour explorer les autres branches en
commençant par la branche « la plus basse » parmi celles non
encore parcourues ; les fils d’un noeud sont bien évidemment
parcourus suivant l’ordre sur l’arbre.

PP(A)
si A n’est pas réduit à une feuille faire
pour tous les fils u de racine(A) faire dans l’ordre PP(u)

, Chapitre V : Les arbres
 On distingue trois algorithmes qui affichent les valeurs contenues dans les noeuds d’un
arbre binaire, suivant des parcours en profondeur préfixe, infixe et postfixe.

PRÉFIXE(A)
si A ≠NIL faire
affiche racine(A)
PRÉFIXE(FILS-GAUCHE(A))
PRÉFIXE(FILS-DROIT(A))

INFIXE(A)
si A ≠ NIL faire
INFIXE(FILS-GAUCHE(A))
affiche racine(A)
INFIXE(FILS-DROIT(A))

POSTFIXE(A)
si A ≠ NIL faire
POSTFIXE(FILS-GAUCHE(A)) Affichage préfixe : 1, 2, 4, 8, 9, 5, 10, 3, 6, 7
POSTFIXE(FILS-DROIT(A)) Affichage infixe : 8, 4, 9, 2, 10, 5,1, 6, 3, 7
affiche racine(A) Affichage postfixe : 8, 9,4, 10, 5,2, 6, 7,3,1

Document information

Uploaded on
April 22, 2026
Number of pages
11
Written in
2025/2026
Type
Class notes
Professor(s)
Yassmine yazid
Contains
All classes

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
yassmineyazid

Get to know the seller

Seller avatar
yassmineyazid ESSTHS
View profile
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 weeks
Number of followers
1
Documents
73
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions