hachage_simple.c
836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "hachage_simple.h"
#include "liste_double.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>
void init_table (struct table* T, fonction_hachage* H){
/* int i = 0;
for(i=0; i<N;i++){
init_liste_double (&T->tab[i].L);
}
T->hash = H;*/
}
void clear_table (struct table* T){
/*int i = 0;
for(i=0; i<N;i++){
clear_liste_double (&T->tab[i].L);
}*/
}
void enregistrer_table (struct table* T, double d){
/* int i;
i=T->hash(d);
ajouter_en_tete_liste_double(&T->tab[i].L,d);*/
}
bool rechercher_table (struct table* T, double d){
/*int i;
i= T->hash(d);
recherche_liste_double(&T->tab[i].L,d);*/
}
void imprimer_table (struct table* T){
/*int i = 0;
for(i=0; i<N;i++){
imprimer_liste_double (&T->tab[i].L);
} */
}