EZEZ CGL

Formulas › Reasoning › Coding-Decoding

Coding-Decoding

About 2.35 questions a shift · 202 past questions · 8 formulas and methods

Common element elimination

Common element coding · seen in 45 past questions
word in sentences S1 and S2⇒its code is in codes(S1)∩codes(S2); remove codes of sentences without it\text{word in sentences } S_1 \text{ and } S_2 \Rightarrow \text{its code is in } \text{codes}(S_1) \cap \text{codes}(S_2);\ \text{remove codes of sentences without it}
Why it works, and common traps
  1. Word order and code order are unrelated; work with sets.
  2. For the asked word, intersect the code sets of every sentence that contains it.
  3. Remove every code that belongs to a sentence without the word.
  4. One code left: that is the answer. Two left: the code cannot be determined.
  • Trap: Matching by position: 'how' is the third word but 'ff' (third code) belongs to 'what'.
  • Trap: Forgetting the third sentence, which leaves two codes for the word.
  • Trap: Answering a code for a word that appears in only one sentence when that sentence has other unknown words.

Letter position shift

Letter shift coding · seen in 103 past questions
codei=wordi+di(mod26), di constant, alternating (+a,−a) or increasing (+1,+2,+3,… )\text{code}_i = \text{word}_i + d_i \pmod{26},\ d_i \text{ constant, alternating } (+a, -a) \text{ or increasing } (+1, +2, +3, \dots)
SHORTCUT
Check the first two letters of every option against the first two shifted letters; usually only one option survives.
Why it works, and common traps
  1. Line up word and code letter by letter.
  2. Find each did_i from alphabet positions (A=1, ..., Z=26), wrapping Z →\to A.
  3. Name the pattern: constant, alternating or increasing.
  4. Check it on the second word, then apply it to the asked word.
  5. No pattern: try coding.reverse-then-shift or coding.vowel-consonant-shift.
  • Trap: Reading the shift backwards (code to word), which gives the decoded word instead of the code.
  • Trap: Losing the alternation when the target is longer or shorter than the example word.
  • Trap: Stopping after two letters: RIVAL starts −2,+2-2, +2 but every letter must be checked.

Letter position values

Letter-to-number coding · seen in 30 past questions
each letter→p (A=1, ..., Z=26) or 27−p (Z=1, ..., A=26), possibly ±c; write the numbers side by side\text{each letter} \to p \text{ (A=1, ..., Z=26) or } 27 - p \text{ (Z=1, ..., A=26)}, \text{ possibly } \pm c;\ \text{write the numbers side by side}
Why it works, and common traps
  1. Split the code into numbers that match the word's letters (1 or 2 digits each).
  2. Compare the first letter's number with pp and with 27−p27 - p.
  3. The gap from the closer one is the constant cc; check it on every letter.
  4. Code the asked word letter by letter and join the numbers in order.
  • Trap: Splitting the digit string wrongly: G = 22 and L = 17, not 2, 21, 71.
  • Trap: Using 27−p27 - p when the constant is +2+2, which gives 27−9=1827 - 9 = 18 for I instead of 20 (option B pattern).
  • Trap: Joining the numbers in reverse order.

Letter rearrangement

Rearrangement coding · seen in 31 past questions
code=word with its letters reordered by a fixed position map (reverse, reverse all but last, halves swapped, pairs swapped)\text{code} = \text{word with its letters reordered by a fixed position map (reverse, reverse all but last, halves swapped, pairs swapped)}
Why it works, and common traps
  1. Clue: code and word have exactly the same letters.
  2. Number the word's positions 1 to n and write under each code letter the position it came from.
  3. Read the map (e.g. 7 6 5 4 3 2 1 8 = first seven reversed, last kept).
  4. Check it on the second word, then move the asked word's letters the same way.
  • Trap: Reversing the whole word when the last letter stays fixed (FIREWALL reversed is LLAWERIF, not LAWERIFL).
  • Trap: Mapping by letter instead of by position when a letter repeats.
  • Trap: Choosing an option that has the right letters but one swapped pair.

Sum/count of letter values

Letter-to-number coding · seen in 10 past questions
code=f(S,n), S=∑p (or ∑(27−p)), n=number of letters; test S, S±k, S⋅n, n⋅k\text{code} = f(S, n),\ S = \textstyle\sum p \text{ (or } \sum (27-p)\text{)},\ n = \text{number of letters};\ \text{test } S,\ S \pm k,\ S \cdot n,\ n \cdot k
Why it works, and common traps
  1. Compute SS with pp (A=1) and with 27−p27 - p (Z=1) for the first word.
  2. Compare with the code: equal, off by a constant, or a multiple of SS or of nn.
  3. If the code is divisible by nn, check code÷n\text{code} \div n against SS.
  4. Keep only the rule that also fits the second word, then apply it.
  • Trap: Stopping at the forward sum: HIT forward is 37 and 132 is not a multiple of 37.
  • Trap: Ignoring nn: 132 and 144 come from different-length words, so try dividing by 3 and 4.
  • Trap: Missing a pure count rule (BLEACHERS 9 letters ×7=63\times 7 = 63) while adding letter values.

Reverse alphabet positions

Letter-to-number coding · seen in 10 past questions
r(letter)=27−p: Z=1,Y=2,…,A=26; used per letter or summedr(\text{letter}) = 27 - p:\ \text{Z}=1, \text{Y}=2, \dots, \text{A}=26;\ \text{used per letter or summed}
SHORTCUT
Sum of reverse values =27n−(forward sum)= 27n - (\text{forward sum}): SET =81−44=37= 81 - 44 = 37.
Why it works, and common traps
  1. Writing the alphabet backwards puts A at 26 and Z at 1.
  2. A letter at position pp is the (27−p)(27 - p)th from Z, because p+(27−p)=27p + (27 - p) = 27.
  3. It is the position of the opposite letter alphabet.opposite-letter.
  4. Summed form: ∑(27−p)=27n−∑p\sum (27 - p) = 27n - \sum p for an nn-letter word.
  • Trap: Using forward positions: SET forward sum is 44, not 37.
  • Trap: Using 26−p26 - p, which makes Z = 0 and every value one too small.
  • Trap: Mixing forward for one word and reverse for another.

Reverse then shift

Letter shift coding · seen in 28 past questions
code=shift(reverse(word)): if no direct shift fits, reverse the word and find the shifts again\text{code} = \text{shift}(\text{reverse}(\text{word})):\ \text{if no direct shift fits, reverse the word and find the shifts again}
Why it works, and common traps
  1. Clue: the code's first letter is close to the word's last letter.
  2. Write the word backwards.
  3. Find the per-letter shifts between the reversed word and the code, as in coding.letter-position-shift.
  4. Confirm on the second word, then reverse the asked word and apply the shifts.
  • Trap: Shifting before reversing: with alternating shifts BLEW gives VFKC instead of XDMA; reverse first.
  • Trap: Shifting the original word: NAIL +1+1 gives OBJM, which is not even an option.
  • Trap: Picking the option with the right letters in the wrong order (MJOB instead of MJBO).

Vowel/consonant rule

Letter shift coding · seen in 7 past questions
codei=wordi+dv if vowel (A, E, I, O, U), wordi+dc if consonant, dv≠dc (often dv=0)\text{code}_i = \text{word}_i + d_v \text{ if vowel (A, E, I, O, U)},\ \text{word}_i + d_c \text{ if consonant},\ d_v \neq d_c \text{ (often } d_v = 0\text{)}
Why it works, and common traps
  1. Clue: vowels in the word stay vowels or neighbours in the code, while consonants move by a fixed step.
  2. Mark the vowels in the example word.
  3. Find the shift for vowels dvd_v and for consonants dcd_c separately; each must be constant.
  4. Confirm on the second example, then code the asked word letter by letter by type.
  • Trap: Shifting vowels with the consonant step: CHANGE becomes DIBOHF, not an option.
  • Trap: Treating Y as a vowel; in these questions only A, E, I, O, U are vowels.
  • Trap: Deciding the type after shifting instead of from the original letter.