subject

Given a set s of integers, an integer total, and a non-negative integer budget, the subsetsumdecision problem is to report whether or not there is a subset of s, containing at most budget elements, that sums to total.

given a set s of integers, an integer total, and a non-negative integer budget, the subsetsumsearch problem is to find a subset of s, containing at most budget elements, that sums to total or to report that no such set exists.

a) suppose you have a polynomial time algorithm called ssd that solves the subsetsumdecision problem. describe, in clear and concise english, a polynomial time algorithm called sss that solves the subsetsumsearch problem. (hint: sss should call ssd multiple times.) you should not need more than five sentences or so.

b) suppose s is a set containing n integers, and that ssd(s, total, budget) is o(f( what of these is the tightest upper bound on the running time of sss(s, total, budget)?

a. o(n f(n))
b. o(f(n)^2)
c. o(f(n) log n)
d. o(f(n^2))

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
question
Computers and Technology, 22.06.2019 10:40
"it security policy enforcement and monitoring" respond to the following: describe how monitoring worker activities can increase the security within organizations. describe the rationale that managers should use to determine the degree of monitoring that the organization should conduct. explain the extent to which you believe an organization has the right to monitor user actions and traffic. determine the actions organizations can take to mitigate the potential issues associated with monitoring user actions and traffic.
Answers: 3
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
You know the right answer?
Given a set s of integers, an integer total, and a non-negative integer budget, the subsetsumdecisio...
Questions
question
Social Studies, 11.10.2019 14:00
Questions on the website: 13722367