Question

Let Σ = {0, 1}. Consider the language A = {w | w has an odd...

Let Σ = {0, 1}. Consider the language A = {w | w has an odd length}. Give a string in the language A that has length at least p.

Homework Answers

Answer #1

Given that,

Σ = {0, 1}. Consider the language A = {w | w has an odd length}. Give a string in the language A that has length at least p.

Here different values are possible for p, you have not specified the value so, we will discuss for some possible values.

let's assume p=1.

possible strings are:the language A itself is the ans because it has atleast length 1.

Now let's assume p=3

for that all the strings in the language A with length 1 or 2 will not count but other than that all the strings will count.

[here language A not contain length 2]

therefore ans is: A - {0,1}

Now let's assume for p=5

for that same as above strings with length 1,2,3,4 will be excluded.

[here language A not contain length 2 and 4]

So the ans would be: A - {strings with length 1 and 3}

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
Let Σ = {0, 1}. Consider the language A = {ww | w ∈ 0Σ*}. Give...
Let Σ = {0, 1}. Consider the language A = {ww | w ∈ 0Σ*}. Give a string in the language A that has length at least p.
Let Σ = {0, 1}. Give a regular expression that expresses the language {w | w...
Let Σ = {0, 1}. Give a regular expression that expresses the language {w | w contains exactly two 0s}.
What is the regular expression for the language L={w| w starts with 1 and has odd...
What is the regular expression for the language L={w| w starts with 1 and has odd length}? The alphabet of the language is {0, 1};
Consider the language L = { w w : w ∈ { 0 , 1 }...
Consider the language L = { w w : w ∈ { 0 , 1 } ∗ } is not context-free. Note that this is the language of all strings that consist of some combination of 0s and 1s, followed immediately by that same combination of 0s and 1s. For example, 0101, 101101, and 110110 are all in the language because they consist of a string followed by itself. Can you build a PDA to recognize this language? (Hint: you...
Consider the language L3 over alphabet Σ = { a, b }, L3 = { w...
Consider the language L3 over alphabet Σ = { a, b }, L3 = { w ∈ Σ* | w is a palindrome of any length}. Construct a PDA that recognizes L3. Implement that PDA in JFLAP
Design a DFA accepting the language of all strings over Σ = {0, 1} with the...
Design a DFA accepting the language of all strings over Σ = {0, 1} with the property that the number of 0s and the number of 1s in a string are both odd.
Let Σ = {0,1}. Prove that the language { w | w contains the substring 01001...
Let Σ = {0,1}. Prove that the language { w | w contains the substring 01001 } is regular by providing a finite automaton to recognize the language. Include a state diagram, formal description, and informal justification for the correctness of your automaton.
Using Pumping lemma to prove the below language is not regular Let Σ2 = {[ 0...
Using Pumping lemma to prove the below language is not regular Let Σ2 = {[ 0 0 ] , [ 0 1 ] , [ 1 0 ] , [ 1 1 ]} . Consider each row to be a binary number and let L3 = w ∈ Σ ∗ 2 | the bottom row of w is the square of the top row of w . For example, [ 0 1 ] [ 0 0 ] [ 1 0...
Draw the state diagram of DFAs recognizing the following languages. a. A = {w|w starts with...
Draw the state diagram of DFAs recognizing the following languages. a. A = {w|w starts with 0 and has odd length, or starts with 1 and has even length} b. B = {w|w is any string except 11 and 111} c. C = {, 0} Example of set difference: A = {0, 01}, and B = {0, 11}. Then, A − B = {01}. Prove that regular languages are closed under the set difference operation. That is, if A and...
Let L1 be the language of the Regular Expression 1(1 + 0)*. Let L2 be the...
Let L1 be the language of the Regular Expression 1(1 + 0)*. Let L2 be the language of the Regular Expression 11* 0. Let L3 be the language of the Regular Expression 1* 0. Which of the following statements are true? L2 L1 L2 L3 L1 L2 L3 L2
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT