Question

Consider the language ODDNOTAB consisting of all words that do not contain the substring ab and...

Consider the language ODDNOTAB consisting of all words that do not contain the substring ab and that
are of odd length.

Give
(i) an applicable universal set,
(ii) the generator(s),
(iii) an applicable function on the universal set and
(iv) then use these concepts to write down a recursive definition for the language.

Homework Answers

Answer #1

(i) The set {a.b}* is an applicable universal set.

(ii) a and b are the generators.

(iii) The concatenation function is applicable on the universal set.

(iv) The following is a recursive defintion of ODDNOTAB:

ODDNOTAB is the smallest subset of {a.b}* that satisfies the following conditions:

  • a and b belong to ODDNOTAB
  • if w belongs to ODDNOTAB, then bb.w and w.aa also belong to ODDNOTAB
  • if w belongs to ODDNOTAB and does not end with an a then w.ba and w.bb belong to ODDNOTAB
  • if w belongs to ODDNOTAB and does not begin with b then aa.w and ba.w belong to ODDNOTAB
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
Short Answers Conceptual Questions 1. (a) A lead cylinder floats in mercury at 0oC. Will the...
Short Answers Conceptual Questions 1. (a) A lead cylinder floats in mercury at 0oC. Will the lead float higher or lower if the temperature is raised? (b) Freezing a can of soda will cause its bottom and top to bulge so badly that the can will not stand up. What has happened? 2. (a) Is it possible to boil water at room temperature (20oC) without heating it? Explain. (b) Explain why burns caused by steam at 100oC on the skin...
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...
1) Describe an example of each of the following that may be found of your kitchen:...
1) Describe an example of each of the following that may be found of your kitchen: Explain how your choice falls into this category, and if there is a chemical name or symbol for it, provide that as well. Provide a photo of your example with your ID card in it. a) a compound b) a heterogeneous mixture c) an element (symbol) Moving to the Caves… Lechuguilla Caves specifically. Check out this picture of crystals of gypsum left behind in...