An Initiative by SAARTHI IAS
Maarg Manthan · Topic 17.7

Identifying the Underlying Rule of an Input-Output Machine from a Given Example

Reasoning › Input-Output · Topic 17.7

To identify the underlying rule of an input-output machine from a given example, compare the input with Step I and Step II. Decide what moved, whether the choice depended on size, alphabet or position, and to which end it went. Test the guess on Step II, because Step I alone can fit more than one rule, then apply the confirmed rule to the new input.

Share:
Identifying the Underlying Rule of an Input-Output Machine from a Given Example - Reasoning - MaargX UPSC Maarg Manthan

Quick Answer

To identify the underlying rule of an input-output machine from a given example, compare the input with Step I and Step II. Decide what moved, whether the choice depended on size, alphabet or position, and to which end it went. Test the guess on Step II, because Step I alone can fit more than one rule, then apply the confirmed rule to the new input.

At a Glance

  • Compare Input with Step I, then Step I with Step II
  • Ask What moved, by what choice, to which end?
  • Choice types Size, alphabet, position
  • Danger Step I alone can fit two rules
  • Test Check the guess on Step II
  • Apply Run the rule on the new input

Where Does It Fit?

This is the closing topic of the input-output macro. It uses the rules of Number-Based Input-Output Rearrangement (Ascending/Descending Order) to Input-Output Problems Involving Both Numbers and Words Shuffled Together in Steps as a library of possible answers, and the step reading of Identifying the Step Number at Which a Given Arrangement Is Achieved to confirm them.

How Do You Compare Steps to Find the Rule?

In short: list what changed between consecutive lines, name the item that moved, decide how it was chosen, and note the end it went to.

Observation Likely rule
One number moved to an end, and it was the largest or smallest Sorting by size
One word moved to an end, and it was first or last alphabetically Alphabetical sorting
Every item changed place, with one wrapping round Rotation
Neighbouring pairs exchanged Pair swap
A number and a word moved in alternate steps Mixed rule
The first k items reversed Reversal rule

To identify the rule, use Step I and Step II together. Then test the rule on Step II before trusting it. A rule that picks by value gives a different pattern from a rule that acts on places, so always look at the second step before concluding.

  • What moved: one item (sorting) or all items (shifting).
  • How chosen: by size, by letters, or without regard to value.
  • Where it went: left end, right end, or a fixed place.

Why Does Step I Alone Not Decide the Rule?

In short: several rules can produce the same Step I, and Step II breaks the tie.

Take the input 24 61 37 85 19 and Step I equal to 19 24 61 37 85. This fits “the smallest number moves to the left end” and also “every item moves one place to the right, and the last comes to the front”. Step II separates them. The sorting rule gives 19 24 61 37 85, which leaves the line unchanged because 24 is already second. The rotation rule gives 85 19 24 61 37.

Test routine

  • Write down every rule that fits Step I.
  • Apply each to Step II.
  • Keep the one that matches the given Step II.
  • Apply only that rule to the new input.

The cycle ideas for rotation are explained in Input-Output Based on Shifting Position of Elements Using a Defined Rule.

How Do You Apply the Rule to a New Input?

In short: run the confirmed rule step by step on the new input, and for sorting rules sort the whole input first so each step can be written quickly.

  1. Confirm the rule on the given example.
  2. Sort the new input if the rule is a sorting rule.
  3. Apply it step by step, copying the unplaced items.
  4. Stop at the step asked and read the answer.

Solved Examples

Example 1

Question: Input: 52 17 83 29 64 41. Step I: 83 52 17 29 64 41. Step II: 83 64 52 17 29 41. For the input 36 71 25 58 90, what is Step III?

  1. In Step I the largest number, 83, moved to the left end, and the others kept their order.
  2. In Step II the next largest, 64, moved to the second place. The rule is: the largest remaining number moves to the next free place from the left.
  3. For 36 71 25 58 90: Step I is 90 36 71 25 58, Step II is 90 71 36 25 58 and Step III is 90 71 58 36 25.

Answer: Step III is 90 71 58 36 25.

Example 2

Question: Input: tiger mango apple lemon zebra goat. Step I: tiger mango apple lemon goat zebra. Step II: mango apple lemon goat tiger zebra. For the input rose lily tulip daisy iris, what is Step III?

  1. In Step I, zebra, the alphabetically last word, moved to the right end.
  2. In Step II, tiger, the next last, moved to the second place from the right. The rule is: the alphabetically last remaining word moves to the next free place from the right.
  3. For rose lily tulip daisy iris: Step I is rose lily daisy iris tulip, Step II is lily daisy iris rose tulip and Step III is daisy iris lily rose tulip.

Answer: Step III is daisy iris lily rose tulip.

Example 3

Question: Input: 45 12 78 23 56 34. Step I: 12 45 78 23 56 34. Step II: 12 78 45 23 56 34. For the input 20 5 17 9 11, what is Step III?

  1. Step I swaps the first two items. Step II swaps the second and third items.
  2. The values do not matter, so the rule acts on places: at Step k, the items in places k and k + 1 swap.
  3. For 20 5 17 9 11: Step I is 5 20 17 9 11, Step II is 5 17 20 9 11 and Step III is 5 17 9 20 11.

Answer: Step III is 5 17 9 20 11.

Example 4

Question: Input: 24 61 37 85 19. Step I: 19 24 61 37 85. Step II: 85 19 24 61 37. Which rule is this?

  1. Step I fits both “smallest to the left” and “right rotation”.
  2. Smallest to the left would leave Step II as 19 24 61 37 85, which does not match.
  3. Right rotation gives 85 19 24 61 37, which matches.

Answer: The rule is right rotation: every item moves one place to the right and the last comes to the front.

Example 5

Question: Input: pen rose 18 orange 78 80. Step I: 80 pen rose 18 orange 78. Step II: 80 pen rose 18 78 orange. For the input dove 25 jar 61 cat 40, what is Step II?

  1. Step I moved the largest number, 80, to the left end.
  2. Step II moved the alphabetically first word, orange, to the right end. The rule alternates number and word.
  3. For dove 25 jar 61 cat 40: Step I is 61 dove 25 jar cat 40 and Step II is 61 dove 25 jar 40 cat.

Answer: Step II is 61 dove 25 jar 40 cat.

Shortcuts and Tricks

  • Compare the lines place by place; do not compare the whole line by eye.
  • If one item moved, think sorting. If all items moved, think shifting.
  • Never fix the rule from Step I alone. Check Step II.
  • Sort the new input first when the rule is a sorting rule.
  • Write the rule in one sentence before applying it.

Common Mistakes

  • Fixing the rule from Step I only.
  • Describing the rule loosely, such as sorted, without the end and the choice.
  • Applying a sorting rule to a position problem.
  • Using the values of the old input in the new input.
  • Forgetting that the unplaced items keep their order.

Practice Questions

  1. Input: 40 15 62 33. Step I: 62 40 15 33. For the input 28 74 51 39, what is Step II?
  2. Input: 24 61 37 85 19. Step I: 19 24 61 37 85. Step II: 19 24 61 37 85. Is the rule right rotation or smallest to the left?
  3. Input: 14 29 36 47. Step I: 29 14 47 36. What is Step II?
  4. Input: hen ant owl cat. Step I: ant hen owl cat. Step II: ant cat hen owl. What is Step III?
  5. Input: 5 8 12 16 21. Step I: 8 5 12 16 21. Step II: 12 5 8 16 21. What is Step III?

Answers: 1) 74 51 28 39; 2) smallest to the left; 3) 14 29 36 47; 4) ant cat hen owl; 5) 16 8 5 12 21.

Why Is This Topic Important?

  • First move Every input-output set begins with identifying the rule.
  • Exam frequency The rule is never stated, so this skill decides all five questions of the set.
  • Skill It trains testing a guess against evidence.
  • Link The same method helps with series in Number Series – Finding the Missing or Wrong Term.

What Comes Next?

The next topic is Arranging Words in a Meaningful Logical Sequence. It starts the logical sequence of words macro, where words are ordered by meaning rather than by letters.

Key Terms and Formulas

  • Rule The repeated instruction of the machine
  • Sorting rule A rule that picks items by value
  • Position rule A rule that acts on places
  • Test Checking a guess on Step II
  • New input The line the rule is applied to
  • Competing rules Rules that give the same Step I

Exam Corner

Points to Remember

  • Compare input, Step I and Step II.
  • Name what moved, how it was chosen and where it went.
  • Test on Step II before applying.
  • Sort the new input for sorting rules.
  • Write the rule in one sentence.

Do Not Confuse With

  • Sorting vs shifting Sorting moves one item by value; shifting moves items by place.
  • Step I vs Step II evidence Step I can fit several rules; Step II decides.
  • Rule vs result The rule is the instruction; the result is a line.
  • Old input vs new input Apply the rule, not the old values.

Memory Hook

Compare, guess, test on Step II, then apply.

GS Relevance

Rule-identification questions are the standard first move in every input-output set in IBPS PO, SBI PO and SSC exams, since the rule is never stated.

Frequently Asked Questions

How do you find the rule of an input-output machine?

Compare the input with Step I and Step I with Step II. Note which item moved, whether it was chosen by size, by alphabetical position or by place, and to which end it went. Then test the guess against Step II, and apply only the confirmed rule to the new input.

Why is Step I alone not enough to decide the rule?

Different rules can produce the same first line. For example, moving the smallest number to the left end and rotating every item one place right give the same Step I on some inputs. Step II separates them, so a rule must always be checked against the second step.

How do I tell a sorting rule from a position rule?

In a sorting rule, one item moves and it is chosen by its value, such as the largest number or the alphabetically first word. In a position rule, the movement is the same whatever the values, such as every item shifting one place or neighbouring pairs swapping.

How should I apply the rule to the new input quickly?

For a sorting rule, sort the new input first so each step is the first k sorted items followed by the unplaced items in their old order. For a position rule, apply the movement to places step by step, using the cycle length when the step number is large.

What if the example shows only one step?

With one step there may be more than one rule that fits, so look for the most natural rule among the standard ones, such as largest to the left or alphabetically first to the right. Exams normally give at least two steps so that the rule is unique.

PYQ Practice — Statement Analysis

1 The rule of an input-output machine can always be fixed from Step I alone.
False

Different rules can give the same Step I, so Step II is needed.

2 If every item changes place in Step I, the rule is more likely a shifting rule than a sorting rule.
True

Sorting rules usually move one item.

3 The rule found from an example applies to the new input by place or by value, as the rule requires.
True

The values of the old input are not carried over.

4 Competing rules can be separated by testing them on Step II.
True

Only the correct rule matches the second step.

Share: