Question

Give formal definition of the regular language generated by the following Regular Expressions: 1) ((ab*+a)*+ab) 2)...

Give formal definition of the regular language generated by the following Regular Expressions:

1) ((ab*+a)*+ab)

2) (a+b)*c(a+b)*

3) (ab)*+a*b

Homework Answers

Answer #1

Ans:


Given Expression:

Expression

Formal definition

((ab*+a)*+ab)

A language which accepts from a given Set of strings a,b where the generated string starts by a.

Example: { a,ab,aab,aaaa,aaaaab,ab,ab,abbbbaba…}

(a+b)*c(a+b)*

A language which accepts from a given Set of strings a,b where the generated string starts must contain c as substring

{c,acb,abcbc,aacbb,aacbb…….}

(ab)*+a*b

A language which accepts from a given Set of strings a,b where the generated string contains any length of consecutive a must followed by single b.

Example: {b,ab,aab,abab,aabab..aaaabababa….}

Note: {b, here consecutive a length =0 }

Know the answer?
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
Similar Questions
For each of the following regular expressions, give 2 examples of strings that are in the...
For each of the following regular expressions, give 2 examples of strings that are in the language described by the regular expression, and 2 examples of strings that are not in that language. In all cases the alphabet is {a,b}. ab*ba* (a ∪ ε)b* (a ∪ b)ε*(aa ∪ bb)
1. a) Rewrite the following rule base as a CFG and provide its formal definition (...
1. a) Rewrite the following rule base as a CFG and provide its formal definition ( S is the start state ) S → aSb | bAA A → b {aB} | a | Bc B → aB | c b) Generate the 10 smallest possible strings using the above rule base. ( from problem a) 2. Either show that the following strings are in this language or state why these strings can not be.. S → AB | BC...
Suppose A and B are regular language. Prove that AB is regular.
Suppose A and B are regular language. Prove that AB is regular.
1. Consider the following regular expressions: • R1 = (b*a)* • R2 = (ab*)* + (a*b)*...
1. Consider the following regular expressions: • R1 = (b*a)* • R2 = (ab*)* + (a*b)* For each of the following strings, answer one of the following: the string is accepted only by R1 the string is accepted only by R2 the string is accepted by BOTH R1 and R2 the string is accepted by NEITHER R1 nor R2 __bbaa    A. Only R2 __abb B. NEITHER R1 nor R2 __aba C. BOTH R1 and R2 __abba D. Only R1...
The language described by the regular expression ((ab)* (c|d))*
The language described by the regular expression ((ab)* (c|d))*
RegEx (Regular Expressions) 1. Make 2 regular expressions to filter a specific data set in Java...
RegEx (Regular Expressions) 1. Make 2 regular expressions to filter a specific data set in Java and explain what they do. 2. In addition to the each regular expression, provide two test cases that will pass the input and one that will fail.
In some implementations of “regular expressions,” the notations \1, \2, and so on can occur in...
In some implementations of “regular expressions,” the notations \1, \2, and so on can occur in a search pattern. For example, consider the search pattern ^([a-zA-Z]).*\1$. Here, \1 represents a recurrence of the same substring that matched [a-zA-Z], the part of the pattern between the first pair of parentheses. The entire pattern, therefore, will match a line of text that begins and ends with the same letter. Using this notation, write a pattern that matches all strings in the language...
linux regular expressions: file name: lab3test.txt Create regular expressions that meet the following criteria. You may...
linux regular expressions: file name: lab3test.txt Create regular expressions that meet the following criteria. You may use grep or egrep to answer these questions 1.Match only the lines that contain an employee ID (and nothing else) with the format 12345.
(formal languages) Determine if the following statements are true or not: (a+b)*b(a+b)*=a*b(a+b) (a+ab+abc)* = a* +...
(formal languages) Determine if the following statements are true or not: (a+b)*b(a+b)*=a*b(a+b) (a+ab+abc)* = a* + (ab)* + (abc)* a*(a+b)*(a+b+c)*=a*(a*b*)*(a*b*c*)*
Automata Theory and Formal Languages Problems 1: Consider the following two grammars. Grammar G1- S →...
Automata Theory and Formal Languages Problems 1: Consider the following two grammars. Grammar G1- S → aSb / ∈ Grammar G2- S → aAb / ∈, A → aAb / ∈ a. is G1=G2 b. What is the grammar generated by the expression Problem 2: Let us consider the grammar. G2 = ({S, A}, {a, b}, S, {S → aAb, aA → aaAb, A → ε } ) Derive aaabbb Problem 3: Suppose we have the following grammar. G: N...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • What Is Power? The Trial Urban District Assessment (TUDA) measures educational progress within participating large urban...
    asked 2 minutes ago
  • Create a Client/Server program in C language
    asked 10 minutes ago
  • USING C++ Topics: Friend functions Copy constructor ----------------------------------------------------------------------------------------------------------------------------------------- Lab 3.1 Create your objects in the stack...
    asked 35 minutes ago
  • •discuss the following and their uses in computers and engineering: Integrated circuits and use of pins
    asked 56 minutes ago
  • Do you believe you should vote for a political candidate based solely on race or gender?...
    asked 58 minutes ago
  • Service Department Charges and Activity Bases Harold Corporation, a manufacturer of electronics and communications systems, uses...
    asked 59 minutes ago
  • A financial analyst has determined that there is a 22% probability that a mutual fund will...
    asked 1 hour ago
  • What does Buddhism mean by "self does not exist"?
    asked 1 hour ago
  • Give formal definition of the regular language generated by the following Regular Expressions: 1) ((ab*+a)*+ab) 2)...
    asked 2 hours ago
  • In a recent​ year, a poll asked 2184 random adult citizens of a large country how...
    asked 2 hours ago
  • Science writer Judith Stone wrote, ‘There are two ways to approach a subject that frightens you...
    asked 2 hours ago
  • The nuclear pore complex forms a large pore with a gel-like barrier of proteins with short,...
    asked 3 hours ago