Problem: Interactive Sorting

Revision en1, by Hoyda, 2017-12-08 14:41:25

There is an array A of N numbers and some number K(you will be given N and K. N<1000,sqrt(N)<=K<=N). You can only query for K indices( indices are a subset of {0,1...N-1} ) and you will get them in sorted order.

What is the best strategy for sorting this array in minimum number of queries?

Tags sorting, interactive, interactive sorting

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Hoyda 2017-12-08 14:41:25 321 Initial revision (published)