<?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>self-subsuming resolution on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/self-subsuming-resolution/</link>
    <description>Recent content in self-subsuming resolution on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Fri, 06 Dec 2013 17:29:24 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/self-subsuming-resolution/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>A note on learnt clauses</title>
      <link>https://www.msoos.org/2013/12/a-note-on-learnt-clauses/</link>
      <pubDate>Fri, 06 Dec 2013 17:29:24 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2172</guid> 
      <description>&lt;p&gt;Learnt clauses are clauses derived while searching for a solution with a &lt;a href=&#34;https://en.wikipedia.org/wiki/Boolean_satisfiability_problem&#34;&gt;SAT solver&lt;/a&gt; in a &lt;a href=&#34;https://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;CNF&lt;/a&gt;. They are at the heart of every modern so-called &amp;ldquo;CDCL&amp;rdquo; or &amp;ldquo;&lt;a href=&#34;https://en.wikipedia.org/wiki/Conflict_Driven_Clause_Learning&#34;&gt;Conflict-Driven Clause-Learning&lt;/a&gt;&amp;rdquo; SAT solver. SAT solver writers make a very important difference between learnt and original clauses. In this blog post I&amp;rsquo;ll talk a little bit about this distinction, why it is important to make it, and why we might want to relax that distinction in the future.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caching</title>
      <link>https://www.msoos.org/2010/11/caching/</link>
      <pubDate>Tue, 23 Nov 2010 13:43:50 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=524</guid> 
      <description>&lt;p&gt;&amp;ldquo;Representation &lt;em&gt;is&lt;/em&gt; the essence of programming&amp;rdquo;
Frederic P. Brooks Jr., &amp;ldquo;The Mythical Man-month&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/11/memory.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/11/memory.png&#34;&gt;&lt;/a&gt; Looking through the literature on SAT solvers, it is rare to find any algorithm that uses a form of time-memory trade-off. In fact, it is rare to find any algorithm that uses too much memory. This also shows up in practice, as it&amp;rsquo;s rare to find a SAT solver using too much memory. This translates to the following: if a SAT solver can in an effective way utilize the typically abundant memory, that SAT solver will have an advantage. Based on this logic, I think CryptoMiniSat is doing good.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Transitive OTF self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/09/transitive-otf-self-subsuming-resolution/</link>
      <pubDate>Tue, 28 Sep 2010 16:26:51 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=451</guid> 
      <description>&lt;p&gt;The title may be a bit long, but its essence is very simple: we try to shorten learnt clauses. The basic idea was described in &lt;a href=&#34;https://www.msoos.org/on-the-fly-self-subsuming-resolution&#34;&gt;this&lt;/a&gt; post: there is a clause we just derived, e.g.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;d V -e V f V g&lt;/code&gt; (1)&lt;/p&gt;
&lt;p&gt;where &lt;code&gt;d,e,f,g&lt;/code&gt; are binary variables, &lt;code&gt;-&lt;/code&gt; is binary negation, and &lt;code&gt;V&lt;/code&gt; is the binary OR operator. We can remove a literal from this using &lt;a href=&#34;https://www.msoos.org/self-subsuming-resolution&#34;&gt;self-subsuming resolution&lt;/a&gt; with e.g. the 2-long clause:&lt;/p&gt;</description>
    </item>
    <item>
      <title>CryptoMiniSat 2.6.0 released</title>
      <link>https://www.msoos.org/2010/08/cryptominisat-2-6-0-released/</link>
      <pubDate>Mon, 30 Aug 2010 12:30:10 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=288</guid> 
      <description>&lt;p&gt;Version 2.6.0 of the CryptoMiniSat SAT solver has been &lt;a href=&#34;https://gforge.inria.fr/frs/?group_id=1992&amp;amp;release_id=5352&#34;&gt;released&lt;/a&gt;. The new release incorporates a number of important additions and discoveries. Additions include a better memory manager and &lt;a href=&#34;https://www.msoos.org/wordpress/?p=7&#34;&gt;better watchlists&lt;/a&gt;, while the discoveries include an interesting use of &lt;a href=&#34;https://www.msoos.org/wordpress/?p=6&#34;&gt;asymmetric branching&lt;/a&gt; and an &lt;a href=&#34;https://www.msoos.org/wordpress/?p=169&#34;&gt;on-the-fly self-subsuming resolution&lt;/a&gt; algorithm.&lt;/p&gt;
&lt;p&gt;The new solver can now solve 221 problems from the &lt;a href=&#34;http://www.cril.univ-artois.fr/SAT09/results/ranking.php?idev=29&#34;&gt;SAT Competition&lt;/a&gt; of 2009 within the same timing&amp;amp;CPU constraints, while the 2.5.0 (i.e. &lt;a href=&#34;http://baldur.iti.uka.de/sat-race-2010/results.html&#34;&gt;SAT Race&lt;/a&gt;) version could only solve 217. Here is a comparison plot:&lt;/p&gt;</description>
    </item>
    <item>
      <title>On-the-fly self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/08/on-the-fly-self-subsuming-resolution/</link>
      <pubDate>Sun, 15 Aug 2010 22:44:16 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=169</guid> 
      <description>&lt;p&gt;I have recently been trying a new method of shortening learnt clauses. There is a learnt clause minimisation &lt;a href=&#34;http://dx.doi.org/10.1007/978-3-642-02777-2_23&#34;&gt;paper&lt;/a&gt; by Sörensson and Biere, and I have recently been trying to do more. The trick I use, is that many literals can be removed from learnt clauses, if self-subsuming resolution (see my &lt;a href=&#34;https://www.msoos.org/wordpress/?p=5&#34;&gt;older post&lt;/a&gt;) is applied to them.&lt;/p&gt;
&lt;p&gt;During self-subsuming resolution, under normal circumstances, the clauses used to remove literals with are the short clauses: binary and tertiary clauses. The trick I have discovered, is that since CryptoMiniSat keeps binary and tertiary clauses natively inside the watchlists (see my &lt;a href=&#34;https://www.msoos.org/wordpress/?p=7&#34;&gt;previous post&lt;/a&gt;), so doing self-subsuming resolution can be done extremely fast. We simply need to put the literals of the newly learnt clause into a fast-addressable memory, then go through the watchlists of every literal in the clause, and remove the literals that match.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Self-subsuming resolution</title>
      <link>https://www.msoos.org/2010/08/self-subsuming-resolution/</link>
      <pubDate>Wed, 04 Aug 2010 20:26:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=5</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://minisat.se/downloads/SatELite_slides.pdf&#34;&gt;Self-subsuming resolution&lt;/a&gt; in SAT uses the &lt;a href=&#34;http://en.wikipedia.org/wiki/Resolution_%28logic%29&#34;&gt;resolution operator&lt;/a&gt; to carry out its magic. Resolution can be used on two clauses if they share a variable, but the sign of the variable is inverted, e.g.&lt;br&gt;
&lt;code&gt;v1 V v2&lt;/code&gt;&lt;br&gt;
&lt;code&gt;-v1 V v3 V v4&lt;/code&gt;&lt;br&gt;
(where &lt;code&gt;v1..v4&lt;/code&gt; are binary variables and &amp;quot; &lt;code&gt;V&lt;/code&gt;&amp;quot; means binary OR) can be resolved on &lt;code&gt;v1&lt;/code&gt;, producing the clause:&lt;br&gt;
&lt;code&gt;v2 V v3 V v4&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;In SAT this is used to simplify problems as follows. Let&amp;rsquo;s assume we have many clauses, among which there are these three:&lt;br&gt;
&lt;code&gt;a V c           (1)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;a V -c V d V f  (2)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;a V -c V g      (3)&lt;/code&gt;&lt;br&gt;
In this case, if we use the resolution operator on (1) and (2), we get:&lt;br&gt;
&lt;code&gt;a V d V f       (4)&lt;/code&gt;&lt;br&gt;
The interesting thing about (4) is that it is a strict subset of (2). In other words, we could simply replace (2) with (4), thus shortening clause (2). If we use the resolution operator on (1) and (3) we get:&lt;br&gt;
&lt;code&gt;a V g           (5)&lt;/code&gt;&lt;br&gt;
whose literals form a strict subset of those of (3), so we can replace (3) with (5), again shortening a clause. We shortened 2 clauses, each with one literal. For completeness, this technique can be applied in a recursive manner on all possible clause-pairs.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
