4.2 Pattern Matching & Iterative Rules

Key Takeaways

  • Iterative rule-following requires applying a sequence of transformations to a base string or shape in a strict, specific order.
  • Skipping steps or applying rules out of order is the cause of over 60% of incorrect answers in pattern matching tasks.
  • Tracking intermediate states by briefly noting the result of one step before proceeding to the next prevents cognitive overload.
  • Recognizing cyclical patterns—where a rule set returns the sequence to its original state after a certain number of iterations—saves valuable time.
Last updated: July 2026

Pattern Matching & Iterative Rules

Beyond basic substitution, the Defence Aptitude Assessment (DAA) Work Rate section frequently tests your ability to follow sequential instructions through Iterative Rules and Pattern Matching tasks. In these problems, you are given a starting string of characters, numbers, or geometric shapes, alongside a set of operational rules. You must apply these rules step-by-step to determine the final output.

Unlike simple coding tasks which primarily test visual scanning speed, iterative rules heavily tax your working memory and sustained concentration. Because the output of Step 1 becomes the mandatory input for Step 2, a single mistake made early in the process will cascade, virtually guaranteeing an incorrect final answer. Mastering these requires discipline and a structured approach to problem-solving.

The Anatomy of an Iterative Rule Task

A typical question provides a base sequence and a numbered list of operations. You must apply them exactly as written. For example:

Base Sequence: A B C D E

Rules:

  1. Swap the first and last characters.
  2. Replace any 'C' with an 'X'.
  3. Shift all characters one position to the right (the last character wraps around to the beginning).

If we apply these rules strictly in order:

  • Start: A B C D E
  • After Rule 1: E B C D A (Swapped A and E)
  • After Rule 2: E B X D A (Replaced C with X)
  • After Rule 3: A E B X D (Shifted right, A wraps around to the front)

The final answer is A E B X D.

This seems manageable in isolation, but when you are on your 15th problem and the clock is ticking down, the cognitive load causes candidates to jumble the rules, skip steps, or apply a rule to the original base sequence rather than the intermediate state.

Core Strategies for Rule Following

Strictly Maintain Order

The most important principle is sequential integrity. Skipping steps or applying rules out of order is the cause of over 60% of incorrect answers in pattern matching tasks. The test designers intentionally create answer choices that represent the outcome if you apply the rules in reverse, skip a step, or apply the second rule to the starting string instead of the string generated by rule one. Always verify that you have executed Rule 1 completely before even looking at Rule 2. Do not attempt to merge rules mentally unless they are explicitly mathematically commutative (which they rarely are).

Track Intermediate States

Trying to hold all the transformations in your head simultaneously is a recipe for cognitive overload. Your brain can generally only hold 5 to 7 discrete items in active working memory. Use your scratch paper effectively. Tracking intermediate states by briefly noting the result of one step before proceeding to the next allows you to clear your working memory.

You don't necessarily need to write out the entire string every single time; jotting down just the parts that changed, or maintaining a skeleton of the string, can be enough to anchor your thought process. For example, if a rule says "Delete the middle character," just draw a dash or a strike-through on your scratch paper to visualize the gap.

Read Ahead for Cancellations

Sometimes, rules cancel each other out or create redundancies. For instance, if Rule 1 is "Swap the 1st and 3rd letters" and Rule 3 is "Swap the 1st and 3rd letters," you know that these two rules neutralize each other, leaving the string unchanged with respect to those positions. Briefly scanning the rule set before applying them can reveal these shortcuts. If Rule 2 is "Reverse the entire string" and Rule 4 is "Reverse the entire string," you can effectively ignore both of them, saving critical seconds.

Conditional Rules

More advanced iterative tasks introduce conditional logic. A rule might state: "If the sequence contains a vowel, swap the first two characters; otherwise, swap the last two characters."

When dealing with conditional rules, the evaluation of the condition must be performed on the current intermediate state, not the original base string. If Step 1 added a vowel to a previously all-consonant string, the condition for Step 2 changes entirely. Treat conditionals as a two-part execution: first, evaluate the True/False state, then apply the corresponding action. Do not rush the evaluation phase.

Identifying Cyclical Patterns

In some of the most difficult DAA questions, you are asked what a sequence will look like after a rule has been applied a large number of times (e.g., "Apply Rule A 17 times"). It is mathematically and temporally impossible to manually process 17 discrete iterations within the time limit. This is a massive clue that you must look for cyclical patterns.

Recognizing cyclical patterns—where a rule set returns the sequence to its original state after a certain number of iterations—saves valuable time.

For example, consider the rule: "Shift all letters one position to the right" applied to a 4-letter sequence W X Y Z.

  • Iteration 1: Z W X Y
  • Iteration 2: Y Z W X
  • Iteration 3: X Y Z W
  • Iteration 4: W X Y Z (Back to the start!)

This pattern has a repeating cycle length of 4. If asked for the 17th iteration, you simply divide 17 by 4. The remainder is 1. Therefore, the 17th iteration is identical to the 1st iteration: Z W X Y.

If the remainder is 0, the state is identical to the final step of the cycle (in this case, Iteration 4). Always test the first few iterations to confidently establish the cycle length before applying division.

Managing the Time Pressure

Iterative rule questions are inherent time sinks. They take significantly longer to solve than simple substitution questions. When managing your overall test time:

  1. Triage: If a question involves 5 complex conditional rules applied to a 10-character string, it might be worth guessing and skipping to pick up easier, faster points elsewhere. Return to it if time permits.
  2. Focus on the Target: If the question specifically asks, "What is the 3rd letter of the final sequence?" do not waste time tracking the movements of all the other letters. Trace only the path of the specific position requested through the rule set.

By practicing these tracking techniques, recognizing cycles, and understanding when to deploy strategic skipping, you can turn a confusing jumble of instructions into a systematic, highly solvable process.

Loading diagram...
Iterative Rule Processing Flow
Test Your Knowledge

What is the primary cause of errors in iterative rule-following tasks?

A
B
C
D
Test Your Knowledge

If a transformation pattern on a 5-character string repeats every 4 iterations, what will the sequence look like at the 17th iteration?

A
B
C
D
Test Your Knowledge

When dealing with a conditional rule (e.g., 'If the sequence has a vowel, do X'), on which string should the condition be evaluated?

A
B
C
D