0
0

Word–Letter–Position Swap

Introduction

Word-Letter-Position Swap problems-ல் ஒவ்வொரு சொல்லின் எழுத்துக்களின் இடம் அல்லது நிலை ஒரு consistent positional rule அடிப்படையில் மாற்றப்படுகிறது - உதாரணமாக letters-ஐ rotate செய்வது, positions-ஐ cyclically shift செய்தல், அல்லது ஒவ்வொரு எழுத்தையும் மற்றொரு letter-ஐக் காட்டும் index-இல் வைக்குதல் போன்றவை.

இந்த pattern முக்கியமானது, ஏனெனில் timed conditions-இல் positional transformations-ஐ விரைவாக visualise செய்து அதே rule-ஐ புதிய சொற்களுக்கு சரியாகச் செயல்படுத்த வேண்டும் என்பதைக் சோதிக்கிறது.

Pattern: Word–Letter–Position Swap

Pattern

முக்கிய கருத்து: ஒரு சொல்லிலுள்ள எழுத்துக்கள் ஒரு fixed positional rule-ஐப் பயன்படுத்தி மறுசீரமைக்கப்படுகின்றன - உதாரணம்: "ஒவ்வொரு எழுத்தையும் இரு இடங்கள் வலப்பக்கமாக நகர்த்து (cyclically)", "1வது letter-ஐ 3வது இடத்தில் வைக்கவும், 2வது-ஐ கடைசியில் வைக்கவும்" அல்லது "ஒவ்வொரு pair-ஐ reverse செய்".

பரிசோதிக்க பொதுவாக வரும் position-swap схем்கள்:

  • Cyclic right/left shift: எல்லா எழுத்துக்களையும் k இடங்கள் shift செய் (wrap around).
  • Fixed-position mapping: 1→3, 2→1, 3→4, 4→2 போன்ற ஒரு template-ஐ ஒவ்வொரு சொல்லுக்கும் பயன்படுத்துவது.
  • Pairwise swap: எழுத்துக்களை ஜோடிகளில் மாற்றுவது (1↔2, 3↔4 ...).
  • Mirror-around-center: மையத்தை சுற்றி positions-ஐ பிரதிபலிக்கும் (முழு reverse அல்லது பாகික reverse).
  • Index-driven swap: கேள்வியில் கொடுக்கப்பட்ட எண்ணுச் சார்புகளைப் பயன்படுத்தி letters-ஐ இடமாற்றம் செய்வது.

Step-by-Step Example

Question

ஒரு குறிப்பிட்ட code-ல் 5-எழுத்து சொல்லின் ஒவ்வொரு letter-உம் இரண்டு இடங்கள் வலப்பக்கமாக cyclically நகர்கிறது (அதாவது 1→3, 2→4, 3→5, 4→1, 5→2). இதன் படி, EARTH RTHEA ஆக code செய்யப்பட்டுள்ளது என்றால், PLANT வேண்டுமானால் என்னாக இருக்கும்?

Solution

  1. Step 1: positional rule-ஐ புரிந்துகொள்ளுங்கள்

    Rule: positions map ஆகின்றன 1→3, 2→4, 3→5, 4→1, 5→2 (ஒவ்வொரு letter-உமும் wrap-around உடன் இரண்டு இடங்கள் வலப்பக்கத்தில் நகர்கிறது).
  2. Step 2: source word-ஐ positions உடன் எழுதுங்கள்

    P(1) L(2) A(3) N(4) T(5)
  3. Step 3: ஒவ்வொரு letter-ஐ அதன் புதிய நிலைக்கு வைக்கவும்

    • pos1 இல் உள்ள letter (P) → புதிய pos3
    • pos2 இல் உள்ள letter (L) → புதிய pos4
    • pos3 இல் உள்ள letter (A) → புதிய pos5
    • pos4 இல் உள்ள letter (N) → புதிய pos1
    • pos5 இல் உள்ள letter (T) → புதிய pos2
  4. Step 4: புதிய positions 1→5 ஐ வாசித்து coded word-ஐ பெறுங்கள்

    pos1 = N, pos2 = T, pos3 = P, pos4 = L, pos5 = A → Code = NTPLA.
  5. Final Answer:

    NTPLA
  6. Quick Check:

    அதே mapping-ஐ EARTH-க்கு பயன்படுத்தி பார்க்கவும்: E(1)→pos3, A(2)→pos4, R(3)→pos5, T(4)→pos1, H(5)→pos2 → positions 1..5 = T H E A R → மேலும் mapping direction சரிபார்க்கும்போது இது RTHEA ஆகும் ✅

Quick Variations

1. வலப்பக்கத்தின் பதிலாக இடப்பக்கத்திற்கு rotate செய்யலாம் (left rotate).

2. ஒவ்வொரு adjacent pair-ஐ மாற்றலாம் (1↔2, 3↔4 ...).

3. வேறு fixed template-ஐ (உதா: 1→2, 2→5, 3→1, 4→3, 5→4) பயன்படுத்தலாம்.

4. Even-length words-க்கு pairwise swap-ஐ பின்பு cyclic shift-ஐ சேர்க்கலாம்.

5. கேள்வியில் கொடுக்கப்பட்ட index list-ஐ பயன்படுத்தி letters-ஐ 3,1,5,2,4 என்ற வரிசையில் அமைக்கலாம்.

Trick to Always Use

  • Step 1: source word-இன் letters-ஐ அவற்றின் original positions-உடன் எண்களால் குறியிடுங்கள்.
  • Step 2: positional mapping template-ஐ எழுதுங்கள் (உதா: 1→3, 2→4 ...).
  • Step 3: ஒரு வெற்று 1…n template-ஐ நிரப்பி letters-ஐ புதிய indices-இல் வைக்கவும்; பிறகு இடமிருந்து இடம் வாசித்து code-ஐ உருவாக்குங்கள்.

Summary

Summary

  • மாறுவதற்கு முன் அவ்வப்போது exact positional rule-ஐ அடையாளம் காணுங்கள்.
  • ஒவ்வொரு letter-ஐ எண்களால் track செய்து அதன் movement-ஐ பதிவு செய்யுங்கள்.
  • பல படி-மாற்றங்களைக் குழப்பமில்லாமல் செய்ய templates பயன்படுத்துங்கள்.
  • உங்கள் coded result-ஐ விரைவில் verify செய்ய process-ஐ reverse செய்யவும்.

நினைவில் வைக்க உதவும் example:
EARTHRTHEA → ஒவ்வொரு letter-ஐ இரண்டு இடங்கள் வலப்பக்கமாக நகர்த்தியதன் முடிவு.

Practice

(1/5)
1. Rule : In a 5-letter word each letter is moved two places to the right cyclically (1→3, 2→4, 3→5, 4→1, 5→2). If BRICK is coded, what is the code?
easy
A. CKBRI
B. RBICK
C. ICKBR
D. BRCIK

Solution

  1. Step 1: Write positions

    B(1), R(2), I(3), C(4), K(5).
  2. Step 2: Apply mapping 1→3,2→4,3→5,4→1,5→2

    • pos1 B → new pos3
    • pos2 R → new pos4
    • pos3 I → new pos5
    • pos4 C → new pos1
    • pos5 K → new pos2
  3. Step 3: Read positions 1→5

    pos1 = C, pos2 = K, pos3 = B, pos4 = R, pos5 = I → CKBRI.
  4. Final Answer:

    CKBRI → Option A
  5. Quick Check:

    Each original letter moved two places right with wrap-around; reverse the mapping to recover BRICK ✅
Hint: Number letters then place each at its target index from the template.
Common Mistakes: Forgetting wrap-around (letters falling off the end should reappear at start).
2. Rule : Swap every adjacent pair of letters (1↔2, 3↔4, 5 stays). How is GHOST encoded?
easy
A. GHOST
B. HGSOT
C. HGOST
D. GHSOT

Solution

  1. Step 1: List letters with positions

    G(1), H(2), O(3), S(4), T(5).
  2. Step 2: Swap pairs 1↔2 and 3↔4

    • 1↔2 → H, G
    • 3↔4 → S, O
    • 5 stays → T
  3. Step 3: Combine

    Result = HGSOT.
  4. Final Answer:

    HGSOT → Option B
  5. Quick Check:

    Adjacent pairs swapped; T remains at the end ✅
Hint: Swap letters in pair blocks and leave the final odd letter unchanged.
Common Mistakes: Swapping non-adjacent letters or reversing pair order incorrectly.
3. Rule : For a 4-letter word shift all letters one place to the left cyclically (1→4, 2→1, 3→2, 4→3). What is the code for WORD?
easy
A. DWOR
B. ODWR
C. ORDW
D. WODR

Solution

  1. Step 1: Write letters and positions

    W(1), O(2), R(3), D(4).
  2. Step 2: Apply left-shift by 1 (1→4,2→1,3→2,4→3)

    • pos1 W → new pos4
    • pos2 O → new pos1
    • pos3 R → new pos2
    • pos4 D → new pos3
  3. Step 3: Read positions 1→4

    pos1 = O, pos2 = R, pos3 = D, pos4 = W → ORDW.
  4. Final Answer:

    ORDW → Option C
  5. Quick Check:

    Left-shift moves W to end and others left - reverse to get WORD ✅
Hint: For left-shifts, think of the first letter moving to the end.
Common Mistakes: Doing a right shift instead of a left shift.
4. Rule : Apply fixed-position mapping for 5-letter words: 1→2, 2→5, 3→1, 4→3, 5→4. What is the code for CRANE?
medium
A. RCENA
B. ACRNE
C. ENRAC
D. ACNER

Solution

  1. Step 1: Write letters with positions

    C(1), R(2), A(3), N(4), E(5).
  2. Step 2: Use mapping 1→2, 2→5, 3→1, 4→3, 5→4

    • pos1 C → new pos2
    • pos2 R → new pos5
    • pos3 A → new pos1
    • pos4 N → new pos3
    • pos5 E → new pos4
  3. Step 3: Read positions 1→5

    pos1 = A, pos2 = C, pos3 = N, pos4 = E, pos5 = R → ACNER.
  4. Final Answer:

    ACNER → Option D
  5. Quick Check:

    Place letters into blank template indices then read left→right to confirm ✅
Hint: Fill a blank template of target positions and place each source letter into its mapped slot.
Common Mistakes: Placing letters at source indices instead of target indices (confusing direction).
5. Rule : Code = letters taken in the order 3,1,5,2,4 from a 5-letter word. What is the code for SHORE?
medium
A. OSEHR
B. RESHO
C. ERSHO
D. HORSE

Solution

  1. Step 1: Write letters with positions

    S(1), H(2), O(3), R(4), E(5).
  2. Step 2: Pick letters in order 3,1,5,2,4

    3→ O, 1→ S, 5→ E, 2→ H, 4→ R.
  3. Step 3: Combine

    Result = OSEHR.
  4. Final Answer:

    OSEHR → Option A
  5. Quick Check:

    Follow the index-list exactly (3,1,5,2,4); no shifts or swaps beyond ordering ✅
Hint: When an index list is given, write the source and then read letters in that exact index order.
Common Mistakes: Misreading the required index sequence or using 0-based indexing.

Mock Test

Ready for a challenge?

Take a 10-minute AI-powered test with 10 questions (Easy-Medium-Hard mix) and get instant SWOT analysis of your performance!

10 Questions
5 Minutes