examen fini

This commit is contained in:
2023-04-05 13:24:47 +02:00
parent 0f0c9a48dc
commit 9ee8f961b3
9 changed files with 207 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#include <stdbool.h>
typedef struct SNoeud
{
float valeur;
bool est_feuille;
char lettre;
struct SNoeud *gauche;
struct SNoeud *droite;
} SNoeud;
typedef struct SNoeud_Array
{
SNoeud *noeud;
int taille;
} SNoeud_Array;
typedef struct deux_Noeuds
{
SNoeud *gauche;
SNoeud *droite;
} deux_Noeuds;
typedef struct valeur_lettre
{
float valeur;
char lettre;
} valeur_lettre;
SNoeud_Array *CreerNoeudArray(valeur_lettre* t, int taille);
deux_Noeuds find2min(SNoeud_Array *tableau);
SNoeud EtapeGlouton(SNoeud_Array *tableau);
SNoeud CreerFeuille(float valeur, char lettre);
SNoeud AssocierNoeud(SNoeud gauche, SNoeud droite);