subject

You are interested in analyzing some hard-to-obtain data from two separate databases. Each database contains numerical values (so there are 2nvalues total) and you may assumethat no two values are the same. You’d like to determine the median of this set of 2nvalues, which we will define here to be thenthsmallest value. However, the only way you can access these values is through queries to the databases. In asingle query, you can specify a valuekto one of the two databases, and the chosen database will return thekth smallest value that it contains. since queries are expensive, you would liketo compute the median using as few queries as possible. Give an algorithm that finds the median value using at mostO(logn) queries.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
How can data be added in a table by using what view
Answers: 1
question
Computers and Technology, 22.06.2019 07:30
What type of computer network ensures high security ?
Answers: 1
question
Computers and Technology, 24.06.2019 13:30
Which type of excel chart should be used to track students’ progress on test grades? line column bar pie
Answers: 2
question
Computers and Technology, 24.06.2019 17:30
List at least one thing to check for when you're checking the clarity and professionalism of a document.
Answers: 1
You know the right answer?
You are interested in analyzing some hard-to-obtain data from two separate databases. Each database...
Questions
Questions on the website: 13722363