Logical Reasoning · Coding-Decoding
Basic - Concepts, Formulas, Key points and Examples
Explanation
🔵 CODING AND DECODING
🟢 1. BASIC CONCEPT
Coding is a method of representing letters, words, numbers or sentences using a specific rule or pattern.
Decoding is the process of finding the original word, letter, number or sentence from the coded form.
The main objective is to identify the rule used in coding and apply the same rule to the given problem.
🟡 KEY POINT
The coding rule must always be identified from the information given in the question.
🟢 2. ALPHABET POSITIONS
Every letter of the English alphabet has a numerical position.
Important positions:
🟡 KEY POINT
Knowing alphabet positions helps solve most coding and decoding questions quickly.
🟢 3. REVERSE ALPHABET POSITIONS
In reverse alphabet coding, the alphabet is considered from Z to A.
The reverse position of a letter is:
For example:
🟡 KEY POINT
The normal position and reverse position of a letter always add up to 27.
🟢 4. LETTER SHIFT CODING
In letter shift coding, each letter is moved forward or backward by a fixed number of positions.
For a forward shift of positions:
For a backward shift of positions:
Example of a forward shift:
when the shift is 2.
Example of a backward shift:
when the shift is 2.
🔴 IMPORTANT
If a forward shift passes Z, continue again from A.
If a backward shift goes before A, continue again from Z.
🟢 5. FORWARD SHIFT
In forward shift coding, letters are moved towards the right side of the alphabet.
For a shift of 1:
For a shift of 2:
🟡 KEY POINT
Check whether every letter has been shifted by the same number of positions.
🟢 6. BACKWARD SHIFT
In backward shift coding, letters are moved towards the left side of the alphabet.
For a shift of 1:
For a shift of :
🟢 7. DECODING A SHIFT
Decoding means reversing the operation used during coding.
If coding uses a forward shift of :
If coding uses a backward shift of :
🟡 KEY POINT
To decode, perform the opposite operation used for coding.
🟢 8. MIRROR OR REVERSE ALPHABET CODING
In mirror alphabet coding, letters are paired from opposite ends of the alphabet.
The general formula is:
🟢 9. ALPHABET VALUE CODING
In alphabet value coding, letters are replaced by their numerical positions.
A word may be represented by the individual values of its letters.
For example:
The values may also be added:
🟡 KEY POINT
Check whether the question requires individual alphabet values or the sum of the values.
🟢 10. ALPHABET DIFFERENCE
Some coding questions are based on the difference between the positions of two letters.
The formula is:
For example:
Therefore:
🟢 11. REARRANGEMENT CODING
In rearrangement coding, the letters remain unchanged but their positions are changed.
For complete reversal:
The question may also interchange selected positions.
🟡 KEY POINT
Check whether the letters themselves have changed or only their order has changed.
🟢 12. POSITION-WISE CODING
Sometimes different positions of a word follow different coding rules.
For example:
The letters should first be numbered from left to right.
🔴 IMPORTANT
Do not apply one common rule to all letters unless the question supports it.
🟢 13. ODD AND EVEN POSITION CODING
In some problems, odd-position letters and even-position letters are treated differently.
For example:
The first, third, fifth and subsequent odd positions follow one rule.
The second, fourth, sixth and subsequent even positions follow another rule.
🟢 14. NUMBER CODING
In number coding, letters or words are represented using numbers.
The most common method is alphabet position coding.
The numbers may then be:
Added
Subtracted
Multiplied
or used according to another rule given in the question.
🟡 KEY POINT
Do not assume that numbers always represent alphabet positions. Check the pattern first.
🟢 15. SENTENCE CODING
In sentence coding, complete words or sentences are represented by codes.
The codes may consist of:
Numbers
Letters
Symbols
Other words
Two or more coded statements are usually provided to identify the code of a particular word.
🟡 KEY POINT
Compare the common words and common codes in the given statements.
🟢 16. COMMON WORD METHOD
When two coded statements have one common word, the corresponding common code can often be identified.
For example:
The common word is:
The common code is:
Therefore:
🟢 17. SUBSTITUTION CODING
In substitution coding, one word, letter, number or object is represented by another word, letter, number or symbol.
The relationship is determined from the conditions or examples given in the question.
🟡 KEY POINT
Use only the information given in the question. Do not use outside assumptions.
🟢 18. ALPHABET WRAP-AROUND
When a forward shift goes beyond Z, the counting continues from A.
For example:
Similarly, when a backward shift goes before A, the counting continues from Z.
🔴 IMPORTANT
Always consider the alphabet as circular when the question involves wrap-around coding.
🟢 19. MULTIPLE-STEP CODING
Some questions use more than one operation.
For example:
Or:
🟡 KEY POINT
Perform the operations in exactly the order given in the question.
🟢 20. HOW TO IDENTIFY THE CODING RULE
Step 1: Compare the original word with the coded word.
Step 2: Write the alphabet positions if necessary.
Step 3: Check forward shifts.
Step 4: Check backward shifts.
Step 5: Check reverse alphabet relationships.
Step 6: Check whether letters have been rearranged.
Step 7: Check odd and even positions.
Step 8: Check numerical operations.
Step 9: For sentence coding, compare common words and common codes.
Step 10: Verify the rule using all the given information.
🔴 IMPORTANT
Never identify a coding rule using only one letter. The rule should explain the complete given example.
🟢 21. IMPORTANT FORMULAS FOR REVISION
Alphabet position:
Reverse alphabet position:
Forward shift:
Backward shift:
Decoding a forward shift:
Decoding a backward shift:
Alphabet difference:
Mirror alphabet:
Word value:
🟡 KEY POINTS
Remember the alphabet positions.
Check forward and backward shifts.
Check reverse alphabet coding.
Check whether letters are rearranged.
Check odd and even positions.
Check numerical patterns.
For sentence coding, compare common words and common codes.
For decoding, reverse the coding operation.
Always verify the identified pattern before applying it.
Example
🔵 CODING AND DECODING — SOLVED EXAMPLES
🟢 EXAMPLE 1: LETTER SHIFT CODING
QUESTION: If each letter of a word is shifted 2 positions forward in the alphabet, how will CAT be coded?
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 2: BACKWARD LETTER SHIFT
QUESTION: If each letter of a word is shifted 2 positions backward in the alphabet, how will DOG be coded?
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 3: FINDING THE CODING RULE
QUESTION: If CAT is coded as DBU, how will DOG be coded using the same rule?
SOLUTION:
Compare the letters:
Each letter is shifted 1 position forward.
Therefore:
Hence:
🔵 ANSWER:
🟢 EXAMPLE 4: ALPHABET POSITION CODING
QUESTION: If each letter is represented by its alphabet position, write the code for CAT.
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 5: WORD VALUE
QUESTION: If the value of a word is the sum of the alphabet positions of its letters, find the value of CAT.
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 6: REVERSE ALPHABET CODING
QUESTION: If A is coded as Z, B as Y, C as X and so on, how will DOG be coded?
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 7: REVERSE ALPHABET POSITION
QUESTION: Find the reverse alphabet positions of B, F and T.
SOLUTION:
For B:
For F:
For T:
🔵 ANSWER:
🟢 EXAMPLE 8: DECODING A FORWARD SHIFT
QUESTION: A word is coded by shifting every letter 3 positions forward. If the coded word is KHOOR, find the original word.
SOLUTION:
For decoding, shift every letter 3 positions backward.
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 9: ALPHABET WRAP-AROUND
QUESTION: If every letter is shifted 3 positions forward, how will XYZ be coded?
SOLUTION:
When the shift passes Z, continue again from A.
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 10: BACKWARD WRAP-AROUND
QUESTION: If every letter is shifted 2 positions backward, how will ABZ be coded?
SOLUTION:
For A:
For B:
For Z:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 11: REARRANGEMENT CODING
QUESTION: If the letters of a word are written in reverse order, how will TABLE be coded?
SOLUTION:
Reverse the order of the letters:
🔵 ANSWER:
🟢 EXAMPLE 12: ALPHABET DIFFERENCE
QUESTION: Find the difference between the alphabet positions of H and C.
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 13: SENTENCE CODING
QUESTION: In a certain code, "red blue green" is written as "ka la ma" and "blue yellow" is written as "la pa". What is the code for blue?
SOLUTION:
The common word in both statements is:
The common code is:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 14: SENTENCE CODING
QUESTION: "book pen paper" is coded as "ka ta ma" and "book paper" is coded as "ka ma". What is the code for pen?
SOLUTION:
The common words are:
Their common codes are:
The remaining word is:
The remaining code is:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 15: ODD AND EVEN POSITION CODING
QUESTION: In a code, letters in odd positions are shifted 1 position forward and letters in even positions are shifted 1 position backward. Find the code for ABCD.
SOLUTION:
Position 1:
Position 2:
Position 3:
Position 4:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 16: MIXED POSITION CODING
QUESTION: In a code, the first and third letters are shifted 2 positions forward, while the second and fourth letters are shifted 1 position backward. Find the code for ABCD.
SOLUTION:
First letter:
Second letter:
Third letter:
Fourth letter:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 17: FINDING A CODE USING COMMON WORDS
QUESTION: In a certain language, "good boy" is coded as "ra ti" and "good girl" is coded as "ra mo". What is the code for boy?
SOLUTION:
The common word is:
The common code is:
The remaining word in the first statement is:
The remaining code is:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 18: DECODING REVERSE ALPHABET
QUESTION: If a word is coded using the reverse alphabet, decode WLT.
SOLUTION:
Using reverse alphabet coding:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 19: FORWARD SHIFT CODING
QUESTION: If A is coded as D, B as E, C as F and so on, how will HOME be coded?
SOLUTION:
The shift is:
Therefore:
Hence:
🔵 ANSWER:
🟢 EXAMPLE 20: MIRROR ALPHABET
QUESTION: Find the mirror letters of G, M and R.
SOLUTION:
Using:
For G:
Therefore:
For M:
Therefore:
For R:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 21: DECODING A BACKWARD SHIFT
QUESTION: A word is coded by shifting every letter 2 positions backward. If the coded word is ZMJJM, find the original word.
SOLUTION:
For decoding, shift every letter 2 positions forward.
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 22: WORD VALUE
QUESTION: If the value of a word is the sum of its alphabet positions, find the value of DOG.
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 23: NUMBER CODING
QUESTION: If the code of a word is obtained by adding the alphabet positions of its first and last letters, find the code for GAME.
SOLUTION:
First letter:
Last letter:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 24: TWO-STEP CODING
QUESTION: Each letter of a word is first shifted 1 position forward and then the letters are written in reverse order. Find the code for CAT.
SOLUTION:
First shift each letter forward by 1:
Therefore:
Now reverse the order:
🔵 ANSWER:
🟢 EXAMPLE 25: IDENTIFYING THE PATTERN
QUESTION: If PEN is coded as QFO, how will BOOK be coded using the same rule?
SOLUTION:
Compare the given coding:
Each letter is shifted 1 position forward.
Therefore:
Hence:
🔵 ANSWER:
🟢 EXAMPLE 26: REVERSE POSITION CODING
QUESTION: If each letter is replaced by its reverse alphabet letter, how will CODE be coded?
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 27: ALPHABET POSITION SUM
QUESTION: Find the sum of the alphabet positions of the letters in the word BOOK.
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 28: REVERSE WORD AND SHIFT
QUESTION: A word is first reversed and then each letter is shifted 1 position forward. Find the code for CAT.
SOLUTION:
First reverse the word:
Now shift each letter 1 position forward:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 29: DECODING A NUMBER CODE
QUESTION: If A = 1, B = 2, C = 3 and so on, decode the number sequence 3, 1, 20.
SOLUTION:
Therefore:
🔵 ANSWER:
🟢 EXAMPLE 30: MIXED CODING
QUESTION: If each letter is shifted 2 positions forward and then the word is reversed, find the code for DOG.
SOLUTION:
First shift each letter 2 positions forward:
Therefore:
Now reverse the word:
🔵 ANSWER: