CSC 420 Theory of Computation Assignment

Assignment Help Theory of Computation
Reference no: EM133124085

CSC 420 Theory of Computation - University of Tabuk

Part 1:

Question 1: Give the following DFAs over ∑ = {a, b}

DFAs recognizes language L1 = L(M1)

DFA1 M1 for L1

1528_Theory of Computation.jpg

 

a) Construct a DFA for the language L1*.

b) What is the regular expression (RE) for L1?

Question 2: a) Consider the following NFA-ε over ∑ = {a, b}:

1261_Theory of Computation1.jpg

 

Convert this NFA-ε into DEA.

b) Build NFA for L((ba) U(ab)* over ∑ = (a, b).

Question 3: a) Consider the following CFG:

S→aS|aX|a

X→anX|bS|aa

1) What is the regular expression (RE) accepted by this CFG?

2) Show that whether this CFG is ambiguous or not:

3) Show that whether the word "abaaa" is accepted or not by this CFG:

b) Considering the below PDA, give the (state; stack) evolution of input string w = abb.

472_Theory of Computation2.jpg

Question 4: Convert the following CFG into an equivalent CFG in Chomsky Normal Form(CNF) over the

∑ = {a, b}

S → aS|abX

X → baY

Y → aaX|ε

Part 2:

Question 1: Give DFAs for the following languages over the alphabet is Σ = {a, b}

1) The language L(RE = b*a(ab)*b).

2) The language {w ∈ Σ* | w starts with ab}.

Question 2:

Convert the following CFG into an equivalent CFG in Chomsky Normal Form (CNF) over the

Σ = {a, b}.

S → aS |bbX

X → aaX| bY | ε

Y → aX

Question 3:

Consider the following CFG over {0,1}:
S → 0S | 0X
X → 11X | ε

1) What is the regular expression (RE) accepted by this CFG?

2) Show that whether this CFG is ambiguous or not:

3) Show that whether the word "01111" is accepted or not by this CFG:

4) Convert this CFG into PDA.

Question 4: Consider the following language:

L1 = L(re=0100*)

a) Build a deterministic pushdown automata (PDA) that recognizes this language L1 over the Σ = {0, 1}.

b) Build a Turing Machine(TM) that recognizes this language L1 over the Σ = {0, 1}.

Reference no: EM133124085

Questions Cloud

What did deng xiaoping mean : What did Deng Xiaoping mean when he said that "It doesn't matter if a cat is black or white, so long as it catches mice"?
Consumer wendy marginal utility and willingness : Assume the UK market for panther chameleons is perfectly competitive. Table 1 shows fictional data about consumer Wendy's marginal utility and willingness to pa
Compare the effects of the two financing alternatives : Compare the effects of the two financing alternatives on Baker Company's balance sheet, income statement, and cash flows under current US GAAP
Outline innovation project by creating business case : Outline an innovation project by creating a business case. Identify why the organization is in a good position to be developing the new product or service.
CSC 420 Theory of Computation Assignment : CSC 420 Theory of Computation Assignment Help and Solution, University of Tabuk - Assessment Writing Service
What is mobile network as a platform : What is Mobile Network as a Platform
Describe the demand curve for monoplolistic competition : The kinked oligopoly demand curve does not describe the demand curve for monoplolistic competition because in a monopolistically competitive markets?
Contrast general equilibrium-partial equilibrium analysis : Contrast general equilibrium and partial equilibrium analysis. Discuss the merits of each. Be sure in your answer to cite important thinkers and models that fal
International value of currency : A) Do you agree or disagree with the following statements. Explain your answer.

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