<?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>branching on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/branching/</link>
    <description>Recent content in branching on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 26 Jul 2020 21:05:19 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/branching/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>CryptoMiniSat 5.8.0 Released</title>
      <link>https://www.msoos.org/2020/07/cryptominisat-5-8-0-released/</link>
      <pubDate>Sun, 26 Jul 2020 21:05:19 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=3350</guid> 
      <description>&lt;p&gt;After many months of work, CryptoMiniSat 5.8.0 has been &lt;a href=&#34;https://github.com/msoos/cryptominisat/releases/tag/5.8.0&#34;&gt;released&lt;/a&gt;. In this post I&amp;rsquo;ll go through the most important changes, and how they helped the solver to be faster and &lt;a href=&#34;https://satcompetition.github.io/2020/results.html&#34;&gt;win a few awards&lt;/a&gt;, among them 1st place at the SAT incremental track, 3rd place SAT Main track, and 2nd&amp;amp;3d place in the SMT BitVector tracks together with the STP and MinkeyRink solvers.&lt;/p&gt;
&lt;h2 id=&#34;gauss-jordan-elimination&#34;&gt;Gauss-Jordan Elimination&lt;/h2&gt;
&lt;p&gt;First and foremost, Gauss-Jordan elimination at all levels of the search is now enabled by default. This is thanks to the work detailed in the CAV 2020 &lt;a href=&#34;https://www.comp.nus.edu.sg/~meel/Papers/cav20-sgm.pdf&#34;&gt;paper&lt;/a&gt; (video &lt;a href=&#34;https://youtu.be/C3YCFnNPD4Y?t=3068&#34;&gt;here&lt;/a&gt;). The gist of the paper is that we take advantage of the bit-packed matrix and some clever bit field filters to quickly check whether an XOR constraint is propagating, conflicting, or neither. This, and a variety of other improvements lead to about 3-10x speedup for the Gauss-Jordan elimination procedure.&lt;/p&gt;</description>
    </item>
    <item>
      <title>The variable speed of SAT solving</title>
      <link>https://www.msoos.org/2011/01/the-variable-speed-of-sat-solving/</link>
      <pubDate>Sun, 02 Jan 2011 22:37:46 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=588</guid> 
      <description>&lt;figure&gt;
    &lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2011/01/Attacking-Bivium-Using-SAT-Solvers.png&#34;
         alt=&#34;Timings from the article &amp;ldquo;Attacking Bivium Using SAT Solvers&amp;rdquo;. The authors didn&amp;rsquo;t seem to have randomised the problems enough: the time to solve should increase exponentially, but instead it goes up and down like a roller coaster&#34;/&gt; &lt;figcaption&gt;
            &lt;p&gt;Timings from the article &amp;ldquo;Attacking Bivium Using SAT Solvers&amp;rdquo;. The authors didn&amp;rsquo;t seem to have randomised the problems enough: the time to solve should increase exponentially, but instead it goes up and down like a roller coaster&lt;/p&gt;
        &lt;/figcaption&gt;
&lt;/figure&gt;</description>
    </item>
    <item>
      <title>Dependent Literals</title>
      <link>https://www.msoos.org/2010/12/dependent-literals/</link>
      <pubDate>Tue, 07 Dec 2010 22:15:41 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=535</guid> 
      <description>&lt;p&gt;I have lately been trying to work on branching heuristics. The idea is relatively simple. If we have a &lt;a href=&#34;https://www.msoos.org/caching&#34;&gt;cache&lt;/a&gt; of what propagates what, we can try to branch on literals that propagate a lot of other literals. The algorithm boils down to the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For each literal L, we select a literal DL that propagates L and has the largest tree of propagated literals.. We call this DL the dominating literal. Naturally, some literals don&amp;rsquo;t have a dominating literal, and some literals appear as dominating literals for many other literals.&lt;/li&gt;
&lt;li&gt;When branching, if we are supposed to branch on a literal that has a dominator, we pick the dominator instead of the literal. This not only ensures that the literal will be set, but it will probably also set a number of other literals.&lt;/li&gt;
&lt;li&gt;Using the heuristic of step 2, we should reach a conflict earlier, with less decisions taken. This should lead to faster conflicting, and thus faster solving.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Of course things aren&amp;rsquo;t as simple as they seem. First of all, as &lt;a href=&#34;http://www.informatik.uni-trier.de/~ley/db/indices/a-tree/k/Katsirelos:George.html&#34;&gt;George&lt;/a&gt; has indicated to me, Jarvisalo and Junttila have published  a &lt;a href=&#34;http://dx.doi.org/10.1007/s10601-008-9062-z&#34;&gt;paper&lt;/a&gt; entitled &lt;em&gt;Limitations of restricted branching in clause learning&lt;/em&gt;, which deals with issues related to this branching heursitic. The baseline of that paper is that it&amp;rsquo;s a bad idea to branch only on dependent (they call them &lt;em&gt;input&lt;/em&gt;) variables. I haven&amp;rsquo;t really got very deep into this, but there are some subtle differences between the heuristic above and dependent variables, notably that I have treated dependent &lt;em&gt;literals&lt;/em&gt; above, while Matti and Tommi are treating dependent &lt;em&gt;variables&lt;/em&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
