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

  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.

  Deterministic finite and non-deterministic finite automata

Describe the difference between a Deterministic Finite Automata and Non-Deterministic Finite Automata. In general, which one is expected to have less number of states ?

  Interpreting the regular expressions as languages

Show that the following identities hold for regular expressions over any alphabet: epsilon + R*R = R*. These should be done by interpreting the regular expressions as languages.

  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.

  Propositional and predicate logic

Write down a structural induction principle for the PlayTree free type

  Write problems which have no solutions

What does the term solvable mean to you? What does it mean to say that "you solved a problem"? Determine examples of problems for which you believe there are no solutions.

  Compute a shortest superstring

Dynamic programming algorithm to compute a shortest superstring.

  Prove that l is not regular using pumping theorem

Prove that L is not regular. (Be particularly careful if you use the Pumping Theorem. You must choose a w that is actually in L.)

  Write grammar for language comprising of strings

Write down the grammar for language comprising of strings which have n copies of letter a followed by same number of copies of letter b, where n > 0.

  Implement finite state machine to recognze input string

Write implememnt finite state machine which recognzes input string according to following rules. First character should be either letter(upper or lower case.)

  Explaining syntactically legal boolean expression

In this problem, we consider a very restricted subset of Boolean expressions. Define an operator to be one of  the four symbols: ¬, ∧, ∨, and →. Define a variable to be one of the five symbols

  How to express correctness properties in ltl

Express the given correctness properties in LTL. Defne propositions/variables to model the events mentioned in the question. If a parent process calls the blocking waitpid() system call then it is blocked until child process terminates.

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