Question

Finite Automata (FA) takes care of garbage collection. If regular expression is give and asks you...

Finite Automata (FA) takes care of garbage collection. If regular expression is give and asks you to draw FA for that then how do you know of where to draw garbage collection? please explain with an example.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

All those states which are not relevant to the expression are garbage states or trash state So we can create a trash state for all these cases.

example regular expression a* 6(66)* shows all those strings which starts with any number of a's and odd number of b's

Here is the Finite automata taking care of the garbage states:

92 91 even number of bs odd number of bs 93 Trap State

PLEASE UPVOTE

Add a comment
Know the answer?
Add Answer to:
Finite Automata (FA) takes care of garbage collection. If regular expression is give and asks you...
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
  • You are given two Finite Automata (FA), FA1 and FA2, as shown below. a, b w2+...

    You are given two Finite Automata (FA), FA1 and FA2, as shown below. a, b w2+ FA2 FAI You need to use the algorithm of Kleene's theorem to construct a FA3 for the union language: FA1 FA2. After constructing FA3, you need to answer the following question: How many states does FA3 have? Given the following machine: a,b 1- 2 4+ ab а a 3 Is this machine a FA or a TG? is a FA O None of the...

  • In this assignment, you will implement a deterministic finite automata (DFA) using C++ programming language to...

    In this assignment, you will implement a deterministic finite automata (DFA) using C++ programming language to extract all matching patterns (substrings) from a given input DNA sequence string. The alphabet for generating DNA sequences is {A, T, G, C}. Write a regular expression that represents all DNA strings that contains at least two ‘A’s. Note: assume empty string is not a valid string. Design a deterministic finite automaton to recognize the regular expression. Write a program which asks the user...

  • Automata Theory - Finding a regular expression for each of the following languages over {a,b} or...

    Automata Theory - Finding a regular expression for each of the following languages over {a,b} or {0,1}: I've written the solution . Please show steps on how to approach the problems that I mentioned in parentheses. The ones where I put my own regular expression check and see if it's still right. Thanks Strings with .... odd # of a's ---> (b*ab*ab*)b*ab* even # of 1's ---> 0*(10*10*)* ---> my answer was 0*10*10* (is this still right?) start & end...

  • How to change regular expression to regular grammar? Please give me with details and explain me...

    How to change regular expression to regular grammar? Please give me with details and explain me with easy ways. For instance (10*)*(110v001)* Binary strings contain substring 1001 Binary bring contains exactly two zeros

  • my topic is End of life care. the question is 1.Appropriate data collection is critical component...

    my topic is End of life care. the question is 1.Appropriate data collection is critical component in obtaining useful data on the research. Using the proposed research topic and research questions. explain for data collection. discuss potential issues in your data collection and your plans to overcome these challenges. 2. please give me feed backs about the questions that I made for survey 1. what is your role? 1)nurse 2) doctor 3) Family member 4) student 5) caregiver 6)patient self...

  • Please answer any 7 of them ТОС Answer any 7 from the followings: 1. Regular expression...

    Please answer any 7 of them ТОС Answer any 7 from the followings: 1. Regular expression to NFA: i) ab(aUb)* ii) (aba U a)*ab 2. Explain and construct a generalized NFA, 3. NFA to regular expression 0 3 91 93 8 a 4. DFA to regular expression 011 5. Explain the rules of pumping lemma briefly with an example. 6. Give an example of right linear grammar and left linear grammar. 7. L(G) = {1*20 m >= 1 and >=1}....

  • please give detailed explaination, i got 71.56 first and then tried to subtract from 360. please...

    please give detailed explaination, i got 71.56 first and then tried to subtract from 360. please explain how this works im confused. also when it asks for it in an interval how do you know where to put it? Problem 1.38 In each of the cases that follow, the components of a vector A are given. Use trigonometry to find the magnitude of that vector and the counterclockwise angle it makes with the +z axis. A 6.32 km Submit My...

  • Hello I have an automata question could you help me? [1Points] Give a formal description of a Tu...

    Hello I have an automata question could you help me? [1Points] Give a formal description of a Turing Machine M  that takes two parameters: an integer and an array of integers and decides whether the given integer is an element of the array or not. You can assume that all the integers are between 0 and 9. The input string will be written on the tape of the Turing machine. The first square of the tape contains the integer, the...

  • Please give detailed steps. Thank you. 2.1 Representing a preference Consider my preference over bundles (x1,x2),...

    Please give detailed steps. Thank you. 2.1 Representing a preference Consider my preference over bundles (x1,x2), where x0 andx20. You do not know all of nt pairwise comparisons in my preference, but you do know the following: Suppose you also know that my preference is rational, strictly monotonic, and strictly convex Can you infer how my preference compares the following pairs? Explain each one briefly. a) (3,7) versus (1,7), b) (3,7) versus (7,5), c) (1,7) versus (4,6), d) (7,5) versus...

  • 1.How Do You Measure The Efficiency Of Resource Allocation? Give An Example For A Real-world ......

    1.How Do You Measure The Efficiency Of Resource Allocation? Give An Example For A Real-world ... Your question has been answered Let us know if you got a helpful answer. Rate this answer Question: 1.How do you measure the efficiency of resource allocation? Give an example for a real-world appl... 1.How do you measure the efficiency of resource allocation? Give an example for a real-world application of measuring the efficiency of resource allocation. 2.Suppose the geographical tension in the Arab...

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