ISRO Scientist/Engineer CSE 2020Algorithms › Hashing
ISRO Scientist/Engineer CSE 2020 PYQ: In linear hashing, if blocking factor $bfr$, loading factor $i$ and file buckets $N$ are known, the number…
In linear hashing, if blocking factor $bfr$, loading factor $i$ and file buckets $N$ are known, the number of records will be
- A$cr= i+bfr+N$
- B$r=i-bfr-N$
- C$r=i+bfr-N$
- D$r=i^{\ast} bfr^{\ast} N$Correct answer
Answer
(D) $r=i^{\ast} bfr^{\ast} N$
Approach
The number of records in a file equals the total number of storage slots multiplied by the fraction of those slots that are occupied. The blocking factor gives the number of records (or buckets) per block, and the number of file buckets N combined with bfr gives the total capacity; multiplying by the loading factor i yields the actual number of records.
Reviewed by ISRO IQ Editorial Team.