Introduction
Word-Letter-Position Swap problems change the order or positions of letters in a word according to a consistent positional rule - for example rotating letters, cyclically shifting positions, or moving each letter to the index given by another letter.
This pattern is important because it tests your ability to visualise positional transformations quickly and apply the same re-ordering rule to new words under timed conditions.
Pattern: Word–Letter–Position Swap
Pattern
The key concept is: letters in a word are rearranged using a fixed positional rule - for example "move each letter two places to the right (cyclically)", "place the 1st letter at 3rd position, 2nd at last, etc.", or "reverse every pair of letters".
Typical position-swap schemes to test:
- Cyclic right/left shift: shift all letters k places (wrap around).
- Fixed-position mapping: a template like 1→3, 2→1, 3→4, 4→2 (apply same template to each word).
- Pairwise swap: swap letters in pairs (1↔2, 3↔4 ...).
- Mirror-around-center: reflect positions about the centre (reverse order or partial reverse).
- Index-driven swap: use numeric indices provided in the question to place letters accordingly.
Step-by-Step Example
Question
In a certain code each letter of a 5-letter word is moved two places to the right cyclically (i.e., the letter in position 1 goes to position 3, 2→4, 3→5, 4→1, 5→2). If EARTH is coded as RTHEA, what is the code for PLANT?
Solution
-
Step 1: Understand the positional rule
Rule: positions map as 1→3, 2→4, 3→5, 4→1, 5→2 (each letter moves two places right with wrap-around). -
Step 2: Write the source word with positions
P(1) L(2) A(3) N(4) T(5) -
Step 3: Place each letter at its new position
- Letter at pos1 (P) → new pos3
- Letter at pos2 (L) → new pos4
- Letter at pos3 (A) → new pos5
- Letter at pos4 (N) → new pos1
- Letter at pos5 (T) → new pos2
-
Step 4: Read the coded word by positions 1→5
pos1 = N, pos2 = T, pos3 = P, pos4 = L, pos5 = A → Code = NTPLA. -
Final Answer:
NTPLA -
Quick Check:
Apply the same mapping to EARTH: E(1)→pos3, A(2)→pos4, R(3)→pos5, T(4)→pos1, H(5)→pos2 → positions 1..5 = T H E A R → compact = RTHEA after verifying mapping direction ✅
Quick Variations
1. Rotate left instead of right (positions shift left by k).
2. Swap every adjacent pair (1↔2, 3↔4...).
3. Use a different fixed template (e.g., 1→2, 2→5, 3→1, 4→3, 5→4).
4. For even-length words, combine pairwise swap then a cyclic shift.
5. Use index list in question (e.g., code = arrange letters in order 3,1,5,2,4).
Trick to Always Use
- Step 1: Number the source word letters with their original positions.
- Step 2: Write the positional mapping template (e.g., 1→3, 2→4 ...).
- Step 3: Fill a blank 1…n template with letters placed at their new indices, then read left→right to form the code.
Summary
Summary
- Always identify the exact positional rule before rearranging.
- Track the movement of each letter using numbered indices.
- Use templates to avoid confusion in multi-step swaps.
- Reverse the process to verify your coded result quickly.
Example to remember:
EARTH → RTHEA → Move each letter 2 positions right cyclically.
