<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: rehantheorylab-pixel</title>
    <description>The latest articles on DEV Community by rehantheorylab-pixel (@rehantheorylabpixel).</description>
    <link>https://dev.to/rehantheorylabpixel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3953038%2Fe49997cb-8f34-435d-b591-7dd2747aaee3.png</url>
      <title>DEV Community: rehantheorylab-pixel</title>
      <link>https://dev.to/rehantheorylabpixel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rehantheorylabpixel"/>
    <language>en</language>
    <item>
      <title>I Built a Subset Sum Solver 35,000x Faster Than Previous Approaches</title>
      <dc:creator>rehantheorylab-pixel</dc:creator>
      <pubDate>Tue, 26 May 2026 18:04:02 +0000</pubDate>
      <link>https://dev.to/rehantheorylabpixel/i-built-a-subset-sum-solver-35000x-faster-than-previous-approaches-4aki</link>
      <guid>https://dev.to/rehantheorylabpixel/i-built-a-subset-sum-solver-35000x-faster-than-previous-approaches-4aki</guid>
      <description>&lt;p&gt;The subset sum problem is NP-complete. Given integers, find a subset that sums to a target. Simple to state -- exponentially hard to solve.&lt;/p&gt;

&lt;p&gt;I built a solver that's 35,000x faster than previous approaches. It holds world records across all 65 test categories. First solver to reach n=70 with 1 quadrillion values.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;23 parallel engines attack the problem simultaneously. The moment any engine finds the answer, all others stop. You fire everything at once and the best one wins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sum-Range Partitioning&lt;/strong&gt;: The key breakthrough. Split the target range into 8 slices, each on its own thread with zero shared state. 6.6x speedup on 8 cores.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GDEP Engine&lt;/strong&gt;: My newest engine. After picking an element, dynamically restricts the pool to only values smaller than the remainder. Shrinks both goal AND element set simultaneously.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Performance&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;n=40: 0.1s&lt;/li&gt;
&lt;li&gt;n=60: 24s (BCJ would take ~240 hours -- 35,000x faster)&lt;/li&gt;
&lt;li&gt;n=70: 417s (world record)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;Live demo: &lt;a href="https://subsetsolver.netlify.app" rel="noopener noreferrer"&gt;https://subsetsolver.netlify.app&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/rehantheorylab-pixel/35000x-faster-subset-sum-algorithm-n70" rel="noopener noreferrer"&gt;https://github.com/rehantheorylab-pixel/35000x-faster-subset-sum-algorithm-n70&lt;/a&gt;&lt;br&gt;
Zenodo DOI: 10.5281/zenodo.20399806&lt;/p&gt;

&lt;p&gt;Open source. MIT license. Built by Rehan.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>I Built a Subset Sum Solver 35,000x Faster Than Previous Approaches</title>
      <dc:creator>rehantheorylab-pixel</dc:creator>
      <pubDate>Tue, 26 May 2026 18:04:02 +0000</pubDate>
      <link>https://dev.to/rehantheorylabpixel/i-built-a-subset-sum-solver-35000x-faster-than-previous-approaches-31ic</link>
      <guid>https://dev.to/rehantheorylabpixel/i-built-a-subset-sum-solver-35000x-faster-than-previous-approaches-31ic</guid>
      <description>&lt;p&gt;The subset sum problem is NP-complete. Given integers, find a subset that sums to a target. Simple to state -- exponentially hard to solve.&lt;/p&gt;

&lt;p&gt;I built a solver that's 35,000x faster than previous approaches. It holds world records across all 65 test categories. First solver to reach n=70 with 1 quadrillion values.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;p&gt;23 parallel engines attack the problem simultaneously. The moment any engine finds the answer, all others stop. You fire everything at once and the best one wins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sum-Range Partitioning&lt;/strong&gt;: The key breakthrough. Split the target range into 8 slices, each on its own thread with zero shared state. 6.6x speedup on 8 cores.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GDEP Engine&lt;/strong&gt;: My newest engine. After picking an element, dynamically restricts the pool to only values smaller than the remainder. Shrinks both goal AND element set simultaneously.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Performance&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;n=40: 0.1s&lt;/li&gt;
&lt;li&gt;n=60: 24s (BCJ would take ~240 hours -- 35,000x faster)&lt;/li&gt;
&lt;li&gt;n=70: 417s (world record)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;

&lt;p&gt;Live demo: &lt;a href="https://subsetsolver.netlify.app" rel="noopener noreferrer"&gt;https://subsetsolver.netlify.app&lt;/a&gt;&lt;br&gt;
GitHub: &lt;a href="https://github.com/rehantheorylab-pixel/35000x-faster-subset-sum-algorithm-n70" rel="noopener noreferrer"&gt;https://github.com/rehantheorylab-pixel/35000x-faster-subset-sum-algorithm-n70&lt;/a&gt;&lt;br&gt;
Zenodo DOI: 10.5281/zenodo.20399806&lt;/p&gt;

&lt;p&gt;Open source. MIT license. Built by Rehan.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
