<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Quickselect on icyveins7's blog</title><link>https://icyveins7.github.io/tags/quickselect/</link><description>Recent content in Quickselect on icyveins7's blog</description><generator>Hugo</generator><language>en-us</language><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Sun, 20 Jul 2025 20:00:00 +0800</lastBuildDate><atom:link href="https://icyveins7.github.io/tags/quickselect/index.xml" rel="self" type="application/rss+xml"/><item><title>Quickly sketching out a BlockQuickSelect</title><link>https://icyveins7.github.io/posts/2025/07/quickly-sketching-out-a-blockquickselect/</link><pubDate>Sun, 20 Jul 2025 20:00:00 +0800</pubDate><guid>https://icyveins7.github.io/posts/2025/07/quickly-sketching-out-a-blockquickselect/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;I wrote a blockwide quickselect. That&amp;rsquo;s the post.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;As of today, NVIDIA&amp;rsquo;s &lt;code&gt;cub&lt;/code&gt; library has a few block-wide primitives to do sorting - like &lt;code&gt;BlockRadixSort&lt;/code&gt; - but none that do the equivalent for the $k$&amp;lsquo;th order statistic i.e the $k$-th smallest element.&lt;/p&gt;&#10;&lt;p&gt;This would be functionally equivalent to the CPU&amp;rsquo;s &lt;code&gt;std::nth_element&lt;/code&gt;, but that &lt;a href="https://en.cppreference.com/w/cpp/algorithm/nth_element.html"&gt;apparently uses Introselect&lt;/a&gt;, which is a tad too much for me to want to implement. I&amp;rsquo;m going to stick with the simpler &lt;a href="https://en.m.wikipedia.org/wiki/Quickselect"&gt;quickselect&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>