hachage_simple.h
484 Bytes
/* hachage_simple.h */
#include "abr.h"
#include <stdbool.h>
struct alveole {
struct abr* L;
};
typedef int fonction_hachage (double);
#define N 10
struct table {
struct alveole tab [N];
fonction_hachage* hash;
};
extern void init_table (struct table*, fonction_hachage*);
extern void clear_table (struct table*);
extern void enregistrer_table (struct table*, double);
extern bool rechercher_table (struct table*, double);
extern void imprimer_table (struct table*);