Write algorithm for finding useless-productive nonterminals

Assignment Help Theory of Computation
Reference no: EM1386533

Let S --> aA | Bb C --> a B--> b, A --> aBAD | SBBb

a. Describe which nonterminals are useless?

b. Write down the algorithm for finding useless/productive nonterminals

c. Describe how this gives you the algorithm for whether language generated by grammar is empty.

Reference no: EM1386533

Questions Cloud

Greatest potential for observer bias : Determine hich of the following situations has the greatest potential for observer bias in an experimental study?
What is the initial speed of apple : An archer shoots an arrow with a velocity of 45.0 m/s at an angle of 50.0° with the horizontal. An assistant standing on the level ground 150 m downrange from the launch point throws an apple straight up with the least initial speed necessary to m..
Explain how would you calculate a given applicant level : If you were responsible for hiring a few new workers, explain how would you calculate a given applicant's level of self-esteem?
Determine the angle below the horizontal : determine the angle below the horizontal that you must aim your spear gun in order to catch dinner. Suppose the spear gun barrel is 1.70 m above the water surface, the fish is 1.40m below surface, and the spear travels in a straight line all the w..
Write algorithm for finding useless-productive nonterminals : Write down the algorithm for finding useless/productive nonterminals. Describe how this gives you the algorithm for whether language generated by grammar is empty.
Interpretation of the confidence interval : They estimated the proportion of students at the university who prefer outdoor exercise as (0.5745, 0.8217), with 95% confidence. Which of the following is an appropriate interpretation of this confidence interval?
Which ethical guideline did christopher violate : In fact, he actually was assigned to the marketing campaign after it was developed. Which ethical guideline did Christopher violate?
Explain the drastic difference between two crosses : Assume you are studying two linked genes in lizards. You have two females and you know that both are the same genotype, heterozygous for both genes.
What is its speed at the bottom of the swing : At launch, the space shuttle's engines offer a thrust of 29 x 10^6N, and it accelerates upward at 1.75 m/s^2. What is the shuttle's mass.

Reviews

Write a Review

Theory of Computation Questions & Answers

  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).

  Design mealy fsm with the input a and output z

Design a Mealy FSM with the input A and an output Z. If 10101 shows up on A, then in same cycle 1 must show up on Z, else Z is 0.

  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.

  Create a recursive java method maximum

Create a recursive java method maximum that calculate the maximum element of a linked list of integers.The solution must be simplified and should not use class Node or head

  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.

  Proving language to be pumping lemma

Show that the language F = {a^i b^j c^k | i, j, k greater than or equal to 0 and if i = 1 then j = k} is not regular. Show, however, that it satisfies the statement of the pumping lemma

  Write grammar for language consisting of strings

Write a grammar for the language consisting of strings that have n copies of the letter a followed by same number of copies of the letter b, where n>0

  Write set of token types returned by lexical analyzer

Write down the set of token types to be returned by your lexical analyzer. Describe regular expressions for this set of token types.

  Rice-s theorem for enumerable or non-re

We know by rice's theorem that none of the following problems are decidable. However,are they recursively enumerable,or non-RE? IS L(M) infinite?

  What ambiguity exists in the statement

Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g. What ambiguity exists in the statement x?

  Write first four strings in lexicographic enumeration

Consider the language L = L1 ∩ L2, where L1 = {ww^R : w ∈ {a, b}* and L2 = {a^n b*a^n: n ≥ 0}. Write the first four strings in the lexicographic enumeration of L?

  Create standard 1-tape turing machine to calculate function

Create a standard 1-tape Turing machine M to calculate the function sub3. Specifically, calculate sub3 of a natural number represented in binary.

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