Give a regular expression for given language

Assignment Help Theory of Computation
Reference no: EM133008761

Question 1 We are using the alphabet {0, I}. We have a DFA with 5 states, S = {s0, s1, s2, s3, s4}. The start state is so and the only accepting state is also so. The transitions are given by the formula

δ(si, a) = sj where j = i2 + a mod 5.

Draw the table showing which pairs of states are inequivalent and then construct the minimal automaton. Remember to remove useless states right from the start, before you draw the table. I am happy with a drawing of the automaton.

Question 2 Are the following statements true or false? Justify your answer in each case. We have some fixed alphabet Σ with at least two letters. In the following A and B stand for languages, i.e. subsets of Σ*
• If A is regular and A ⊆ B then B must be regular.
• If A and AB are both regular then B must be regular.
• If {Ai|i ∈ N) is an infinite family of regular sets then Ui=1. j Ai is regular.
• If A is not regular it cannot have a regular subset. 15]

Question 3 Consider the language L = {anbm|n ≠ m); as we have seen this is not regular. Recall the definition of the equivalence ≡L which we used in the proof of the Myhill-Nerode theorem. Since this language is not regular ≡L, cannot have finitely many equivalence classes. Exhibit explicitly, infinitely many distinct equivalence classes of ≡L.

Question 4 Describe an algorithm that given two different regular expressions R1 and R2 decides whether R1 ⊆ R2. The description should be high-level and at the level of detail shown in the example I posted on the website. I will deduct marks for excessive low-level details and I will give you zero If you submit code.

Question 5 Let D be the language of words w such that w has an even number of a's and an odd number of b's and does not contain the substring

1. Give a DFA with only five states, including any dead states, that recognizes D.

2. Give a regular expression for this language.

Reference no: EM133008761

Questions Cloud

Describe quality improvement initiative in current practice : Describe a quality improvement initiative in your current or recent practice setting. What was the nurse's role in the project? What was the outcome of project
Do believe nurses should belong to professional organization : Do you believe nurses should belong to professional organizations? How does the concept of Modeling & Role Modeling apply to nursing?
What information should be included in a teaching plan : What information should be included in a teaching plan to help her understand about taking celecoxib and the benefits and risks?
Explain how does alena seem to feel regarding outcomes : Alena's mother is seen at the end of the vignette asking herself "is it worth it? You don't know." How does Alena seem to feel regarding her outcomes?
Give a regular expression for given language : Draw the table showing which pairs of states are inequivalent and then construct the minimal automaton - Give a regular expression for language
Explain ebp initiative that was implemented in a health care : Discuss an EBP initiative that was implemented in a health care setting (use fictitious names for people and places) and whether it was successful
Examine alterations in the endocrine system : Examine alterations in the endocrine system and the resultant disease processes. You also consider patient characteristics, including racial
Why the evidence cited in the concept map are valuable : Why the evidence cited in the concept map and narrative are valuable and relevant, as well as how specific inter professional strategies will help improve
Algorithm that given two different regular expressions : Describe an algorithm that given two different regular expressions - Give a DFA with only five states, including any dead states, that recognizes D

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd