subject
Engineering, 07.12.2019 04:31 smart57

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. given a set s of integers and an integer total, the subsetsumoptimization problem is to find the smallest subset of s that sums to total or to report that no such set exists. a) suppose you have a polynomial time algorithm called sss that solves the subsetsumsearch problem. describe, in clear and concise english, a polynomial time algorithm called sso that solves the subsetsumoptimization problem. (hint: sso should call sss multiple times.) b) suppose s is a set containing n integers, and that sss(s, total, budget) is o(g( what of these is the tightest upper bound on the running time of sso(s, total)? a. o(g(n^2)) b. o(g(n)^2) c. o(g(log n)) d. o(g(n) log n)

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:10
During a steady flow process, the change of energy with respect to time is zero. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:20
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
question
Engineering, 04.07.2019 18:20
Air flows over a heated plate Γ t a velocity of 50m/s. the local skin factor coefficient at a point on a plate is 0.004. estimate the local heat transfer coefficient at this point.the following property data for air are given: density = 0.88kg/m3 , viscosity 2.286 x 10 ^-5 kgm/s , k = 0.035w/mk ,cp = 1.001kj/kgk. use colburn reynolds analogy.
Answers: 1
You know the right answer?
Given a set s of integers, an integer total, and a non-negative integer budget, the subsetsumsearch...
Questions
question
Mathematics, 26.08.2019 07:00
question
English, 26.08.2019 07:00
Questions on the website: 13722367