from github to this gitea

This commit is contained in:
oscar.plaisant@icloud.com
2023-10-23 23:09:51 +02:00
commit a2ee0fa5ca
2898 changed files with 307871 additions and 0 deletions

45
arbre binaire inverse.md Normal file
View File

@@ -0,0 +1,45 @@
up::[[arbre binaire]]
#informatique/algorithmie
---
Opération d'inversion d'un [[arbre binaire]].
L'inverse d'un [[arbre binaire]] est un autre arbre qui est obtenu en inversant la droite et la gauche de l'arbre original.
# Exemple
Soit cet arbre binaire :
```mermaid
graph TD
1 --> 2
1 --> 3
2 --> 4
2 --> 5
3 --> 8
3 --> 9
4 --> 6
6 --> 7
8 --> 10
8 --> 11
9 --> 12
10 --> 13
10 --> 14
```
Voici son inverse :
```mermaid
graph TD
1 --> 3
1 --> 2
2 --> 5
2 --> 4
3 --> 9
3 --> 8
4 --> 6
6 --> 7
8 --> 11
8 --> 10
9 --> 12
10 --> 14
10 --> 13
```