Question
discrete math box answers do A and B please

2. For this problem, all strings are in the set (0,1) a) Design a Finite State Machine that accepts all and only the strings
0 0
Add a comment Improve this question Transcribed image text
Answer #1

IF YOU HAVE ANY DOUBTS COMMENT BELOW I WILL BE TTHERE TO HELP YOU..ALL THE BEST..

  1. We know that the first input is '0' then the last input cannot be '0', so we start two flows form start state, one for staring with '0' and another for starting with '1'
  2. So there will be two final states
  3. In the first flow starting with '0' we will accept the input '0' on state "q1" for multiple times and then on "1" we will go to final state.
  4. On final state we will direct the input '0' to state "q1" so that the last symbol should not be '0'
  5. The same mechanism will be for another flow staring from start state "q0" on input '1'.

1 0 0 0 1 1 0 1 0 1

I HOPE YOU UNDERSTAND..

PLS RATE THUMBS UP..ITS HELPS ME ALOT..

THANK YOU...!!

Add a comment
Know the answer?
Add Answer to:
discrete math box answers do A and B please 2. For this problem, all strings are in the set (0,1) a) Design a Finit...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. Use a Regular Expression to define the set of all bit strings of one or...

    1. Use a Regular Expression to define the set of all bit strings of one or more 0's followed by only a 1. 2. Use a Regular Expression to define the set of all bit string of two or more symbols followed by three or more 0's. 3. Are these two grammars the same? a. S-> aSb|ab|λ b. S-> aAb|ab A->aAb|λ 4. Use the process of elimination to find the language of the following FA: (see picture for diagram) 5....

  • Can you please thoroughly explain part B? Let Σ {0,1} be an alphabet. Suppose the language...

    Can you please thoroughly explain part B? Let Σ {0,1} be an alphabet. Suppose the language Ly is the set of all strings that start with a 1 and L2 is the set of all strings that end in a 1. Describe Lj U L2 and (L1 UL2)* using English. b) Decide if the given strings belong to the language defined by the given regular expression. If it does not belong, then explain why. 0(1|€)10(e|0)*11 , strings: 0110011, 0100011001111

  • Provide a regular expression for the following languages: (a) the set of all strings over {a,...

    Provide a regular expression for the following languages: (a) the set of all strings over {a, b} that start with ab and end with ba, (b) the set of strings over {a, b} where four consecutive occurrences of both letters occur in every word.

  • This question deals with NFAs, DFAs, and regular expressions. (a) Using only the symbols described in...

    This question deals with NFAs, DFAs, and regular expressions. (a) Using only the symbols described in the lecture slides, write a regular expression that describes all strings over the alphabet Σ = {0,1} that are at are at least four bits long and begin and end with the same bit. (b) Draw a DFA, that accepts strings strings over the alphabet Σ = {0, 1} such that if you read the string from left to right, the difference between the...

  • discrete math box answers do a-d please 4. Hexadecimal numbers are made using the sixteen digits...

    discrete math box answers do a-d please 4. Hexadecimal numbers are made using the sixteen digits 0, 1, 2,3, 4, 5,6,7,8,9, A, B, C, D, E, F a) How many 5 digit hexadecimal numbers are there that do not start with the digit 07 b) How many 5 digit hexadecimal numbers that do not start with the digit 0 and do not end with the digit 0? c) How many 5 digit hexadecimal numbers start with a letter or end...

  • Question 8, please. 2. Prove: (a) the set of even numbers is countable. (b i=1 3....

    Question 8, please. 2. Prove: (a) the set of even numbers is countable. (b i=1 3. The binary relation on pair integers - given by (a,b) - (c,d) iff a.d=cbis an equivalence relation. 4. Given a graph G = (V, E) and two vertices s,t EV, give the algorithm from class to determine a path from s to t in G if it exists. 5. (a) Draw a DFA for the language: ( w w has 010 as a substring)....

  • please Answer the following regular expressions questions(also do number 9) Q4 Choose the pattern that finds...

    please Answer the following regular expressions questions(also do number 9) Q4 Choose the pattern that finds all filenames in which the first letters of the filename are astA, followed by a digit, followed by the file extension .txt. 1) astA[[:digit:]]\.txt 2) astA[[0-9]].txt 3) astA.\.txt 4) astA[[:digit:]].txt Q5 What's the difference between [0-z]+ and \w+ ? 1) The first one accepts 0 and z and the other doesn't. 2) The first one doesn't allow for uppercase letters. 3) The first one...

  • I would like some assistance correcting an issue I am having with this assignment. Once a...

    I would like some assistance correcting an issue I am having with this assignment. Once a finite state automaton (FSA) is designed, its transition diagram can be translated in a straightforward manner into program code. However, this translation process is considerably tedious if the FSA is large and troublesome if the design is modified. The reason is that the transition information and mechanism are combined in the translation. To do it differently, we can design a general data structure such...

  • Q2 /please Answer part (B (2) Double-diminishing-balance method ) I have all answers I need only...

    Q2 /please Answer part (B (2) Double-diminishing-balance method ) I have all answers I need only part 2 for all years Pharoah Limited purchased a machine on account on April 2, 2018, at an invoice price of $356,620. On April 4, it paid $2,130 for delivery of the machine. A one-year, $3,970 insurance policy on the machine was purchased on April 5. On April 18, Pharoah paid $7,590 for installation and testing of the machine. The machine was ready for...

  • please use dia to draw the e-r diagram to create Entity - Relationship Diagrams then use MS access This project requires you to create a database design. Your design will be documented in a set o...

    please use dia to draw the e-r diagram to create Entity - Relationship Diagrams then use MS access This project requires you to create a database design. Your design will be documented in a set of Entity-Relationship Crow's Foot diagrams using the representation as shown in the lecture materials. Draw a set of Entity-Relationship diagrams to model the following scenario. The Maggs Realty Company wants to track the Sales Offices that they have across all of Ontario They are interested...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT