<?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>hyper-binary resolution on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/hyper-binary-resolution/</link>
    <description>Recent content in hyper-binary resolution on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sat, 23 Aug 2014 16:53:28 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/hyper-binary-resolution/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>TreeLook and transitive reduction</title>
      <link>https://www.msoos.org/2014/08/treelook-and-transitive-reduction/</link>
      <pubDate>Sat, 23 Aug 2014 16:53:28 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=2653</guid> 
      <description>&lt;p&gt;The &lt;a href=&#34;http://link.springer.com/chapter/10.1007%2F978-3-642-38171-3_6&#34;&gt;paper by Heule et al.&lt;/a&gt; about hyper-binary resolution using intree-based lookahead is pretty funky. The idea is actually quite simple (and as usual, not exactly trivial to come up with): we re-use past propagations by reversing the order in which literals are normally enqueued.&lt;/p&gt;
&lt;h3 id=&#34;a-simple-example&#34;&gt;A simple example&lt;/h3&gt;
&lt;p&gt;First, a queue is built that starts with a leaf literal and then follows it up through binary clauses until it can. Then it backtracks (adds to the queue a special, * element) and continues. The point of the queue is to have an example order that we can use to dequeue literals from in reverse propagation order. Obviously, there are many different orders in which we can build this queue and I wouldn&amp;rsquo;t be surprised if there are some nice heuristics one can use. Let&amp;rsquo;s just assume we have such a queue.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Certified UNSAT and CryptoMiniSat</title>
      <link>https://www.msoos.org/2013/04/certified-unsat-and-cryptominisat/</link>
      <pubDate>Thu, 25 Apr 2013 19:49:13 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1667</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;http://www.cs.utexas.edu/~marijn/&#34;&gt;Marijn Heule&lt;/a&gt; kindly sent me an email on the 10th of April about &lt;a href=&#34;http://www.cs.utexas.edu/~marijn/drup/&#34;&gt;DRUP&lt;/a&gt;, the new system used this year in the &lt;a href=&#34;http://satcompetition.org/2013/&#34;&gt;SAT Competition&#39;13&lt;/a&gt; for the UNSAT track. He kindly encouraged me to implement the DRUP system. He personally implemented it into Minisat which was a &lt;em&gt;very&lt;/em&gt; helpful lead for me. In this post I will talk about my experiences in implementing DRUP into CryptoMiniSat within a span of 3 days.&lt;/p&gt;
&lt;h3 id=&#34;implementation-complexity&#34;&gt;Implementation complexity&lt;/h3&gt;
&lt;p&gt;It took only 3 days, about 1400 lines of code to implement DRUP:&lt;/p&gt;</description>
    </item>
    <item>
      <title>On hyper-binary resolution</title>
      <link>https://www.msoos.org/2012/05/on-hyper-binary-resolution/</link>
      <pubDate>Thu, 17 May 2012 09:34:01 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=1196</guid> 
      <description>&lt;p&gt;Hyper-binary resolution is actually quite straightforward, or at least appears to be. Let&amp;rsquo;s take the following example. The clauses in our database are the following:&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;-a V c
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-b V -c V g
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-b V -c V d
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-d V g
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Let&amp;rsquo;s set &lt;code&gt;a&lt;/code&gt; to true, and see what happens. Immediately, &lt;code&gt;b&lt;/code&gt; and &lt;code&gt;c&lt;/code&gt; get set to true through binary clauses. If we now propagate &lt;code&gt;g&lt;/code&gt; through the clause &lt;code&gt;-b V -c V g&lt;/code&gt;, we ought to do hyper-binary resolution straight away, and add the clause &lt;code&gt;-a V g&lt;/code&gt; -- some call this &lt;a href=&#34;http://fmv.jku.at/biere/talks/Biere-Dagstuhl09-talk.pdf&#34;&gt;lazy hyper-binary resolution&lt;/a&gt;. Good, one more binary clause!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Visiting Linz</title>
      <link>https://www.msoos.org/2011/02/visiting-linz/</link>
      <pubDate>Tue, 15 Feb 2011 13:52:40 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=682</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/06/Linz.png&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/06/Linz.png&#34;&gt;&lt;/a&gt; Lately I had the pleasure of visiting Linz, Armin Biere&amp;rsquo;s workplace, where I gave a quick &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/02/SAT_solver_architectures_Linz.pdf&#34;&gt;talk&lt;/a&gt; on SAT solver architectures. To me, it was really interesting to think through that presentation &amp;mdash; not because it was entirely new or exciting, but because it recapped on many issues that have been bothering me lately. Namely, that it&amp;rsquo;s difficult to make a really versatile SAT solver, because the low-level choices that must be made (e.g. watchlist scheme) determines so many things when one must make higher-level architectural decisions such as &lt;a href=&#34;https://www.msoos.org/changing-the-watchlist-scheme&#34;&gt;clause sharing&lt;/a&gt; or even something as simple as &lt;a href=&#34;https://www.msoos.org/hyper-binary-resolution-i-was-wrong-again&#34;&gt;hyper-binary resolution&lt;/a&gt;. As for this latter, thanks to Armin Biere&amp;rsquo;s thoughts I have finally managed to realise why my hyper-binary resolution was so slow: I lately took the decision not to fully propagate binary clauses before propagating normal (i.e. larger) clauses, which meant that doing hyper-binary resolution was much slower as I had to re-calculate the binary graph. The fact of not fully propagating binary clauses before normal clauses seemed also to influence my much higher-level choice of using cached implications, as they (intuitively, and also in practice) help much more if binary clauses are not fully propagated before normal clauses. This latter influence is interesting to think through, as something this trivial shouldn&amp;rsquo;t &amp;ndash; at least in principle &amp;ndash; influence such a high-level decision.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hyper-binary resolution: I was wrong, again</title>
      <link>https://www.msoos.org/2010/12/hyper-binary-resolution-i-was-wrong-again/</link>
      <pubDate>Thu, 16 Dec 2010 19:42:26 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=541</guid> 
      <description>&lt;p&gt;I am not perfect, so I make mistakes. One of the more memorable mistakes I have made has been regarding &lt;a href=&#34;https://www.msoos.org/i-must-be-dumb&#34;&gt;hyper-binary resolution&lt;/a&gt;. More specifically, in &lt;a href=&#34;https://www.msoos.org/being-dumb-is-part-of-the-deal&#34;&gt;this&lt;/a&gt; post I wrote that I cannot add as many binary clauses using hyper-binary resolution as &lt;a href=&#34;http://fmv.jku.at/biere/&#34;&gt;Armin Biere&lt;/a&gt;, one of the leading SAT solver experts, and I proposed a reason that would have meant that CryptoMiniSat was doing things differently and thus better. Well, I was wrong, on multiple accounts.&lt;/p&gt;</description>
    </item>
    <item>
      <title>I must be dumb</title>
      <link>https://www.msoos.org/2010/05/i-must-be-dumb/</link>
      <pubDate>Sun, 23 May 2010 17:44:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=18</guid> 
      <description>&lt;p&gt;Apparently, hyper-binary resolution is &lt;a href=&#34;http://fmv.jku.at/biere/talks/Biere-Dagstuhl09-talk.pdf&#34;&gt;not easy&lt;/a&gt;. However, I have been reading the &lt;a href=&#34;http://www.cs.technion.ac.il/%7Egershman/papers/sat05_full.pdf&#34;&gt;paper&lt;/a&gt; by Gershman and Strichman, and they make it sound like it&amp;rsquo;s the easiest thing of all &amp;ndash; especially if you don&amp;rsquo;t do it the way they are doing it, of course.&lt;/p&gt;
&lt;p&gt;Hyper-binary resolution is essentially very easy. Let&amp;rsquo;s say you have three clauses:&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;-a V c
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;d V -b V -c
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;(where &lt;code&gt;V&lt;/code&gt; is the binary OR, &lt;code&gt;-&lt;/code&gt; is the binary negation, and each line must be satisfied)&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
