in Algorithms recategorized by
591 views
1 vote
1 vote

In a sorted file structure, let the cost of reading a page be $D=10$ milliseconds, the number of data pages be $B=1024$. Let the average time to process a record is $C=5$ milliseconds. Let the number of records per page be $R=16$. Find the time taken to perform a search with equality selection?

  1. $10$ milliseconds
  2. $120$ milliseconds
  3. $5$ milliseconds
  4. $50$ milliseconds
in Algorithms recategorized by
591 views

1 Answer

1 vote
1 vote
The time taken to perform a search with equality selection on a sorted file structure is:$ D \log_2^B +C \log_2^R$
Applying the given values into this formula, we get $120$ milliseconds.
Answer:

Related questions