Construct a DFA for the language

Assignment Help Theory of Computation
Reference no: EM133124111

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|ε

 

Reference no: EM133124111

Questions Cloud

Organization about cloud computing : Find the details of the project and pick any one of the organization about Cloud Computing. Discuss challenges the organization had that limited profitability
How wages are determined : Labor markets are an important concept to understand in terms of how wages are determined. Explain how COVID has impacted wages in our economy.
Journalize the entries to record the transactions : Journalize the entries to record transactions. Refer to the Chart of Accounts for exact wording of account titles. Assume 360-day year when calculating interest
Official federal health care policy : Official federal health care policy for the past 40 years has focused on market solutions, underlining the reliance on competition to improve quality and access
Construct a DFA for the language : Construct a DFA for the language - What is the regular expression and What is the regular expression (RE) accepted by this CFG
How much was the amount paid to complete the transaction : If Zhane Company recognized a gain on this exchange of P160,000, how much was the amount paid to complete the transaction
Stages of the consultant life cycle : What are the core principles of a model Consultant? Discuss the 5 stages of the Consultant Life Cycle.
What is heuristics and biases approach : 1.a) What is heuristics and biases approach to judgment under uncertainty? Explain your answer.
What is the maximum level : The cost accountant of Bake it up! a manufacturer of baked products, has determined the following information - What is the maximum level

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