<?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>Computer Science on Farman&#39;s Blog</title>
    <link>https://mohamadfarman.com/categories/computer-science/</link>
    <description>Recent content in Computer Science on Farman&#39;s Blog</description>
    <image>
      <title>Farman&#39;s Blog</title>
      <url>https://mohamadfarman.com/images/papermod-cover.png</url>
      <link>https://mohamadfarman.com/images/papermod-cover.png</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>CC BY-NC-SA 4.0</copyright>
    <lastBuildDate>Tue, 21 Jul 2026 14:59:23 +0200</lastBuildDate>
    <atom:link href="https://mohamadfarman.com/categories/computer-science/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Binary bomb</title>
      <link>https://mohamadfarman.com/posts/computer_science/binary_bomb/</link>
      <pubDate>Tue, 21 Jul 2026 14:59:23 +0200</pubDate>
      <guid>https://mohamadfarman.com/posts/computer_science/binary_bomb/</guid>
      <description>&lt;p&gt;Throughout my autodidactic journey of studying &lt;em&gt;Computer Systems: A programmer&amp;rsquo;s perspective&lt;/em&gt; (&lt;em&gt;CSAPP&lt;/em&gt;, for short)&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; I have stumbled upon a &lt;a href=&#34;https://cs61.seas.harvard.edu/site/2025/&#34;&gt;CS 61&lt;/a&gt; course offered by Harvard. The course is divided in 6 units where the 2nd unit contains a problem set called &lt;strong&gt;Binary Bomb&lt;/strong&gt;. The name of todays article.&lt;/p&gt;
&lt;h1 id=&#34;introduction&#34;&gt;Introduction&lt;/h1&gt;
&lt;p&gt;From the problem set specified &lt;a href=&#34;https://cs61.seas.harvard.edu/site/2025/BinaryBomb/&#34;&gt;here&lt;/a&gt; we are introduced to the concept of a &lt;em&gt;binary bomb&lt;/em&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;A binary bomb is a program that consists of a sequence of phases. Each phase reads a line from the standard input. If the line is correct, then the phase is defused and the bomb proceeds to the next phase. Otherwise, the bomb explodes by printing &amp;ldquo;BOOM!!!&amp;rdquo; and then terminating. The bomb is defused when every phase has been defused.&lt;/p&gt;
&lt;/blockquote&gt;</description>
    </item>
  </channel>
</rss>
