GATE Computer ScienceHardGATE CS (PYQ pattern)
A Mealy detector for the pattern 1011 is fed the stream 11010110111010110 (left bit first). How many 1s does it output if (i) overlapping occurrences are allowed, and (ii) the detector restarts from scratch after each detection (non-overlapping)?
- A. 3 and 3
- B. 4 and 2
- C. 2 and 2
- D. 3 and 2
Correct answer: D. 3 and 2
Numbering the bits 1-17, 1011 occupies bits 4-7, bits 7-10 (sharing bit 7) and bits 13-16. Overlapping: 3. Non-overlapping: after the hit at bit 7 the machine restarts, so the second occurrence (using bit 7) is lost: 2.
More Digital Logic questions
- An 8-bit synchronous up-counter uses T flip-flops (clock-to-Q 8 ns, setup 3 ns). In design S the toggle inputs come from a serial chain of…
- A mod-50 ripple counter uses six negative-edge-triggered T flip-flops (T = 1, clock-to-Q 15 ns each, Q0 clocked by the input). A NAND gate…
- Two flip-flops FF1 → FF2 are separated by combinational logic. Clock-to-Q: min 0.2 ns, max 0.5 ns. Logic delay: min 0.1 ns, max 1.8 ns. FF…
- Two flip-flops FF1 → FF2 are separated by combinational logic. Clock-to-Q is at least 0.2 ns, the logic delay is at least 0.1 ns and the…
- A latch is made of two cross-coupled NOR gates with active-high inputs S and R. The input pairs (S, R) are applied in order: (1,0), (0,0)…
- A clock is high during 0-10, 20-30, 40-50 and 60-70 ns and low otherwise. D starts at 0 with Q = 0, and D changes at 3 ns (→1), 8 (→0), 12…