<?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>Sage on Wonderings of a SAT geek</title>
    <link>https://www.msoos.org/tags/sage/</link>
    <description>Recent content in Sage on Wonderings of a SAT geek</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Wed, 13 Apr 2011 18:04:56 +0000</lastBuildDate>
    <atom:link href="https://www.msoos.org/tags/sage/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Presentation at Hackito Ergo Sum</title>
      <link>https://www.msoos.org/2011/04/presentation-at-hackito-ergo-sum/</link>
      <pubDate>Wed, 13 Apr 2011 18:04:56 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=723</guid> 
      <description>&lt;p&gt;The &lt;a href=&#34;http://hackitoergosum.org/&#34;&gt;HES&#39;11&lt;/a&gt; event was great: I had the pleasure of listening to some awesome presentations, and to meet some great people. The most interesting &lt;a href=&#34;http://www.youtube.com/watch?v=ovfYBa1EHm4&#34;&gt;presentation&lt;/a&gt; from a non-technical point of view was the attacks at the automount feature of Linux, which everybody thinks is completely secure, but is in fact very flawed due to some buggy rendering libraries. It&amp;rsquo;s quite interesting that almost everyone thinks that their Linux installation is secure, when in fact if Linux was mainstream, viruses would be abound &amp;ndash; but Linux is only a minor player, so malicious software is rarely written for it.&lt;/p&gt;</description>
    </item>
    <item>
      <title>anf2cnf script released</title>
      <link>https://www.msoos.org/2010/09/anf2cnf-script-released/</link>
      <pubDate>Fri, 24 Sep 2010 15:38:29 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=440</guid> 
      <description>&lt;p&gt;I have finally managed to fix the script that converts ANF problems to CNF format in the &lt;a href=&#34;http://www.sagemath.org/&#34;&gt;Sage&lt;/a&gt; math system. The &lt;a href=&#34;http://bitbucket.org/malb/algebraic_attacks/src/abd22969c7b5/anf2cnf.py&#34;&gt;original script&lt;/a&gt; was having some problems that I &lt;a href=&#34;https://www.msoos.org/anf2cnf-hell-in-sage&#34;&gt;blogged about&lt;/a&gt;. The new script has corrected most of the shortcomings of the original script, as well as added some textual help for the user.&lt;/p&gt;
&lt;p&gt;For instance, the equations&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;sage: print two_polynoms
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[x0*x1 + 1, x0*x1 + x1]
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;that last time required 13 clauses and 4 variables in CNF, now look like this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>anf2cnf hell in Sage</title>
      <link>https://www.msoos.org/2010/09/anf2cnf-hell-in-sage/</link>
      <pubDate>Wed, 22 Sep 2010 23:38:20 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/?p=416</guid> 
      <description>&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/09/HieronymusBoschHellD1.jpg&#34;&gt;There is an &lt;a href=&#34;http://en.wikipedia.org/wiki/Algebraic_normal_form&#34;&gt;ANF&lt;/a&gt; (Algebraic Normal Form) to &lt;a href=&#34;http://en.wikipedia.org/wiki/Conjunctive_normal_form&#34;&gt;CNF&lt;/a&gt; (Conjunctive Normal Form) &lt;a href=&#34;http://bitbucket.org/malb/algebraic_attacks/src/ce81112bbce4/anf2cnf.py&#34;&gt;converter&lt;/a&gt; by Martin Albrecht in &lt;a href=&#34;http://www.sagemath.org/&#34;&gt;Sage&lt;/a&gt;. Essentially, it performs the ANF to CNF conversion that I have described previously in &lt;a href=&#34;https://www.msoos.org/anf-to-cnf-conversion&#34;&gt;this&lt;/a&gt; blog entry. Me, as unsuspecting as anyone else, have been using this for a couple of days now. It seemed to do its job. However, today, I wanted to backport some of my &lt;a href=&#34;https://www.msoos.org/wordpress/wp-content/uploads/2010/09/GrainofSalt-desc-1.0.pdf&#34;&gt;ideas&lt;/a&gt; to this converter. And then it hit me.&lt;/p&gt;
&lt;p&gt;Let me illustrate with a short example why I think something is wrong with this converter. We will try to encode that &lt;code&gt;variable 0&lt;/code&gt; and &lt;code&gt;variable 1&lt;/code&gt; cannot both be TRUE. This is as simple as saying &lt;code&gt;x0*x1 = 0&lt;/code&gt; in plain old math. In Sage this is done like this:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Truth table to ANF conversion</title>
      <link>https://www.msoos.org/2010/09/truth-table-to-anf-conversion/</link>
      <pubDate>Fri, 03 Sep 2010 14:00:28 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=311</guid> 
      <description>&lt;p&gt;It is sometimes important to be able to quickly convert a binary function, described in as a &lt;a href=&#34;http://en.wikipedia.org/wiki/Truth_table&#34;&gt;truth table&lt;/a&gt;, to its &lt;a href=&#34;http://en.wikipedia.org/wiki/Algebraic_normal_form&#34;&gt;Algebraic Normal Form&lt;/a&gt; (or simply, ANF). The truth table basically lists the points where a function is 1 and when it is 0. For instance, if the function has two variables, and its truth table is &lt;code&gt;0110&lt;/code&gt; or, in hexadecimal form, &lt;code&gt;0x5&lt;/code&gt; then the ANF of this function is simply &lt;code&gt;x0 + x1&lt;/code&gt;, where &lt;code&gt;x0&lt;/code&gt; is the first variable of the function, and &lt;code&gt;x1&lt;/code&gt; is the second.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ANF to CNF conversion</title>
      <link>https://www.msoos.org/2010/07/anf-to-cnf-conversion/</link>
      <pubDate>Tue, 06 Jul 2010 10:25:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=11</guid> 
      <description>&lt;p&gt;Algebraic Normal Form, or simply &lt;a href=&#34;http://en.wikipedia.org/wiki/Algebraic_normal_form&#34;&gt;ANF&lt;/a&gt;, is the form used to describe cryptographic functions. It looks like this:&lt;/p&gt;
&lt;span class=&#34;katex-display&#34;&gt;&lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34; display=&#34;block&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;=&lt;/mo&gt;&lt;mn&gt;0&lt;/mn&gt;&lt;mspace&gt;&lt;/mspace&gt;&lt;mo&gt;…&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;
a*b \oplus b*c \oplus b \oplus d = 0\\
b*c \oplus c \oplus a = 0\\
\ldots
&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4653em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∗&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∗&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.7778em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;d&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;mspace&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∗&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;⊕&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mrel&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2778em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6444em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;0&lt;/span&gt;&lt;span class=&#34;mspace&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.1667em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;minner&#34;&gt;…&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;Where &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo separator=&#34;true&#34;&gt;,&lt;/mo&gt;&lt;mo&gt;…&lt;/mo&gt;&lt;mi&gt;d&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;a,\ldots d&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.8889em;vertical-align:-0.1944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mpunct&#34;&gt;,&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.1667em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;minner&#34;&gt;…&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.1667em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;d&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; are binary variables, the &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo&gt;⊕&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;\oplus&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6667em;vertical-align:-0.0833em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;⊕&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; sign is binary XOR, and the &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;*&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4653em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord&#34;&gt;∗&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; sign is binary AND. Every item that is connected with the XOR-s is called a &lt;a href=&#34;http://en.wikipedia.org/wiki/Monomial&#34;&gt;monomial&lt;/a&gt;, and its degree is the number of independent variables inside it. So, &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;a&lt;/mi&gt;&lt;mo&gt;∗&lt;/mo&gt;&lt;mi&gt;b&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;a*b&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4653em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;a&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mbin&#34;&gt;∗&lt;/span&gt;&lt;span class=&#34;mspace&#34; style=&#34;margin-right:0.2222em;&#34;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.6944em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;b&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is a 2-degree monomial in the first equation, and &lt;span class=&#34;katex&#34;&gt;&lt;span class=&#34;katex-mathml&#34;&gt;&lt;math xmlns=&#34;http://www.w3.org/1998/Math/MathML&#34;&gt;&lt;semantics&gt;&lt;mrow&gt;&lt;mi&gt;c&lt;/mi&gt;&lt;/mrow&gt;&lt;annotation encoding=&#34;application/x-tex&#34;&gt;c&lt;/annotation&gt;&lt;/semantics&gt;&lt;/math&gt;&lt;/span&gt;&lt;span class=&#34;katex-html&#34; aria-hidden=&#34;true&#34;&gt;&lt;span class=&#34;katex-base&#34;&gt;&lt;span class=&#34;katex-strut&#34; style=&#34;height:0.4306em;&#34;&gt;&lt;/span&gt;&lt;span class=&#34;mord mathnormal&#34;&gt;c&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; is a 1-degree monomial in the second equation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Tools that I often use</title>
      <link>https://www.msoos.org/2010/04/tools-that-i-use-often/</link>
      <pubDate>Mon, 19 Apr 2010 20:23:00 +0000</pubDate>
       <guid isPermaLink="false">http://www.msoos.org/wordpress/?p=27</guid> 
      <description>&lt;p&gt;I used to use &lt;a href=&#34;http://en.wikipedia.org/wiki/Perl&#34;&gt;Perl&lt;/a&gt; a lot in the old days. Martin Albrecht, through the &lt;a href=&#34;http://www.sagemath.org/&#34;&gt;sage&lt;/a&gt; mathematics software, showed me Python. I first really hated Python. But then, I realised I can simply type away in it, as in C++, but without all the hassle of C++. I saw a little of &lt;a href=&#34;http://en.wikipedia.org/wiki/AWK&#34;&gt;AWK&lt;/a&gt; once, and I got madly in love with it &amp;ndash; when it comes to simple scripts like counting numbers printed by programs, AWK is unbeatable. I use &lt;a href=&#34;http://http//en.wikipedia.org/wiki/Grep&#34;&gt;grep&lt;/a&gt; a lot, and recently I realised how great a combination grep and &lt;a href=&#34;http://en.wikipedia.org/wiki/Wc_%28Unix%29&#34;&gt;wc&lt;/a&gt; (a very dumb utility that counts lines/words) are. For instance, I can simply do: &amp;ldquo;grep &amp;ldquo;s SAT&amp;rdquo; *.output | wc -l&amp;rdquo; to find how many problems have been solved by CryptoMiniSat. I am also finding myself using grep and AWK together to create shell scripts that I run later. For example, I can do: &amp;ldquo;ls *.cnf | awk &amp;lsquo;{print &amp;ldquo;./cryptominisat &amp;quot; $1 &amp;quot; &amp;gt; &amp;quot; $1.output&amp;rdquo; }&amp;rsquo; &amp;gt; script.sh&amp;rdquo; which, when executed, solves all CNF files in the directory, and generates a *.cnf.output file for each, containing the output of CryptoMiniSat. An interesting utility in UNIX is &lt;a href=&#34;http://ss64.com/bash/ulimit.html&#34;&gt;ulimit&lt;/a&gt;, with which can limit the memory and time (and stack, etc.) usage of a process. Putting a &amp;ldquo;ulimit -t 10000&amp;rdquo; at the beginning of our &amp;ldquo;script.sh&amp;rdquo; we can simply limit CryptoMiniSat to 10000 seconds for each instance.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
