The idea

A machine rearranges a line of words and numbers one step at a time by a fixed rule: move the next element into place (sorting), swap two elements, or rewrite elements (digit sums, vowels removed, letters replaced by numbers). Rohtak 2019 asked three questions on one printed arrangement (LR Q24–Q26); JIPMAT lists the topic in its syllabus.
Textbook vs exam method
Textbook method
- Line up the input and Step I; mark what moved or changed.
- Name the order behind it (descending numbers, alphabetical words, word length, last letter, ...).
- Confirm the rule on every printed step; a rule that fails one step is wrong.
- Apply it to the new input, writing each step in full.
- Answer each question from the written steps.
Exam method
- Sorting sets. after Step I you usually know the order; count how many elements are out of place to get the number of steps.
- Word-number sets. handle words and numbers as two separate queues (one of each per step).
- Position questions. count from the end named in the question; convert with .
- "Which step is this?". count how many elements are already arranged.
Worked examples
Rohtak 2019: Step I 95 13 67 84 76 18 38 78 … Step VII 95 84 78 76 67 38 18 13. Number between the 1st and 3rd of Step VI?
Solution: Step VI is 95 84 78 76 67 38 13 18; the 2nd number is 84.
Each step moves the next smallest number to the left. Input 64 29 85 13 47 92 38. How many steps?
Solution: 13, 29, 38, 47 move (Steps I–IV); 64 85 92 are then in place: 4 steps.
Words go to the left end in reverse alphabetical order as vowels*consonants; numbers leave in ascending order and their digit sums go to the right end. Input: only 333 practice 12 makes 19 man perfect 23 45.
Solution: Step I: aie*prctc only 333 makes 19 man perfect 23 45 3; five steps in all.
Alphabetical order by swapping: river apple stone kite bread cloud zebra pencil.
Solution: Step 1 swaps river and apple, Step 2 river and bread, … 6 steps; only kite never moves.
Six words: shortest first; lower case with the 1st and 4th letters exchanged; alphabetical order; end letters replaced by their alphabet positions.
Solution: Health → leahth → 12eaht8.
Traps
- Wrong end: read "from the right" carefully.
- Step numbering: check whether the input is counted as Step I.
- Glued symbols: each symbol is one element.
Formulas
In the exam
- Compare the input with Step I: find the element that moved and why it was first (largest, smallest, first in the alphabet, longest).
- Check the guess on Step II: the next element in the same order must move to the next place.
- Note whether an element already in its place still uses a step; the illustration shows it.
- Write every step of the new input once, on one line each; then all questions are look-ups.
- Number of steps: count the elements that still have to move; elements already in place at the end add no step.