Problem: Interactive Sorting

Правка en1, от 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?

Теги sorting, interactive, interactive sorting

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Hoyda 2017-12-08 14:41:25 321 Initial revision (published)