Given, Create a DFA and NDFA {0,1} containing 11 and 010 and sub-string.
Since question didn't ask for brief explanation about transition but I'll follow up with some explanation and diagram.
DFA: First we start the state with repeated 1 and then pass it to next step if we get a 0. In step we can see we get all the one possible to fulfill our situation with 11 and now we need 010 after this. So we need a extended state for 010 as shown below. at the final acceptance end we take 0,1.
Diagram:
NDFA: For this as we know we need a starting point with same criteria 11 and 010 and rest other condition follows as sub-string part with these transition.
Diagram: Please check above image, Unable to upload 2 image at once.
Please let me know if you need more explanation in this.
Construct a DFSA AND NDFSA {0,1}, containing 11 and 010 and substring
Give cfg for the following language over {0,1} {w | w contains the substring 011}
How to determine the final state? I am so confused about the final state 2. Construct a DFA that accepts set of all strings over Σ={0,1), not containing 101 as a substring ? 0) 1 State/Input 0 *A AİB CIB AİR RIR 0 0 0,1
Design a Turing machine that recognizes the language L := {vSw : u, w E {0,1)" and u is a substring of u For example, 0801 E L' 10$010 E L, but i 00$10101 ¢ L. Describe the High Level algorithm informally and define the corresponding Turing Machine in details. Design a Turing machine that recognizes the language L := {vSw : u, w E {0,1)" and u is a substring of u For example, 0801 E L' 10$010 E...
Construct a regular expression that defines the language L (say) containing all the words with either exactly one aba-substring or exactly one bab-substring but not both aba- and bab-substrings. (Hint: For example, the word abab does not belong to L.)
Find a FSM that accepts all strings on {0, 1} except those containing the substring 001.
1. Construct a Finite Automata over Σ={0,1} that recognizes the language {w | w ∈ {0,1}* contains a number of 0s divisible by four and exactly three 1s} 2. Construct a Finite Automata that recognizes telephone numbers from strings in the alphabet Σ={1,2,3,4,5,6,7,8,9, ,-,(,),*,#,}. Allow the 1 and area code prefixing a phone number to be optional. Allow for the segments of a number to be separated by spaces (denote with a _ character), no separation, or – symbols.
1. Let A= {0,1}2 U... U{0,1}5 and let < be the order on A defined by (s, t) E< if and only if s is a prefix of t. (We consider a word to be a prefix of itself.) (a) Find all minimal elements in A. (Recall that an element x is minimal if there does not exist y E A with y < x.) (b) Are 010 and 01101 comparable? 2. Give an example of a total order on...
Construct a DFSA that recognizes the set of bit strings consisting of a 0 followed by a string with an odd number of ls.
Answer each question in the space below. 1. Let A = {0,1} U... U{0,1}5 and let be the order on A defined by (s, t) €< if and only if s is a prefix of t. (We consider a word to be a prefix of itself.) (a) Find all minimal elements in A. (Recall that an element & is minimal if there does not erist Y E A with y < x.) (b) Are 010 and 01101 comparable? 2. Give...
anyString.substr(x, n) - Returns a copy of a substring. The substring is n characters long and begins at position x of anyString. Write a program that reads a string from the user containing a date in the format mm/dd/yyyy. You have to use above substring method to extract the various fields from the format. It should print the date in the form Month Date, Year. Validate: Exit the program with error message as “Invalid date format” if length of...