How to find median on unsorted matrix?

Правка en5, от MODDI, 2023-03-08 01:21:07

We have an N*N matrix, can we achieve better than transposing the matrix into an array, and then sorting it?

I did some online searching and found that quickselect eliminates the log factor, how can we extend quickselect to 2 dimensions?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский MODDI 2023-03-08 01:21:07 2
en4 Английский MODDI 2023-03-08 01:20:50 0 (published)
en3 Английский MODDI 2023-03-08 01:20:42 130 (saved to drafts)
en2 Английский MODDI 2023-03-07 00:35:37 0 (published)
en1 Английский MODDI 2023-03-07 00:35:15 146 Initial revision (saved to drafts)