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
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:20
Athin walled concentric tube exchanger is used to cool engine oil from 160°c to 60°c with water that is available at 25°c acting as a coolant. the oil and water flow rates are each at 2 kg/s, and the diameter of the inner tube is 0.5 m and the corresponding value of the overall heat transfer coefficient is 250 w/m2. oc. how long must the heat exchanger be to accomplish the desired cooling? cpwater=4.187 kj/kg-candcpengine el=2.035 kj/kg·°c, oil . 120]
Answers: 1
question
Engineering, 04.07.2019 18:20
Along 8-cm diameter steam pipe whose external surface temperature is 900c connects two buildings. the pipe is exposed to ambient air at 70c with a wind speed of 50 km/hr blowing across the pipe. determine the heat loss from the pipe per unit length. (b) air at 500c enters a section of a rectangular duct (15 cm x 20 cm) at an average velocity of 7 m/s. if the walls of the duct are maintained at 100c. a) the length of the tube for an exit temperature of the air to be 40 0c. b)the rate of heat transfer from the air. c) the fan power needed to overcome the pressure drop in this section of the duct.
Answers: 1
question
Engineering, 04.07.2019 19:10
Plan an experiment to measure the surface tension of a liquid similar to water. if necessary, review the ncfmf video surface tension for ideas. which method would be most suitable for use in an undergraduate laboratory? what experimental precision could be expected?
Answers: 2
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, 07.07.2019 04:30
Questions on the website: 13722363