Give DFA's accepting the following languages over the alphabet {0, 1} : a) The set of all strings such that each block of five consecutive symbols contains at least two 0's. b) The set of all strings whose tenth symbol from the right end is a 1. c) The set of strings that either begin or end (or both) with 01. d) The set of strings such that the number of 0's is divisible by five, and the number of 1's is divisible by 3.
Added by Andrea M.
Close
Step 1
The accepting states are those that contain at least two 0's. b) For the set of all strings whose tenth symbol from the right end is a 1, we can construct a DFA with 10 states. The states represent the last 10 symbols read, and the transitions shift the symbols Show more…
Show all steps
Your feedback will help us improve your experience
Andreas Papavassiliou and 65 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Build a DFA for the following language: L = { w | w is a string over a , and b starts ( aa or bb ) and ends with ( aa or bb ) L = { w | w is a binary string that has even number of 1s and even number of 0s} The set of all strings whose tenth symbol from the left end is a 1. The set of strings that either begin or end (or both) with 01 Let = ÎŁ ={0, 1} , Give DFA's accepting The set of all binary string , which are divisible by 3. Let = ÎŁ ={0, 1} , Give DFA's accepting The set of all binary string , which are divisible by 5. Let = ÎŁ ={0, 1} , Give DFA's accepting The set of all binary strings start with 1 , and divisible by 5.
Akash M.
i. Given a deterministic finite automata (DFA) as in Figure 2. a) List all the components of S, I, qo, F. b) Find the sequence of configurations and state if the string 0011101100 is accepted by the DFA. ii. Construct a DFA that accepts the set of all bit strings that contain three consecutive 1s.
Shaiju T.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD