CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
A file of 2400 blocks is sorted by external merge sort with M = 6 buffer blocks (sorted runs of M blocks are created in pass 0, then (M − 1)-way merges). How many passes in total are needed, and how many block transfers if each pass reads and writes every block once?
- A. 6 passes, 28,800 transfers
- B. 4 passes, 19,200 transfers
- C. 5 passes, 24,000 transfers
- D. 5 passes, 12,000 transfers
Correct answer: C. 5 passes, 24,000 transfers
Pass 0 makes ⌈2400/6⌉ = 400 runs; each merge pass divides the run count by 5, needing 4 merge pass(es). Total 5 passes × 2 × 2400 = 24,000 transfers.
More DBMS and SQL questions
- R(A1, A2, …, A8) has the FDs A1 → A2, A2 → A3, …, A7 → A8 and A8 → A1. How many candidate keys does R have, and what is its highest normal…
- Assertion (A): Every relation schema with exactly two attributes is in BCNF. Reason (R): For R(X, Y), any non-trivial FD has a single…
- R(A, B, C, D, E) has functional dependencies CE → BD, DE → A, BD → E. Which of the following is the complete set of candidate keys of R?
- Table Node(id, parent) rows: (1, NULL), (2, 1), (3, 1), (4, 2), (5, 2), (6, 4), (7, 3). What does this query return? sql WITH RECURSIVE…
- R(A, B, C, D, E) has functional dependencies AC → BD, A → CD, C → D, D → A. Which of the following is the complete set of candidate keys…
- Σ = {C → AE, E → B, AE → C, D → C}. Consider the FD AE → C while computing a canonical cover. Which statement about extraneous attributes…