Answer: 13
In double hashing, the hash function for a key k at probe i (where the probe sequence starts at i=0) is given by:
h(k,i)=(h1(k)+i⋅h2(k))(modM)
Given:
- Table size M=23
- Primary hash function: h1(k)=k(mod23)
- Secondary hash function: h2(k)=1+(k(mod19))
- Key k=90
- Probe index i=1
Step 1: Compute h1(90)
h1(90)=90(mod23)=21(since 23×3=69 and 90−69=21)
Step 2: Compute h2(90)
h2(90)=1+(90(mod19))
90(mod19)=14(since 19×4=76 and 90−76=14)
h2(90)=1+14=15
Step 3: Compute the address for probe 1 (i=1)
h(90,1)=(h1(90)+1⋅h2(90))(mod23)
h(90,1)=(21+15)(mod23)
h(90,1)=36(mod23)=13
Thus, the address returned by probe 1 is 13.