When an element is removed from a Young tableau, other elements should be moved into its place so that the resulting table is still a Young tableau (unfilled entries may be filled with a ). The minimum number of entries (other than ) to be shifted, to remove from the given Young tableau is _____.
View worked solution
Answer: 5
To remove the minimum element (which is at cell ) from a Young tableau while preserving its properties, we perform a procedure similar to heapify-down:
- Replace the element to be deleted with .
- Compare the current cell with its right neighbor and its bottom neighbor.
- Swap (or shift) the smaller of the two neighbors into the current cell.
- Repeat this process for the empty cell until both neighbors are or out of bounds.
Let's trace the step-by-step shifts starting from after removing :
- Step 1: At , neighbors are (right) and (bottom). Since , we shift to . The empty cell is now at .
- Step 2: At , neighbors are (right) and (bottom). Since , we shift to . The empty cell is now at .
- Step 3: At , neighbors are (right) and (bottom). Since , we shift to . The empty cell is now at .
- Step 4: At , neighbors are (right) and (bottom). Since , we shift to . The empty cell is now at .
- Step 5: At , neighbors are (right) and (bottom). Since , we shift to . The empty cell is now at .
- At , both neighbors are (or out of bounds), so the process terminates by placing at .
The elements shifted are and . Thus, the minimum number of entries shifted is .
Free practice · Your answers on this page are not saved.
