Algorithm that given two different regular expressions

Assignment Help Data Structure & Algorithms
Reference no: EM133008757

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: EM133008757

Questions Cloud

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
Discuss how are pushing the agenda : Select an interest group (AARP, AHIP, Coalition for Health Services Research, Emergency Nurses Association, Pharma) Discuss how they are pushing their agenda
What options are appropriate for the patient : What options are appropriate for this patient? Margaret's assessment finds her height 5'5", weight 172 lb (up 10 lb. from last year), current body mass index.
What is experience with receiving microaggression : What is your experience with receiving microaggression? How about being the person saying the microaggession to someone else?
Consideration in conflict management : A)How will you take individual perceptions into consideration in conflict management?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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