Question Details

A sequence detector is designed to detect precisely 3 digital inputs, with overlapping sequences detectable. For the sequence (1,0,1) and input data (1,1,0,1,0,0,1,1,0,1,0,1,1,0), what is the output of this detector?

Options

A

1,1,0,0,0,0,1,1,0,1,0,0

B

0,1,0,0,0,0,0,0,1,0,0,0

C

0,1,0,0,0,0,0,1,0,1,0,0

D

0,1,0,0,0,0,0,1,0,1,1,0

Show Answer
Correct Answer

Solution :

The correct option is: 0,1,0,0,0,0,0,1,0,1,0,0

Step-by-Step Explanation:

A sequence detector is a sequential circuit that outputs a high signal (usually 1) whenever a specific sequence of inputs is detected. Here, we need to detect the sequence (1, 0, 1) from the input data stream: 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0. Since overlapping sequences are detectable, the last bits of a previously detected sequence can serve as the starting bits for the next sequence detection.

Since the target sequence (1, 0, 1) has a length of 3 bits, the detector cannot output a valid comparison result until at least 3 bits have been entered. Thus, the first output corresponds to the third input bit, reducing the output sequence length from 14 to 12 bits.

Let's analyze the input stream step-by-step by checking the last three received bits at each step:
1. Inputs 1, 2, 3: The first three bits are 1, 1, 0. This does not match (1, 0, 1).
⇒ Output = 0
2. Input 4: The sequence is now 1, 1, 0, 1. The last three bits are 1, 0, 1. This matches (1, 0, 1).
⇒ Output = 1
3. Input 5: The input stream is 1, 1, 0, 1, 0. The last three bits are 0, 1, 0. No match.
⇒ Output = 0
4. Input 6: The input stream is 1, 1, 0, 1, 0, 0. The last three bits are 1, 0, 0. No match.
⇒ Output = 0
5. Input 7: The input stream is 1, 1, 0, 1, 0, 0, 1. The last three bits are 0, 0, 1. No match.
⇒ Output = 0
6. Input 8: The input stream is 1, 1, 0, 1, 0, 0, 1, 1. The last three bits are 0, 1, 1. No match.
⇒ Output = 0
7. Input 9: The input stream is 1, 1, 0, 1, 0, 0, 1, 1, 0. The last three bits are 1, 1, 0. No match.
⇒ Output = 0
8. Input 10: The input stream is 1, 1, 0, 1, 0, 0, 1, 1, 0, 1. The last three bits are 1, 0, 1. This matches (1, 0, 1).
⇒ Output = 1
9. Input 11: The input stream is 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0. The last three bits are 0, 1, 0. No match.
⇒ Output = 0
10. Input 12: The input stream is 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1. The last three bits are 1, 0, 1. This matches (1, 0, 1) (overlapping with the previous detection).
⇒ Output = 1
11. Input 13: The input stream is 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1. The last three bits are 0, 1, 1. No match.
⇒ Output = 0
12. Input 14: The input stream is 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0. The last three bits are 1, 1, 0. No match.
⇒ Output = 0

Combining the output bits from steps 1 to 12 gives: 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0.

Transparent Access on Mindyard

Built for Learners & Educators Alike

Completely free for students. Educators & coaching institutes get 2 months free Pro trial to create tests.

FREE FOR STUDENTS

Practice & Learn Free for Students

Access unlimited practice questions, detailed step-by-step solutions, and exam study materials — completely free for students.

  • Unlimited mock tests & question bank practice
  • Full access to curated study library & formula notes
  • 100% free for students • No credit card required
2 MONTHS FREE TRIAL

Educators & Coaching Institutes

Create and conduct professional online assessments with AI question generation, tab proctoring, and comprehensive batch management.

  • AI question uploader & rapid test generator
  • Anti-cheating tab proctoring & performance reports
  • Full Pro access free for 60 days • No upfront commitment
Discover more resources

You may also like

Mock Tests

View All
  • GATE
  • beginner
  • 3 hours
  • computer science and information technology

Prepare effectively for GATE 2026 Computer Science & Information Technology (CS & IT) with this comprehensive Question Paper with Solutions. This resource includes detailed explanations, concept-wise solutions, previous year paper analysis, and exam-oriented practice to help aspirants strengthen core subjects like Data Structures, Algorithms, Operating Systems, DBMS, Computer Networks, Theory of Computation, Compiler Design, and more. Perfect for revision, self-assessment, and boosting your GATE 2026 preparation strategy.

  • GATE
  • intermediate
  • 3 hours
  • computer science and information technology

Prepare for GATE 2026 Electrical Engineering (EE) with high-quality study material, previous year question papers, mock tests, syllabus updates, exam pattern, and expert preparation strategies. Master core EE subjects including Power Systems, Control Systems, Electrical Machines, Circuit Theory, Signals & Systems, Power Electronics, and Measurements to secure a top rank in GATE 2026.

Ask AI Tutor
5 left
Q1 View Question & Options
AI Tutor is solving this question...
Reading question context & options...
Ask your own doubt or choose a quick prompt: