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

  Provide dfa-s accepting the languages over alphabet

Provide DFA's accepting the following languages over alphabet {0,1}. Set of all strings that, when interpreted as the binary integer, is a multiple of 5.

  Create a program that reads integers

Create a program that reads integers in range 0 .. 9999. The event stops reading if -99 is entered. Your event should use Stack to store those numbers then it used Priority Queue to print out those numbers in ascending order.

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  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.

  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

  Question about perfect programming language

I have noticed that there are several languages, is this because no one language has all the main elements needed to be a perfect programming Language?

  Finite-state machine design

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

  Explain declarative knowledge and procedural knowledge

Write some examples of declarative knowledge. Write some examples of procedural knowledge. Then, compare examples, highlighting the similarities & differences.

  Determine if system in a safe state-share nine tape drives

There are four processes that are going to share nine tape drives. Their current and maximum number of allocation numbers. Is system in a safe state? Explain why or why not?

  Use algorithm np completeness of any of the problems

Use any algorithm we without writing out details of algorithm. In proving problem NP-complete, you may utilize NP completeness of any of the problems.

  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 a mealy machine which produces the output

Create a Mealy Machine which produces the output of 1 whenever discrepancy in above pattern is detected, and produces the output of 0 otherwise. Write states meaningful names.

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