GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 48

GATE CSE 2015 Set 2 Q48

Data Structures · Other / Mixed Topics · Full GATE CSE 2015 Set 2 paper

GATE 2015 Set 2, Q48 2 marks · NAT
Report issue

Other / Mixed Topics

Question 48, GATE 2015: Young tableau rows[1, 2, 5, 14], [3, 4, 6, 23], [10, 12, 18, 25], [31, ∞, ∞, ∞], increasing rows/columns. Remove 1 and move other entries so that the result remains a Young tableau, allowing unfilled entries to be marked ∞. What is the minimum number of other entries shifted? The solution below uses the conventional adjacent-hole deletion algorithm.
Tap to enlarge
Answer & solution

Official answer: 5

Standard Young-tableau deletion moves the smaller right/down neighbor into the hole. Removing 1 successively shifts 2, 4, 6, 18, 25, then places infinity at(3, 4), giving five moved entries. At each step selecting a larger adjacent neighbor would violate the row/column inequality with the smaller one, so this is the forced minimum adjacent-shift deletion path.

In conventional adjacent-hole deletion, after removing 1 the hole at the top-left must receive the smaller of its right/down neighbors to preserve both monotonic directions. The forced choices are 2, then 4, then 6, then 18, then 25; the hole finally reaches a position that may become∞. Moving the larger neighbor at an earlier step would leave a smaller value below or to the right of the moved entry, violating order. This proves minimality for the conventional adjacent-hole sliding model, not by itself for arbitrary whole-table rearrangement; the source does not explicitly restrict movements to adjacent cells.

Original paper, page 42 · Answer key