GATE / CS ARCHIVE

GATE CSE 2016 SET 1 / QUESTION 8

GATE CSE 2016 Set 1 Q8

Digital Logic · Counters & Timing · Full GATE CSE 2016 Set 1 paper

GATE 2016 Set 1, Q8 1 mark · NAT
Report issue

Counters & Timing

Question 8, GATE 2016: A synchronous counter repeatedly outputs 0,1,0,2,0,3. What is the minimum number of J-K flip-flops required?
Tap to enlarge
Answer & solution

Official answer: 3.0 : 4.0

Our answer: 3

The repeating output sequence has six distinct phases. Its three occurrences of 0 require different future successors 1, 2, 3, so they cannot share one deterministic internal state. At least six states require ceil(log₂6)=3 flip-flops; a six-state cycle with output decoding attains this. The official accepted interval 3.0 : 4.0 is preserved even though the minimum derived here is 3.

Counting distinct output labels alone would suggest four states, but a deterministic counter must also remember where it is in the cycle. The zero before 1, the zero before 2 and the zero before 3 have different next outputs and so need different internal states. A possible 6-state encoding uses 000 through 101 and decodes them to 0,1,0,2,0,3. Three bits store those phases; suitable J-K input logic realizes the transition cycle. The official interval remains a scoring fact, not a proof that four is the minimum.

Original paper, page 5 · Answer key