APM 3430 Theory of Computation Assignment

Assignment Help Theory of Computation
Reference no: EM132500472

APM 3430 Theory of Computation - Oakland University

Question 1.
(a) Let L1 be the language of all strings of a's and b's that do not end with b and do not contain the substring bb. Show that there is a finite language S such that S∗ = L1.

Tip: List elements of L1 up to a certain length (say 3). What strings must be in S to be able to generate those strings in L1? Do they seem to generate every string in L1?

Note: Once you have a candidate for S, you need to show that S∗ = L1, that is,
(1) from S you can generate only elements of L1, and (2) you can generate every element of L1. For (1) argue that whatever string you generate from S will satisfy the conditions for strings in L1. For (2), use induction on the length of the string in L1. Tip: if a string is in L1, can you identify one of its symbols? Can you conclude that the rest of the string is also in L1 so that you can use the induction hypothesis? If yes, you should be done, otherwise how does the string look like?
While it is possible to get a description of L1 and argue that S generates it without using induction, I recommend that you do use induction, as the goal of this question is for you to practice induction.

(b) Let L2 be the language of all strings of a's and b's that do not contain the substring bb. Show that there is no language S such that S∗ = L2.

Tip: List elements of L1 up to a certain length (say 3). What strings must be in S to be able to generate those strings in L1? Will those have to generate strings not in L1?

Question 2. For each n ≥ 0 define the strings an and bn in {0, 1}∗ as follows: a0 = 0, b0 = 1, and for n > 0, an = an-1bn-1 and bn = bn-1an-1 (the operation here is concatenation, not multiplication, hence, e.g., a1 = 01 and b1 = 10). Use induction on n to show that the strings a2n and b2n are palindromes for every n ≥ 0.

Tip: Write down the first few strings to get a feel of how they look like. In your induction step try to write a2(n+1) and b2(n+1) in terms of a2n and b2n using the given recursion, and use the induction hypothesis that they are palindromes, so aR = a2n and bR = b2n.

Question 3. Let L1 ⊂ {a, b}∗ be the language defined recursively as follows:
(a) Λ ∈ L1.
(b) For every x ∈ {a, b}∗, if x is in L1, then ax, xb, and xba are also in L1.
(c) Only those strings are in L1 that can be obtained by applying (a) and (b) finitely many times.
Let L2 ⊂ {a, b}∗ be the language containing every string in {a, b}∗ that doesn't contain
baa as a substring. Show that L1 = L2.

Question 4. Find a recursive definition for the language L = aibj i, j N, i j 3i (like the one in problem 3), and show that your definition is correct.

Tip: Your recursive definition should be similar to the one in Problem 3. You want to make sure that (1) all the a's are before all the b's, and (2) the number of b's in the string is not too small and not too large. So, whenever you add an a, how many b's should you add?
Once you have a recursive definition, you may want to give a new name for the language generated by it to avoid confusion. Then you want to show that (1) you can generate only elements of L, and (2) you can generate every element of L. For (1) you want to argue (maybe using structural induction) that every string you generate will have the form strings in L satisfy. For (2) you want to show that every string in L can be generated. I suggest using induction on i in the defintion of L.

Question 5. Draw an FA that accepts the language L7, the set of strings in 0, 1 ∗ that are binary representations of natural numbers divisible by 7 (leading zero is not allowed except for 0 itself, so for example, 10101 L7, 0 L7, but 0111 L7). Justify that your FA accepts L7.

Tip: Use the states to remember the remainder of the number one has read so far modulo 7 as we did in class. Remember that leading 0's are not allowed except the number 0 itself (but 00 should not be accepted), so you have to deal with that separately. Figure out how the remainder changes when a 0 or a 1 is appended to the string.

Note: There is no need to give a formal definition of the FA, a picture suffices. As your justification, explain briefly the idea behind the FA, and how you got the new remainders (best to include the table with the new remainders).

Attachment:- Theory of Computation.rar

Reference no: EM132500472

Questions Cloud

What was the unit cost for factory depreciation : 10,000 units of product during the year just com-Pleted. What was the unit cost for direct materials? What was the unit cost for factory depreciation?
What is contribution format vs traditional format : What do you Understand the differences between Contribution Format and Traditional Format Income Statementsand explain in details.
Indicate the most likely market structure : Indicate the most likely market structure that each of the following business would be in:
Present the division of net income section : Present the Division of net income section. Assuming that the net income had been $65,000 instead of $110,000, present the Division of net income.
APM 3430 Theory of Computation Assignment : APM 3430 Theory of Computation Assignment Help and Solution, Oakland University - Assessment Writing Service - Find a recursive definition for the language
Positive and negative effects of monopoly in malaysia : Describe the positive and negative effects of monopoly in Malaysia.
Find what ratio is net income to be divided : $45,000 and devotes half time to the partnership. If no other information is available regarding distributions, in what ratio is net income to be divided?
What is legal action policy : What is legal action policy ? If the outstanding debt is greater than always turn over to legal action when the debt becomes days past due
Determining the demand elastic or inelastic : Mary is a smart entrepreneur in her primary school. She sells ball points to her fellow school mates. At a price of $2.00 each, she sells 100.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Finite-state machine design

Create a finite-state machine design to turn your FPGA development board into a simple programmable music box.

  Redundant sequence identi cation

Redundant sequence identi cation

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Design a syntactic analyzer

Design a syntactic analyzer for the language specified by the grammar

  Design unambiguous grammar to parse expressions

Write a program would read two numbers and then print all numbers between the first and the second, inclusive. Design unambiguous grammar to parse expressions

  Consider a logic function with three outputs

Consider a logic function with three outputs,  A ,  B , and  C , and three inputs,  D ,  E , and  F . The function is defined as follows:  A  is true if at least one input is true,  B  is true

  Considering a single programmed operating system

Considering a single programmed operating system, what is the minimal total time required to complete executions of the two processes? You should explain your answer with a diagram.

  How to construct an nfa

Give a construction that assumes you are given a DFA for L and show how to construct an NFA (with or without ε-moves) to recognize sort(L).

  Equivalence classes to construct minimal dfa for language

How many equivalence classes does this relation have and what are they? Use these equivalence classes to construct the minimal DFA for the language.

  Impact of moore-s law on data center costs

Discuss the impact of Moore's law on data center costs on such things as servers and communications equipment. List at least 3 steps or recommendations your data center can take to offset some or all of the effect of Moore's law.

  Problem encountered in statements in predicate logic

How the problem would be encountered in attempting to represent the following statements in Predicate logic. it should be possible to: John only likes to see French movies.

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