GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 5-bit Johnson (twisted-ring) counter shifts right and feeds the complement of the last flip-flop back to the first, with no self-correcting logic. Its main sequence from 00000 has 10 states. What happens to the other 22 states?

  1. A. They form two more 10-state cycles and one 2-state cycle
  2. B. They form one separate 22-state cycle
  3. C. They form two separate 11-state cycles
  4. D. They all fall into the main sequence within 5 clocks

Correct answer: A. They form two more 10-state cycles and one 2-state cycle

The twisted-ring map is a permutation (it is invertible), so every state lies on a cycle; nothing can 'fall into' the main loop. Each state returns after 2n = 10 clocks unless it has a shorter period: 10101 → 01010 → 10101 is a 2-cycle. So 22 = 10 + 10 + 2.

More Digital Logic questions

Exams that ask this topic