Talk:Partial sorting

Hi Qwertyus. Nice article but it seems that the algorithm described in section "Data structure-based solutions" which uses binary heap and breadth-first search will not work. As an example I did not manage to find the third minimal element in the following min-heap using this algorithm (it must be 3 but I get 100):

1
2                100
3      4         200      300

Is something wrong in my understanding the algorithm? — Preceding unsigned comment added by Mpoleg (talkcontribs) 09:36, 26 October 2012 (UTC)[reply]

I didn't write any of this. I just moved the content from Selection algorithm, which was getting too long. Qwertyus (talk) 10:20, 26 October 2012 (UTC)[reply]

In the section: Direct application of the linear-time selection algorithm

"The linear-time selection algorithm described above can be used to find the k smallest or the k largest elements in worst-case linear time O(n)." appears to refer to something from another article, but no reference is given. — Preceding unsigned comment added by JamesHirschorn (talkcontribs) 17:50, 4 March 2013 (UTC)[reply]

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.