CPSC 313 Introduction to Computability Assignment

Assignment Help Theory of Computation
Reference no: EM133096727

CPSC 313 Introduction to Computability - University of Calgary

Question 1: Let Σ = {a, b, c}. Give a context-free grammar for the language

L1 = {aibi ck | i,j,k ∈ N and i < j} ⊆ Σ*

and sketch a proof that your language is correct:

• For each variable V in the context-free grammar that you have given, describe (using set-theoretic notation) the set Sv ⊆ Σ* which includes all strings w ∈ Σ* such that V => *w.

• For each of these variables V and set Sv, prove that your answer is correct. That is, prove that, for every string ω ∈ Σ*, V => ω if and only if ω ∈ Sv. (One or more of these proofs might be almost the same as a similar proof that has been included in the lecture material. When this is the case it is acceptable to say so, and describe how the proof from the notes would be modified to prove your claim, instead of writing out the proof all over again.)

Note: N is the set of non-negative integers (so that 0 ∈ N).

Question 2. Let Σ = {a, b, c} once again. Give a context-free grammar for the language

L2 = {aibick i, j,k ∈ N and i < k} ⊆ Σ*.

Once again, for each variable V in the context-free grammar that you have given, describe (using set-theoretic notation) the set Sv ⊆ Σ* of strings ω ∈ Σ* such that V =>* ω (It is not necessary to prove your claims, this time.)

Question 3. Once again, let Σ = {a, b, c}. Give a context-free grammar for the language

L3 = {aibick i, j,k ∈ N and i ≠ j or i ≠ k (or both)} ⊆ Σ*.

As above, for each variable V in the context-free grammar that you have given, describe (using set-theoretic notation) the set By Sv ⊆ Σ* of strings ω ∈ Σ* such that V =>* ω. (It is not necessary to prove your claims).

Note: You should find the answers for the first two problems to be useful.

Reference no: EM133096727

Questions Cloud

Prepare a sales budget under each plan : If Plan A is accepted, the 2022 ending inventory should be 28,000 units. Prepare a sales budget for 2022 under each plan
Global information technology systems : You work for a mid-sized branch of a very large global information technology systems employer, in South Western Ontario, with a combined H.R. and Occupational
How would the actions contemplated contribute : "When they see these numbers, they'll hang him out to dry." How would the actions contemplated contribute toward "softening" the bad news
Find what is the largest positive-going noise spike : Find what is the largest positive-going noise spike and What is the largest positive-going noise spike that can be tolerated
CPSC 313 Introduction to Computability Assignment : CPSC 313 Introduction to Computability Assignment Help and Solution, University of Calgary - Assessment Writing Service
How much cash did autumn receive at the time of the transfer : The bank applied first the collection to the interest and the balance to the principal. How much cash did autumn receive at the time of the transfer
Global business environment-corporate-level strategies : The global business environment is constantly evolving based on forces in general and task environment. What corporate-level strategies is the company pursuing?
Determine the break-even volume of work for a company : Determine the break-even volume of work for a company with a fixed overhead of $63,000, a contribution margin ratio of 11.0%
How much interest cost should it capitalize during the year : Visa Inc. follows the weighted-average interest method. How much interest cost should it capitalize during the year 2021

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