Add FILE ORGANIZATION FROM THE START

This commit is contained in:
NyxiumYuuki 2019-12-07 20:39:59 +01:00
parent 1795f0287b
commit 43b0081d65
No known key found for this signature in database
GPG key ID: 03E8F3CF3183323A
16 changed files with 95 additions and 67 deletions

View file

@ -1,25 +0,0 @@
#ifndef __ARBRE_BINAIRE__
#define __ARBRE_BINAIRE__
typedef char Elt;
typedef int bool;
struct znoeud {
Elt elt ;
int poids;
struct znoeud *fils_gauche;
struct znoeud *fils_droit;
};
typedef struct znoeud noeud ;
typedef struct znoeud * arbre;
arbre creer_arbre_vide(void);
arbre creer_arbre_huffman(Elt e, int p, arbre fg, arbre fd);
arbre fils_gauche(arbre a);
arbre fils_droit(arbre a);
Elt racine(arbre a);
bool est_arbre_vide(arbre a);
arbre creer_feuille(Elt e) ;
bool est_feuille(arbre a) ;
#endif