![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 17.08.2021 23:40, LadyHolmes67
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.
Required:
Give an algorithm that finds the median value using at most O(log n) quires.
![answer](/tpl/images/cats/otvet.png)
Answers: 3
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 20:30, jalenevoyles
Which key should you press to leave the cell as it originally was? a. delete b. cancel c. backspace d. enter
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 04:00, anthonypacheco
What was the name of the first computer (machine) language?
Answers: 2
Do you know the correct answer?
You are interested in analyzing some hard-to-obtain data from two separate databases. Each database...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 10.12.2019 13:31
![Konu](/tpl/images/cats/en.png)
English, 10.12.2019 13:31
![Konu](/tpl/images/cats/himiya.png)
Chemistry, 10.12.2019 13:31
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/en.png)
English, 10.12.2019 13:31
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/es.png)
Spanish, 10.12.2019 13:31
![Konu](/tpl/images/cats/biologiya.png)
![Konu](/tpl/images/cats/istoriya.png)
History, 10.12.2019 13:31