<?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: Ayoub Sebbagh</title>
    <description>The latest articles on DEV Community by Ayoub Sebbagh (@ayoubsebbagh16).</description>
    <link>https://dev.to/ayoubsebbagh16</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3982649%2F2ec1b1ad-5eaf-4c22-80df-a08a59f99133.png</url>
      <title>DEV Community: Ayoub Sebbagh</title>
      <link>https://dev.to/ayoubsebbagh16</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ayoubsebbagh16"/>
    <language>en</language>
    <item>
      <title>I am a 16-year-old dev and built a Heuristic Algorithm for the Subset Sum Problem approximating O(\log N). Need your feedback!</title>
      <dc:creator>Ayoub Sebbagh</dc:creator>
      <pubDate>Sat, 13 Jun 2026 12:19:37 +0000</pubDate>
      <link>https://dev.to/ayoubsebbagh16/i-am-a-16-year-old-dev-and-built-a-heuristic-algorithm-for-the-subset-sum-problem-approximating-a6i</link>
      <guid>https://dev.to/ayoubsebbagh16/i-am-a-16-year-old-dev-and-built-a-heuristic-algorithm-for-the-subset-sum-problem-approximating-a6i</guid>
      <description>&lt;p&gt;First, peace be upon you. I am a 16-year-old programmer, and I tried to solve the well-known Subset Sum problem. Before starting the definition, the speed of the algorithm is approximately O(log N).&lt;/p&gt;

&lt;p&gt;How it works briefly:&lt;/p&gt;

&lt;p&gt;The Core Concept: I take the Target and add its inverse to the equation, trying to zero it out.&lt;/p&gt;

&lt;p&gt;Method of Zeroing Out: Done by converting numbers into positive and negative categories (tens, hundreds, thousands, etc.) to facilitate and speed up the search.&lt;/p&gt;

&lt;p&gt;Outlier Filtration: A category is considered an outlier if the largest number in it is greater than the sum of all categories from the opposite side combined.&lt;/p&gt;

&lt;p&gt;I had no prior knowledge of approximation algorithms or division into categories; everything I reached was on my own during this past month.&lt;/p&gt;

&lt;p&gt;I would highly appreciate it if you could review my approach, give me your honest feedback, and help me improve it! I will drop the GitHub repository link &lt;a href="https://github.com/1dev1a/Subset_Sum_Heuristic_Algorithm_-O-log-N-" rel="noopener noreferrer"&gt;https://github.com/1dev1a/Subset_Sum_Heuristic_Algorithm_-O-log-N-&lt;/a&gt;&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>computerscience</category>
      <category>discuss</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
