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
Merge requests
!5
Pk
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Pk
pk
into
master
Overview
0
Commits
11
Pipelines
1
Changes
1
Merged
pierre.kunzli
requested to merge
pk
into
master
3 years ago
Overview
0
Commits
11
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
abd92514
Prev
Next
Show latest version
1 file
+
50
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
abd92514
Merge branch 'master' into pk
· abd92514
Pierre Kunzli
authored
3 years ago
slides/cours_15.md
+
50
−
0
Options
@@ -984,5 +984,55 @@ memory would be allocated:
@@ -984,5 +984,55 @@ memory would be allocated:
malloc(nmemb * size);
malloc(nmemb * size);
```
```
# La suppression de clé
*
Cas simples: le noeud à supprimer et est feuill ou a un seul fils.
*
Comment faites-vous?
. . .
::: columns
:::: column
Une feuille (le 19 p.ex.).
```
mermaid
flowchart TB;
10-->20;
10-->5
20-->21
20-->19
```
::::
:::: column
Un seul fils (le 20 p.ex.).
```
mermaid
flowchart TB;
10-->20;
10-->5
20-->25
25-->24
25-->30
5-->4;
5-->8;
```
::::
:::
## Cas compliqué
*
Le noeud à supprimer à deux descendants.
[
^1
]:
Copyright
cours de mathématiques pendant trop d'années.
[
^1
]:
Copyright
cours de mathématiques pendant trop d'années.
Loading