You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
615 B
30 lines
615 B
#ifndef ABR_H
|
|
#define ABR_H
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
typedef struct noeud {
|
|
int val;
|
|
struct noeud *fg, *fd;
|
|
} Noeud;
|
|
|
|
typedef Noeud* Abr;
|
|
|
|
typedef enum{FALSE, TRUE} Booleen;
|
|
|
|
Abr creerArbreVide(void);
|
|
Booleen estArbreVide(Abr a);
|
|
Noeud* creerNoeud(int val);
|
|
void insererEnFeuille(Abr* pta, int val);
|
|
void viderArbre(Abr* pta);
|
|
// void afficherCroissant(Abr a);
|
|
// void afficherDecroissant(Abr a);
|
|
void afficherNtab(int n);
|
|
void afficherCoucheRec(Abr a, int retrait);
|
|
void afficherCouche(Abr a);
|
|
Booleen rechercherVal(Abr a, int val);
|
|
Booleen supprimerVal(Abr* pta, int val);
|
|
|
|
|
|
#endif //ABR_H
|