Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cours
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
algorithmique
cours
Commits
61a4230e
Verified
Commit
61a4230e
authored
3 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
corrected typos and output
parent
2cd87132
No related branches found
No related tags found
No related merge requests found
Pipeline
#15740
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slides/cours_15.md
+17
-13
17 additions, 13 deletions
slides/cours_15.md
with
17 additions
and
13 deletions
slides/cours_15.md
+
17
−
13
View file @
61a4230e
...
...
@@ -438,12 +438,12 @@ graph TD;
*
Appliquer une opération à tous les noeuds de l'arbre,
*
Nécessité de
**parcourir**
l'arbre,
*
On u
tilise uniquement l'interface
définie plus haut (
visiter, gauche,
droite
)
.
*
U
tilise
r
uniquement l'interface
:
visiter, gauche,
droite.
## Une idée de comment parcourir cet arbre?
*
Trois
parcours (R: Racine, G: sous-arbre gauche, D: sous-arbre droit):
*
3
parcours (R: Racine, G: sous-arbre gauche, D: sous-arbre droit):
::: columns
...
...
@@ -597,6 +597,8 @@ c - a * b * d + e / f
## Live code
\f
ootnotesize
. . .
```
C
...
...
@@ -647,6 +649,8 @@ parcours_infixe(arbre a)
# Correction
\f
ootnotesize
*
Les deux parcours sont des modifications
**triviales**
[^1] de l'algorithme
infixe.
...
...
@@ -682,17 +686,17 @@ exercice (inspirez vous de ce qu'on a fait avant)!
## Comment imprimer l'arbre ci-dessous?
```
f
/
e
+
d
f
/
e
+
d
*
c
-
b
*
a
c
-
b
*
a
```
. . .
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment