<?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>subsumption on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/subsumption/</link>
    <description>Recent content in subsumption on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Wed, 27 Oct 2010 22:14:57 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/subsumption/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Implicit binary clauses</title>
      <link>https://www.msoos.org/2010/10/implicit-binary-clauses/</link>
      <pubDate>Wed, 27 Oct 2010 22:14:57 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=508</guid> 
      <description>&lt;p&gt;I have lately been trying to get CryptoMiniSat to use implicit binary clauses. The idea is that since binary clauses are very trivial (just two literals), and they don&amp;rsquo;t really need to keep state (like clause activity), they don&amp;rsquo;t really need to be stored at a separate location. Instead, they can be stored &lt;a href=&#34;https://www.msoos.org/propagating-faster&#34;&gt;directly&lt;/a&gt; in the watchlists. There are a number of advantages and disadvantages that come with this approach.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/10/implicit_bin_clauses1.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/10/implicit_bin_clauses1.png&#34;&gt;&lt;/a&gt; The main advantage is a notable reduction of memory usage and memory fragmentation. The first is obvious: since we don&amp;rsquo;t allocate space for binary clauses separately, the memory usage of the program should go down. This is especially true since SAT problems usually contain a huge number of binary clauses. The secondary benefit, that of reduced memory fragmentation is not really that much of an advantage if someone uses, e.g. the &lt;a href=&#34;http://www.boost.org/doc/libs/release/libs/pool/doc/&#34;&gt;boost pool&lt;/a&gt; library.&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>
