GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 6-bit Johnson (twisted-ring) counter (right shift, complement of the last stage fed back to the first) has no self-correcting logic. How many disjoint cycles does its full 64-state diagram contain, and how long is the shortest one?

  1. A. 5 cycles; shortest has 4 states
  2. B. 6 cycles; shortest has 4 states
  3. C. 6 cycles; shortest has 2 states
  4. D. 2 cycles; shortest has 12 states

Correct answer: B. 6 cycles; shortest has 4 states

The map is invertible, so the diagram is a union of cycles, and every state returns after 2n = 12 clocks (lengths divide 12). Enumerating: the main cycle from 000000 has 12 states; 001100 → 100110 → 110011 → 011001 → 001100 is a 4-cycle; the remaining 48 states form four more 12-cycles. Total 6 cycles, shortest 4 (there is no 2-cycle for n = 6, unlike n = 5).

More Digital Logic questions

Exams that ask this topic