Position Find( HashTable H, ElementType Key ){
Position p0,p;
int Cnum=0;//冲突数
p=p0=Hash(Key,H->TableSize);
while(H->Cells[p].Info!=Empty&&H->Cells[p].Data!=Key){
Cnum++;
if(Cnum==MAXTABLESIZE){
return ERROR;
}
p=(p0+Cnum)%H->TableSize;
}
return p;
}
86
发布时间 2023-12-14 15:06:39作者: Misa先生