Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
}
public static void main(String[] args) {
- ArbreBinaire Btree = new ArbreBinaire();
+ ArbreBinaire bTree = new ArbreBinaire();
- Btree.inserer(2);
- Btree.inserer(6);
- Btree.inserer(4);
- Btree.inserer(5);
- Btree.inserer(1);
- Btree.inserer(0);
+ bTree.inserer(2);
+ bTree.inserer(6);
+ bTree.inserer(4);
+ bTree.inserer(5);
+ bTree.inserer(1);
+ bTree.inserer(0);
- Btree.afficher();
- Btree.afficher_arbre();
+ bTree.afficher();
+ bTree.afficher_arbre();
- Btree.supprimer(4);
+ bTree.supprimer(4);
- Btree.afficher();
- Btree.afficher_arbre();
+ bTree.afficher();
+ bTree.afficher_arbre();
- Btree.supprimer(6);
+ bTree.supprimer(6);
- Btree.afficher();
- Btree.afficher_arbre();
+ bTree.afficher();
+ bTree.afficher_arbre();
- Btree.inserer(2);
- Btree.inserer(7);
- Btree.inserer(3);
- Btree.inserer(9);
- Btree.inserer(11);
- Btree.inserer(10);
+ bTree.inserer(2);
+ bTree.inserer(7);
+ bTree.inserer(3);
+ bTree.inserer(9);
+ bTree.inserer(11);
+ bTree.inserer(10);
- Btree.afficher();
- Btree.afficher_arbre();
+ bTree.afficher();
+ bTree.afficher_arbre();
}
}