Show polynomial-time algorithm for gdp

Assignment Help Theory of Computation
Reference no: EM1388584

Let the following "gold-digger problem" (GDP). You are given the map of territory consisting of set of towns connected by trails. Each trail (u, v) connecting towns u and v is labeled with dollar value w(u, v), which is value of gold you will find along that trail. You can traverse trail as frequently as you want, but you only get value of trail the first time you traverse it; subsequent traversals have no value. Each town v has lodging cost c(v), which you pay each time you enter the town.

Expedition is cyclic path which starts and ends at given town. Expedition has profit k if total value of gold found, minus cost of all the town visits, is k. Goal is to find expedition of maximum profit. Either show that there exists polynomial-time algorithm for GDP, or show that corresponding decision problem is NP-complete. If you want to illustrate that problem is hard, you may decrease from any of: SAT, 3-CNF-SAT, CLIQUE, VERTEX-COVER, SUBSET-SUM, PARTITION, HAM-CYCLE, TSP.

Reference no: EM1388584

Questions Cloud

Recognize input data required for each of processes : Recognize input data required for each of processes. Recognize logical name for each data output item and kind of data output (real number, integer, text).
Calculate the interest in canada : Explain and illustrate the economy's adjustement with devaluation and find the real wage rate implied by the price-setting equation
How ecosystem affected by a decline in fungi species : Throughout much of Europe, there has been a severe decline in mushroom population. On study plots in Holland, data collected since 1912 indicate that the number of mushroom species has dropped from 37 to twelve per plot in recent years.
Define the mass of the necklace : A 40-g bullet leaves the muzzle of a gun at a speed of 300 m/s. If the barrel of the gun is 12 cm long, what is the force acting on the bullet while it is in the barrel.
Show polynomial-time algorithm for gdp : Goal is to find expedition of maximum profit. Either show that there exists polynomial-time algorithm for GDP, or show that corresponding decision problem is NP-complete.
Evolution of vascular plants : Discuss how evolution of vascular plants has provided opportunities for fungal diversification?
Why does the car mass not matter : It was a rainy day and the coefficient of friction was estimated to be 0.42. Use these data to determine the speed of the car while the driver slammed on (and locked) the brakes.
Estimate the highest emf induced in the coil : Presume the needle moves 7.5 mm from its highest to its lowest position and it makes 26 stitches in 9.1 s. What is the highest needle speed.
Identify the main biological organic compounds : Identify the main biological organic compounds and identify and explain three functions of lipids and why lipids do not mix with water.

Reviews

Write a Review

Theory of Computation Questions & Answers

  Explain proof of rice-s theorem for infinite language

If you perform reduction in proof of Rice's theorem for special case of property P: "infinite language", does this reduction also show that language P L = { | N is Turing machine.

  Productions of nonterminals as right regular grammars

Rewrite the productions for each of the following nonterminals as right regular grammars: Identifier, Float. Show the moves made using the DFSA for identifiers in accepting.

  Create and dfa or lr items for grammar

Create and DFA or LR(0) items for this grammar. Is this grammar LR(0) parsing table? If not, explain LR(0) conflict. If so create LR(0) parsing table.

  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.

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

  Turing machine model

Think about the following Turing-machine model, A tape that is infinitely long in both directions and is divided into cells; at any given step, each cell either is blank or contains a 1.

  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.

  Use undecidability of allcfg to show problem is undecidable

Use undecidability of ALLCFG to illustrate that following problem is also undecidable: Given PDA M1 and FA M2, is L(M1) = L(M2)?

  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.

  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

  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.

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