Question

A. Give a grammar for {vv^R | v in Sig+}. (Note: Sig+ = Sig*\{lam}, i.e. the...

A. Give a grammar for {vv^R | v in Sig+}. (Note: Sig+ = Sig*\{lam}, i.e. the set of non-empty strings over Sig.)

How does this relate to the language in B ?

B. A palindrome over Sig is a word u in Sig* s.t. u^R = u. Let Pal(Sig) be the set of palindromes over Sig.

Homework Answers

Answer #1

A. Give a grammar for {vv^R | v in Sig+}. (Note: Sig+ = Sig*\{lam}, i.e. the set of non-empty strings over Sig.)

In this strings will be of form and hence will be in language.

B. A palindrome over Sig is a word u in Sig* s.t. u^R = u. Let Pal(Sig) be the set of palindromes over Sig.

Any string in language of A will be a palindrome.

Proof:

Any string in language would be . Lets take R of this string. = = . Hence proved that all string in langauge in part A will be palindorme. So A will be subset of B.

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
show proof with all explanations please!! will give a like. theorem: Suppose R is an equivalence...
show proof with all explanations please!! will give a like. theorem: Suppose R is an equivalence of a non-empty set A. Let a, b be within A. Then [a] does not equal [b] implies that [a] intersect [b] = empty set
Is there a set A ⊆ R with the following property? In each case give an...
Is there a set A ⊆ R with the following property? In each case give an example, or a rigorous proof that it does not exist. d) Every real number is both a lower and an upper bound for A. (e) A is non-empty and 2inf(A) < a < 1 sup(A) for every a ∈ A.2 (f) A is non-empty and (inf(A),sup(A)) ⊆ [a+ 1,b− 1] for some a,b ∈ A and n > 1000.
Bob has a utility function over money v(x) = √ x. There are two possible states...
Bob has a utility function over money v(x) = √ x. There are two possible states of the world 1 and 2. State 1 can occur with probability π1 and state 2 can occur with probability π2 where π2 = 1 − π1. Bob’s wealth levels in the states 1 and 2 will be x1 and x2 respectively. Therefore Bob’s expected utility over the state-contingent consumption bundle is, U((x1, x2); (π1, π2)) = π1 √ x1 + π2 √ x2...
For a C program hangman game: Create the function int setup_game [int setup_game ( Game *g,...
For a C program hangman game: Create the function int setup_game [int setup_game ( Game *g, char wordlist[][MAX_WORD_LENGTH], int numwords)] for a C program hangman game. (The existing code for other functions and the program is below, along with what the function needs to do) What int setup_game needs to do setup_game() does exactly what the name suggests. It sets up a new game of hangman. This means that it picks a random word from the supplied wordlist array and...
As you saw from the lab PowerPoint slides last week, you will be doing a research...
As you saw from the lab PowerPoint slides last week, you will be doing a research study looking at ‘Aggression Priming” for your first paper. For this week’s discussion, I want you to discuss with your group what you think this study is about. What is the hypothesis? What theory does it come from? What do you predict will happen (do you expect something different than the hypothesis in the researcher instructions? If so, what and why?)? Do you think...
Actually a HISTORY question: what tactics does Einhard use to portray Charlemagne in "Life of Charlemagne"...
Actually a HISTORY question: what tactics does Einhard use to portray Charlemagne in "Life of Charlemagne" and what tactics does Procipius use to describe Justinian in a positive light in the "Nika Riots"? Ive posted both excerpts. "Life of Charlemagne" Charles the Great, (Charlemagne in French) reigned 768-814 as king of the Franks and the most important ruler of the Carolingian Dynasty, conquering lands in what is now Germany, France, Spain, and Italy. On Christmas Day 800 C.E., Pope Leo...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...