Coding-Decoding — Study Notes
Overview
Coding-Decoding is a fundamental reasoning topic in SSC MTS where information (letters, numbers, or words) is encrypted using a specific rule, and you must either decode the given code or encode new information using the identified pattern. This topic tests your pattern recognition ability and logical thinking under time pressure.
In SSC MTS Paper 1, expect 2–4 questions from this area. The codes are generally straightforward—letter shifts, number substitutions, or conditional rules based on word properties. Mastering the common patterns allows you to solve most questions in under 30 seconds each. The key skill is quickly spotting whether the code is based on position values, forward/backward shifts, or conditional logic.
Success here requires systematic checking: always compare multiple examples to confirm your hypothesis about the coding rule. Don't assume a pattern from just one word—verify with all given pairs before applying it to the answer.
Key Concepts
- **Letter Coding**: Each letter is replaced according to a fixed rule—most commonly alphabetical position shifts (forward or backward), reverse alphabet substitution, or position-based arithmetic operations.
- **Number Coding**: Words or letters are converted to numbers based on alphabetical positions (A=1, B=2... Z=26), then arithmetic operations (addition, multiplication, difference) are applied.
- **Substitution Coding**: Direct replacement where specific letters/numbers are swapped with predetermined symbols or other letters, creating a cipher-like code.
- **Conditional Coding**: The coding rule changes based on word characteristics like number of letters, vowel/consonant pattern, or position of specific letters within the word.
- **Pattern Verification**: Always test your identified rule against ALL given examples before selecting an answer—one match is coincidence, consistent matches confirm the pattern.
- **Reverse Engineering**: In decoding questions, work backward from the code to the original; in encoding questions, apply the discovered rule forward to new inputs.
Formulas / Key Facts
1. **Alphabetical Positions**: A=1, B=2, C=3... Z=26 (memorize positions of at least A–J for quick calculation)
2. **Reverse Alphabet**: A↔Z, B↔Y, C↔X... Formula: Reverse of nth letter = (27-n)th letter
3. **Position Shift**: If code shifts by +k, new position = (original position + k); handle wrap-around using modulo 26
4. **Common Shift Values**: +1, +2, +3, -1, -2 (majority of SSC MTS questions use these simple shifts)
5. **Vowels in English**: A, E, I, O, U (positions 1, 5, 9, 15, 21—useful for conditional coding)
6. **Letter-to-Number Sum**: For word "CAT": C(3) + A(1) + T(20) = 24
7. **Opposite Letter Formula**: For any letter at position n, opposite = letter at position (27-n)
8. **Symmetrical Letters**: Letters that look same in mirror—A, H, I, M, O, T, U, V, W, X, Y (sometimes used in conditional rules)
Worked Examples
**Example 1: Simple Letter Shift** If ROAD is coded as TQCF, how is LANE coded?
*Solution:* Compare letters: R→T (shift +2), O→Q (+2), A→C (+2), D→F (+2) Pattern confirmed: each letter shifts forward by 2 positions Apply to LANE: L→N, A→C, N→P, E→G **Answer: NCPG**
**Example 2: Reverse Alphabet** If CARE is coded as XZIV, what is the code for HELP?
*Solution:* C(3)→X(24): 3+24=27, A(1)→Z(26): 1+26=27, R(18)→I(9): 18+9=27, E(5)→V(22): 5+22=27 Pattern: Each letter is replaced by its opposite (27-n position) Apply to HELP: H(8)→S(19), E(5)→V(22), L(12)→O(15), P(16)→K(11) **Answer: SVOK**
**Example 3: Number Coding** In a code, BAT = 23, CAT = 24. What is DOG?
*Solution:* BAT: B(2)+A(1)+T(20) = 23 ✓ CAT: C(3)+A(1)+T(20) = 24 ✓ Pattern: Sum of alphabetical positions Apply to DOG: D(4)+O(15)+G(7) = 26 **Answer: 26**
**Example 4: Conditional Coding** If 4-letter words get first and last letters swapped, what is MANGO coded as?
*Solution:* MANGO has 5 letters, so 4-letter rule doesn't apply Need to check if there's a rule for 5-letter words in the question If only 4-letter rule given: MANGO remains MANGO or follows default alphabetical rule *This type requires reading full question carefully for all conditions*
Common Mistakes
1. **Single Example Assumption** → Testing pattern on only one word pair and assuming it's correct. **Fix**: Always verify against minimum two examples before answering.
2. **Ignoring Wrap-Around** → When shifting Z forward or A backward, forgetting alphabet cycles (Z+1=A, A-1=Z). **Fix**: Use modulo 26 logic—if position >26, subtract 26; if <1, add 26.
3. **Position Calculation Errors** → Miscounting alphabet positions (common errors: E as 6 instead of 5, M as 14 instead of 13). **Fix**: Count on fingers for unfamiliar letters or memorize positions 1–26.
4. **Mixing Encoding and Decoding** → Applying the rule in wrong direction—using forward shift when backward shift is needed. **Fix**: Clearly identify whether question asks "code for X" (encode) or "X is code for what" (decode).
5. **Conditional Rule Oversight** → Missing that different length words or vowel-containing words follow different rules. **Fix**: Check if pattern breaks for any example—signals conditional logic, read question for word-specific rules.
Quick Reference
- First step: Write down position numbers (A=1...Z=26) for all letters in the example
- Check three patterns first: simple shift (+1,+2,-1), reverse alphabet (27-n), position sum
- Reverse alphabet quick check: first letter and coded letter positions should sum to 27
- For mixed coding: separate examples by word length—may have different rules per length
- Time-saving: If answer choices differ in first letter only, decode just the first letter
- Verification formula: Apply discovered rule to ALL given examples—no exceptions allowed