<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>model counting on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/model-counting/</link>
    <description>Recent content in model counting on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 01 Mar 2026 18:34:45 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/model-counting/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Ganak: The Making of a Versatile, High Performance Model Counter</title>
      <link>https://www.msoos.org/2026/03/ganak-the-making-of-a-versatile-high-performance-model-counter/</link>
      <pubDate>Sun, 01 Mar 2026 18:34:45 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3631</guid> 
      <description>&lt;p&gt;Ganak (&lt;a href=&#34;https://github.com/meelgroup/ganak&#34;&gt;github&lt;/a&gt;), our propositional model counter, has won every single model counting competition track for the past two years. Perhaps it&amp;rsquo;s time to explain how that came about, and what are the ingredients of such a tool. Firstly, a propositional model counter is a tool that counts how many solutions there are to a set of boolean constraints of the form:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;a V b
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;b V -c
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This set of constraints has the following possible solutions:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Ganakv2 Released</title>
      <link>https://www.msoos.org/2025/05/ganakv2-released/</link>
      <pubDate>Mon, 12 May 2025 02:17:50 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3612</guid> 
      <description>&lt;p&gt;Finally, after many months of waiting for our paper to be accepted (preliminary &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2025/05/ganak2.pdf&#34;&gt;PDF here&lt;/a&gt;), Ganak2 is finally released (&lt;a href=&#34;https://github.com/meelgroup/ganak/&#34;&gt;GitHub code,&lt;/a&gt; released &lt;a href=&#34;https://github.com/meelgroup/ganak/releases/latest&#34;&gt;binaries&lt;/a&gt;) and easily accessible and modifiable. I wish this release had come earlier, but double-blind requirements didn&amp;rsquo;t allow us to release the code any sooner.&lt;/p&gt;
&lt;p&gt;Basically, Ganakv2 has been re-written in many ways. Some of the original ideas by Thurley for SharpSAT has been kept alive, but many-many things are completely different and completely re-written &amp;ndash; well over 10&#39;000 lines of change in total. This set of changes has allowed Ganak2 to &lt;a href=&#34;https://mccompetition.org/assets/files/2024/MC2024_awards.pdf&#34;&gt;win every available track&lt;/a&gt; at the Model Counting Competition of 2024. In other words, Ganak2 is incredibly fast, making it a state-of-the-art tool.&lt;/p&gt;</description>
    </item>
    <item>
      <title>On SAT/SMT Model Counting</title>
      <link>https://www.msoos.org/2024/10/on-sat-smt-model-counting/</link>
      <pubDate>Thu, 24 Oct 2024 22:18:14 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3539</guid> 
      <description>&lt;p&gt;I have recently had a few discussions with people who wanted to do some form of model counting, and I decided to put my thoughts about this problem into a single blog post, hopefully bringing some light to this area. Firstly, when talking about model counting, it&amp;rsquo;s very important to think through what one actually needs to achieve. When people talk about a model, they often mean a solution to a problem, described as a set of constraints over either purely boolean variables (so-called propositional model counting) expressed in so-called &lt;a href=&#34;https://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;CNF&lt;/a&gt;, or over higher-level constraints, often expressed in &lt;a href=&#34;https://smt-lib.org/examples.shtml&#34;&gt;SMT-LIB&lt;/a&gt; format.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Our tools for solving, counting and sampling</title>
      <link>https://www.msoos.org/2024/02/our-tools-for-solving-counting-and-sampling/</link>
      <pubDate>Sun, 18 Feb 2024 20:46:58 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3520</guid> 
      <description>&lt;p&gt;This post is just a bit of a recap of what we have developed over the years as part of our toolset of SAT solvers, counters, and samplers. Many of these tools depend on each other, and have taken greatly from other tools, papers, and ideas. These dependencies are too long to list here, but the list is long, probably starting somewhere around the &lt;a href=&#34;https://en.wikipedia.org/wiki/Thales_of_Miletus#Mathematics&#34;&gt;Greek period&lt;/a&gt;, and goes all the way to recent work such as &lt;a href=&#34;https://github.com/Laakeri/sharpsat-td&#34;&gt;SharpSAT-td&lt;/a&gt; or &lt;a href=&#34;http://www.cril.univ-artois.fr/KC/bpe2.html&#34;&gt;B+E&lt;/a&gt;. My personal work stretches back to the beginning of &lt;a href=&#34;https://github.com/msoos/cryptominisat&#34;&gt;CryptoMiniSat&lt;/a&gt; in 2009, and the last addition to our list is &lt;a href=&#34;https://github.com/meelgroup/pepin&#34;&gt;Pepin&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How Approximate Model Counting Works</title>
      <link>https://www.msoos.org/2018/12/how-approximate-model-counting-works/</link>
      <pubDate>Sun, 09 Dec 2018 14:39:21 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3229</guid> 
      <description>&lt;p&gt;Approximate model counting allows to count the number of solutions (or &amp;ldquo;models&amp;rdquo;) to propositional satisfiability problems. This problem seems trivial at first given a propositional solver that can find a single solution: find one solution, ban it, ask for another one, ban it, etc. until all solutions are counted. The issue is that sometimes, the number of solutions is 2^50 and so counting this way is too slow. There are about 2^266 atoms in the universe, so counting anywhere near that is impossible using this method.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ApproxMCv3, a modern approximate model counter</title>
      <link>https://www.msoos.org/2018/11/approxmcv3-a-modern-approximate-model-counter/</link>
      <pubDate>Sun, 25 Nov 2018 20:33:16 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3213</guid> 
      <description>&lt;p&gt;This blogpost and its underlying work has been brewing for many years, and I&amp;rsquo;m extremely happy to be able to share it with you now. Kuldeep Meel and myself have been working very hard on speeding up approximate model counting for SAT and I think we have made real progress. The research paper, accepted at AAAI-19 is available &lt;a href=&#34;https://www.comp.nus.edu.sg/~meel/Papers/aaai19-sm.pdf&#34;&gt;here&lt;/a&gt;. The code is available &lt;a href=&#34;https://github.com/meelgroup/ApproxMC&#34;&gt;here&lt;/a&gt; (release with static binary &lt;a href=&#34;https://github.com/meelgroup/ApproxMC/releases&#34;&gt;here&lt;/a&gt;). The main result is that we can solve a &lt;strong&gt;lot&lt;/strong&gt; more problems than before. The speed of solving is orders(!) of magnitude faster than the previous best system:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
