subject
Engineering, 18.11.2019 18:31 DEEWILL5100

You are interested in analyzing some hard-to-obtain data from two separate databases. each database contains n numerical values—so there are 2n values total—and you may assume that no two values are the same. you’d like to determine the median of this set of 2n values, which we will define here to be the nth smallest value. however, the only way you can access these values is through queries to the databases. in a single query, you can specify a value k to one of the two databases, and the chosen database will return the kth smallest value that it contains. since queries are expensive, you would like to compute the median using as few queries as possible. give an algorithm that finds the median value using at most o(log n) queries.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
An ideal otto cycle with air as the working fluid has a compression ratio of 8. the minimum and maximum temperatures in the cycle are 300 k and 1340 k. use constant specific heats at room temperature to determine (a) the amount of heat transferred to the air during the heat- addition kj/kg, (b) the thermal efficiency, and (c) the thermal efficiency of a carnot cycle ope limits. process, in rating between the same temperature
Answers: 2
question
Engineering, 04.07.2019 19:10
Agas is compressed from vi 0.3 m, p 1 bar to of v2 0.1 m3, p2--3 bar. pressure and volume are related linearly during the process. for the gas, find the work, in kj.
Answers: 2
question
Engineering, 04.07.2019 19:20
Air enters a horizontal, constant-diameter heating duct operating at steady state at 290 k, 1 bar, with a volumetric flow rate of 0.25 m°/s, and exits at 325 k, 0.95 bar. the flow area is 0.04 m2. assuming the ideal gas model with k = 1.4 for the air, determine (a) the velocity at the inlet and exit, each in m/s, and (c) the rate of heat transfer, in kw flow rate, in kg/s, (b) the mass kg 0.3
Answers: 2
You know the right answer?
You are interested in analyzing some hard-to-obtain data from two separate databases. each database...
Questions
question
Health, 08.02.2021 22:50
question
Mathematics, 08.02.2021 22:50
Questions on the website: 13722367