<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sandesh Bhusal on Medium]]></title>
        <description><![CDATA[Stories by Sandesh Bhusal on Medium]]></description>
        <link>https://medium.com/@sandeshbhusal?source=rss-72d07023a10c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QqnvPvRXiGmIUHsA.</url>
            <title>Stories by Sandesh Bhusal on Medium</title>
            <link>https://medium.com/@sandeshbhusal?source=rss-72d07023a10c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 23:38:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sandeshbhusal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A mathematical solution to the love polygon]]></title>
            <link>https://medium.com/algopods/a-mathematical-solution-to-the-love-polygon-ca1467d21d5e?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca1467d21d5e</guid>
            <category><![CDATA[the-office-fan]]></category>
            <category><![CDATA[stable-marriage-problem]]></category>
            <category><![CDATA[daily-algorithms]]></category>
            <category><![CDATA[algopods]]></category>
            <category><![CDATA[proof-by-contradiction]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Thu, 27 Aug 2020 09:56:21 GMT</pubDate>
            <atom:updated>2020-08-27T12:18:14.805Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why you should ask your crush out if you want to have a happier life.</h3><h4>Daily Algorithms #4: Gayle and Shapely Algorithm for Stable marriage problem.</h4><p>You are a strong independent woman. You are capable of taking care of yourself. However, biology has imposed the essence of love on the human genome, which forces us to find our other half throughout our lives — our significant other. In this race for love, every species has its own rules; in some, males project their artistic capabilities through exuberant displays of beauty, signing up females for mating, and in some the females do. For us humans, the question of who asks whom out has shifted significantly throughout the ages, to this time and age, where both males as well as females, ask each other out. In this blog post, I will tell you why you, as a strong independent woman, should ask him / her out if you want to maximize your chances of getting your dream man / woman.</p><p>Love triangles are no news to us. We have been quite familiarized with love triangles, quadiletrals and other love polygons for a long time thanks to the daily soap opera that goes on in our television and everyday lives. Everyone is looking after the other person’s husband / wife. No one is satisfied. Well, the question now is, can we make everyone satisfied? Not totally satisfied per se, as humans are by nature dissatisfied creatures. But satisfied just enough to ensure that they don’t cheat on each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bi_0lcwcfxDWpXMXfl8hw.jpeg" /><figcaption>Pangela and Jwight. A perfect couple?</figcaption></figure><p>Let’s analyze the mechanics of cheating in a relationship then. Let us consider two couples Dwight-Angela and Jim-Pam. Dwight will cheat on Angela only if he fancies Pam more than her, and Pam fancies Dwight more than Jim. Or Jim can cheat on Pam for the same reasons. We see that somone is able to cheat their partners, only when the person they fancy fancies them as well. So given some number of men and some number of women, is it possible to generate such a pair so that no one cheats on each other?</p><p>Let’s consider the traditional heterosexual relationship. For a relationship to be formed, there must be a man and a woman. That means that from N men and N women, N couples can be formed. At the first stage, no one is married to anyone else, and everyone has their favoriates. Everyone has a priority list; no one will pine for their crush after their crush leaves them for someone else. Everyone is objective. Pam says if Jim does not fancy her, then she will settle with Dwight if her decides to propose to her. Straight to the point. No complications!</p><p>Let’s formulate a system (algorithm):</p><ol><li>Take N men and N women</li><li>Pair up the N men and N women</li><li>If anyone would rather cheat than be with their current partner, pair up the cheaters into a couple</li><li>If everyone is Okay-ish with their relationship and promises not to cheat (or has no way to cheat) then stop!</li></ol><p>Well, human relationships are old and this problem is an old one too! People have thought about this and tried to solve this problem. An algorithm, formulated by David Gayle and Lloyd Shapely outlines the following steps to solve this problem:</p><ol><li>Take N men and N women</li><li>Each man and woman has their own priority list, i.e. a list in descending order of attraction to the opposite sex. For the example given, Pam’s list might look like [Jim, Dwight]</li><li>Until everyone is engaged do the following:</li><li>Each man takes his list and crosses off the first woman. Then he proposes to the first woman.</li><li>Two things can happen:</li><li>If the woman has not been asked by any other suitor, then she accepts his proposal and they get engaged.</li><li>If the woman is already engaged, then she looks at her own preference list. If she prefers the suitor to her fiance, then she breaks off her engagement and gets engaged to the suitor.</li><li>After the engagements are complete, marry all the couples.</li></ol><p>This algorithm is guaranteed to produce a pairing in O(n²) time complexity.</p><p>Let’s analyse this algorithm further.</p><ol><li><strong>Does it terminate? Do we get to the end?</strong></li></ol><ul><li>Of course it does! Why else would I be blogging about it otherwise? To prove this fact, let us consider the algorithm itself.</li><li>Let’s consider a scenario where every man proposes to the same woman. In this condition, the woman will settle with the man she likes the most. This means that they won’t cheat on each other ever again! So during each proposal round, where N men propose, at least 1 marriage will occur (worst case scenario when every man has the same preference list). This means that for N men, N² proposals will be required in the worst case scenario.</li></ul><ol><li><strong>Is the result a stable marriage (no cheating occurs)</strong></li></ol><ul><li>To answer this question, let us consider a reverse scenario. Let us consider there are two couples Jim-Pam and Dwight-Angela, and Pam and Dwight want to cheat on their partners with each other. Well, for this pairing to have happened, as Dwight clearly fancies Pam over Angela in this reverse scenario, he would’ve proposed to Pam first. Pam, even though she could’ve been engaged to Jim at the time, would’ve accepted Dwight’s proposal. But Pam is engaged to Jim, so that means she prefers Jim to Dwight. Hence, no cheating can occur. In other words, Jim-Pam and Dwight-Angela are stable couples.</li><li>Even if one person in a relationship is dissatisfied with their current partner, they would have to trade up to get a better partner, and if the better person already has a person they are satisfied with, they would never cheat on them.</li></ul><ol><li><strong>Who gets the better deal?</strong></li></ol><ul><li>This is an interesting part of analysis of this algorithm. In the above case, clearly, the men get a better deal, and the women need to settle. In a generalized scenario, the suitor would get the best they could and the suited would have to settle for less.</li></ul><p>Let’s consider a list of preferences. The capital letters and small letters denote the set of men and women. Men = {A, B, C} and women = {a, b, c}. Their preferences are as follows:</p><ul><li>A — a, b, c</li><li>B — b, c, a</li><li>C — b, c, a</li><li>a — C, B, A</li><li>b — A, B, C</li><li>c — A, B, C</li></ul><p>In the first round, <strong>A</strong> proposes to <strong>a</strong>, who accepts. Then <strong>B</strong> proposes to b who accepts and <strong>C</strong> proposes to <strong>b</strong> and gets rejected. So far, the pairs are {A, a} and {B, b}. Then <strong>C</strong> proposes to <strong>c</strong>, and gets engaged. Hence a stable marriage is formed as : { (A, a), (B, b), (C, c)}.</p><p>Let’s consider the reverse scenario where <strong>a</strong> proposes to <strong>C</strong> and <strong>C</strong> accepts. Then <strong>b</strong> proposes to <strong>A</strong> and <strong>A</strong> accepts. Then <strong>c</strong> proposes to <strong>A</strong> and gets rejected. The pairs so far are {(a, C), (b, A)}. Now, <strong>c</strong> proposes to <strong>B</strong> and <strong>B</strong> accepts. Then a stable marriage is formed as {(a, C), (b, A), (c, B)}.</p><p>In both of these scenarios, considering pair (A, a), and pair (b, A), we see that <strong>a</strong> likes <strong>A</strong> the least but <strong>A</strong> likes <strong>a</strong> the most, and they end up getting married. Similarly, <strong>b</strong> likes <strong>A</strong> the most but <strong>A</strong> likes <strong>b</strong> not all that much. Still, they end up getting married. In these both scenarios, we can see that the suitors end up with their highest possible preference and the suited need to settle.</p><p>Thankfully for us office fans, Jim and Pam and Dwight and Angela will always be perfect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*38VQhp0PauLoM1BDGIe4SQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*db-ZpmVUJdv2huNe4-IhhA.jpeg" /><figcaption>Pangela and Jwight are not real, they can’t scare you. Shhh…</figcaption></figure><p>Simple as that, right? Unfortunately, human relationships are not algorithms, otherwise, it would’ve been good to see this algorithm in practice. Looking at this, one can come to the conclusion, if you want someone, then propose immediately! No one knows when the next round of proposal will begin.</p><p>Get proposing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca1467d21d5e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/algopods/a-mathematical-solution-to-the-love-polygon-ca1467d21d5e">A mathematical solution to the love polygon</a> was originally published in <a href="https://medium.com/algopods">AlgoPods</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Daily Algorithm #3: Estimating value of pi using Monte Carlo methods]]></title>
            <link>https://medium.com/@sandeshbhusal/daily-algorithm-3-estimating-value-of-pi-using-monte-carlo-methods-913e7c0aabf3?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/913e7c0aabf3</guid>
            <category><![CDATA[monte-carlo]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[google-interview]]></category>
            <category><![CDATA[estimate-pi]]></category>
            <category><![CDATA[number-theory]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Wed, 26 Aug 2020 11:30:41 GMT</pubDate>
            <atom:updated>2020-08-26T11:30:41.033Z</atom:updated>
            <content:encoded><![CDATA[<p>Today’s post is going to be short.</p><p>How do you estimate the value of pi using monte carlo method? You are given the equation of a circle x² + y² = r²</p><p>For those of you who do not know about monte carlo method, it is basically the process of conducting randomized experiments and sampling the outputs to generate a expected output from a system.</p><p>Well, when I first encountered this question, my mind went back to calc days and I tried a variety of different ways to answer this question. Then naturally, I looked it up on the internet and found the solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6ZLVvVsZ6ZpLUt9KiD1pg.png" /><figcaption>A circle inscribed in a square.</figcaption></figure><p>Let’s take this image. A circle has been inscribed in a square. The radius of the circle is r, so, area of circle is, naturally, πr². Then the area of the square becomes 4r². If we divide the two, then the ratio becomes π/4.</p><p>How can we use this information to estimate π? The answer comes in the question: Monte carlo method!</p><p>Let’s run N simulations randomly, where M points are generated in each simulation. Each point lies between 0 and 1, and we test if this point lies inside the circle or outside it. The ratio of all points that lie inside the circle to the total number of points should be equal to π/4.</p><p>Here’s the code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/218ae3d9633b127da9db7fe19ccf3e20/href">https://medium.com/media/218ae3d9633b127da9db7fe19ccf3e20/href</a></iframe><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=913e7c0aabf3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Daily Algorithms: #2 (Kadane Algorithm)]]></title>
            <link>https://medium.com/algopods/daily-algorithms-2-kadane-algorithm-905ac34cda2d?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/905ac34cda2d</guid>
            <category><![CDATA[array-sum]]></category>
            <category><![CDATA[largest-subarray]]></category>
            <category><![CDATA[algopods]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[kadanes-algorithm]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Tue, 25 Aug 2020 11:56:50 GMT</pubDate>
            <atom:updated>2020-08-25T11:56:50.064Z</atom:updated>
            <content:encoded><![CDATA[<p>How to find the subarray with the largest sum in a given array</p><p>This is a repeated common question one might encounter while solving CP problems. Kadane algorithm is used to solve this problem. Before we reach into the implementation, we should try to solve this with a bruteforce approach</p><ol><li>Naive approach:</li></ol><p>The most basic thing we can do is, start with each index of the array and keep a track of sums. Then, we compare the sums that we have obtained and return the largest subarray.</p><pre>1. Generate a list of all subarrays.<br>2. Generate sums for all subarrays.<br>3. Return subarray with largest sum</pre><p>The time complexity for this approach is O(n²). This is a very inefficient solution.</p><p>Here’s the thing before starting to learn kadane algorithm: Do not try to overcomplicate it. Most examples and websites out there will try to lead you astray, by showing you rote-learned examples, which make use of the same variable names over and over again. Let’s try to understand kadane algorith conceptually.</p><p>I will ask you two questions — basic arithmetic questions.</p><blockquote><strong>Q. True or false: -1+2 &gt; 2?</strong></blockquote><p>If you can answer this question, then you can understand kadane algorithm!</p><p>Let’s outline the steps for the algorithm first.</p><ol><li>Start with array.</li><li>Let us consider that there is a subarray, whose sum is equal to sum_here, and starts at some index “start” and ends at index “end” in the array.</li></ol><p>How would we find such an array?</p><p>Well, the basic nature of kadane algorithm is improved for mixed case: when both positive and negative numbers are included. Let’s take an example for now. I will list an array of numbers, and you need to find the subarray with the largest sum!</p><p>[-1, 1, 2, 3, -4]</p><p>It’s 6, from subarray [1, 2, 3]. Easy, right?</p><p>Well, kadane algorithm works the same way. When we start out, we assume that the subarray starts from the beginning of given array and current sum is 0. For each element in the array, we then check the following:</p><ol><li>If the current element, added to the current sum, yields a value which is <em>actually</em> lesser than the element itself, then there’s no point in considering the previous sum. We might as well start the largest subarray from this element onwards and continue in the provided fashion.</li><li>If the current element, added to the current sum, yields a value greater than the item itself, then we should cross check it with the largest sum that we have found so far. If the sum exceeds the largest sum, then the subarray starts somewhere and ends at this element. Otherwise, we just continue.</li></ol><p>What this means is that, if adding a sum to the given index’s element is lesser than the element, then it must mean that the sum is negative, and the item is positive or negative, but it is larger than the current sum. Since we are after the largest sum, we can discard our current progress and continue!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*tH4mnXHulhyveMIj7K7wAQ.png" /><figcaption>Illustration of problem: Credits (Geeksforgeeks)</figcaption></figure><p>In the above figure, we can see, starting with -2, the largest sum is -2. If we add -3 to the sum, then we get -5, which is smaller than -3, so we discard -2 and start our subarray from -3. Then we add 4, which gives us value 1, which is still, smaller than 4. So we discard -3 and start subarray from 4. Then we add -1. We get 3, which is larger than -1, so we check the sum(3) against the largest sum recorded so far, which is 1. As 3 &gt; 1, we mark this as the end of the subarray. So far, the maximal sum subarray contains [4, -1]. Then we add -2. As 3 + -2 = 1, which is greater than -2, but lower than max recorded sum(3), we will not mark our array to end here. So far, the maximal subarray contains [4, -1]. Then we reach 1. Still we won’t mark the end of the subarray. Then we reach 5. At this point, the sum becomes 7, which is greater than 3. So our maximal subarray ends at this point so far. Then we consider -3. Adding it to 7 gives us 4, which is lesser than the sum recorded so far.</p><p>Manual walkthroughs can be tough. Let’s look at a gist:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3bf286c6ee6b66a3655da742630176e/href">https://medium.com/media/e3bf286c6ee6b66a3655da742630176e/href</a></iframe><p><strong>Happy coding!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=905ac34cda2d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/algopods/daily-algorithms-2-kadane-algorithm-905ac34cda2d">Daily Algorithms: #2 (Kadane Algorithm)</a> was originally published in <a href="https://medium.com/algopods">AlgoPods</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Daily Algorithms: #1 (Trie)]]></title>
            <link>https://medium.com/algopods/daily-algorithms-1-trie-54d95e42c962?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/54d95e42c962</guid>
            <category><![CDATA[autocomplete]]></category>
            <category><![CDATA[trie]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[dictionary]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Mon, 24 Aug 2020 12:18:48 GMT</pubDate>
            <atom:updated>2020-08-24T12:18:48.246Z</atom:updated>
            <content:encoded><![CDATA[<p>Question Statement:</p><blockquote>Implement an autocomplete system. That is, given a query string sand a set of all possible query strings, return all strings in the set that have s as a prefix.</blockquote><blockquote>For example, given the query string de and the set of strings [dog, deer, deal], return [deer, deal].</blockquote><blockquote>Hint: Try preprocessing the dictionary into a more efficient data structure to speed up queries.</blockquote><p>This was an interview question asked by twitter. In the title of this blog post, I have mentioned a data structure called trie, which is a powerful way of storing and looking up strings in a dictionary. Let’s first analyze the given problem in layman terms:</p><p><strong>Bruteforce approach:</strong></p><p>To solve this problem, one can do the following:</p><pre>1. Generate an array containing all words<br>2. For any given word to be checked, check the provided word against every word in the array.<br>3. For each word whose prefix matches for given word, place it into a list<br>4. Return the list.</pre><p>A sample implementation look like the following code:</p><pre>def get_suggestions(wordlist, prefix):<br>    return [word for word in worlist if word[:len(prefix)] == prefix ]</pre><p>I have used list comprehension to greatly reduce the LOC for the code.</p><p>As one can probably guess, this approach takes considerable amount of time, if there are many words in the dictionary, as each word has to be tested. Similarly, a further optimizations are required, as the prefix of the prefix might match with some prefix of the word, e.g. api matches with the prefix ap for the words appples and append but none of them are the required suggestions.</p><p>Some other problems with this approach are:</p><ol><li>Expensive storage required, as words which have similar prefixes are stored irrespective of common prefixes.</li><li>Traversal in the list everytime a new letter appears will be computationally expensive.</li></ol><h3>Trie:</h3><p>In computer science, a <strong>trie</strong>, also called <strong>digital tree</strong> or <strong>prefix tree</strong>, is a kind of search tree — an ordered tree data structureused to store a dynamic set or associative array where the keys are usually strings. (Wikipedia)</p><p>Tries are associated with autocomplete systems. The structure of a trie can be seen in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*HCSph87chyZ2GaDR1QJHLA.png" /><figcaption>Structure of a trie (Credits: Wikimedia)</figcaption></figure><p>In the naiive bruteforce implementation, we would have to check all the words against each keystroke; to remedy the situation, we could maintain a list of candidate words, which will be checked on further keystrokes. The working principle of a trie is similar. For each letter, it will traverse below and reach another node; if the node is a leaf node, then a complete word has been found; else, a list of candidates can be generated by traversing downwards from the given node.</p><p>The trie denotes a <strong>compact representation </strong>of the dictionary, which is the second part asked in the question, as it consumes constant memory for common prefixes of words. For an instance, a single storage of te points to words tea ted and ten in the dictionary. Hence, the space requirements are greatly reduced.</p><p>Let’s implement an autocomplete system!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e86737c1adc35702bb4c1bb30e360f85/href">https://medium.com/media/e86737c1adc35702bb4c1bb30e360f85/href</a></iframe><p>If you run the above python script, you can see two words in the output, namely, ‘ant’ and ‘annoyance’ as they start with ‘an’.</p><p>The code is pretty much self-explanatory. We have created a class called trie. The class implements 3 methods, and 1 dunder function. We can insert word, search for a word and retrieve a list of words that start with given prefix.</p><p><strong>Happy coding!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54d95e42c962" width="1" height="1" alt=""><hr><p><a href="https://medium.com/algopods/daily-algorithms-1-trie-54d95e42c962">Daily Algorithms: #1 (Trie)</a> was originally published in <a href="https://medium.com/algopods">AlgoPods</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chai]]></title>
            <link>https://medium.com/@sandeshbhusal/chai-cd870c07d986?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd870c07d986</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[sad]]></category>
            <category><![CDATA[chai]]></category>
            <category><![CDATA[sandesh-bhusal]]></category>
            <category><![CDATA[lovestory]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Fri, 16 Aug 2019 17:59:31 GMT</pubDate>
            <atom:updated>2019-08-16T18:03:17.821Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*mhT0p6UQhWDus76-.jpg" /></figure><p>Love is not an adventure; it does no concord with the convoluted conflict plots and synchronized dance numbers being projected relentlessly inside theaters. Love is not a family feud, nor is it the words that adorn the pages of the books that are venerated since times immemorial, agreed upon by the world as a classic story portraying it. Love is not stationary. It is a fleeting shadow that runs every time you try to catch it, and long after when you do realize it, was your shadow all along. It was inside you all along. It was around you all along.</p><p>Greater men than me have tried to describe this elusive thing. They have put in the effort, the words, the language and produced mesmerizing portrayals in music, art and literature. But love is a complicated feeling. Much unlike the feelings of strong anger that has the qualification of being instilled in the heart of millions in one fell swoop by a screaming dictator, love differs from heart to heart. From beat to beat. You can paint the minds of people of these portrayals, but each beating heart will scream out its own meaning. Love is different. Love is unique. That is what I thought, when I first met you. You were unique. Still are.</p><p>The sun was beating down on every mortal with maybe the strong intention of erasing a few off the face of this earth. “Chitwan is hot.” I always used to say to my friends whenever they protested my craving for tea in summer. “But we still drink tea; even in the sweltering afternoon.” The scorns and moans never stopped me. I used to drag them all down to the local chai shop. Tea was always fascinating for me. You know, in order to properly enjoy tea, it needs to be at a certain temperature. And when the temperature is just right, you take in a sip, coat your mouth and tongue, making sure the sweet-bitterness coats every crevice, every cavity and every taste bud. And when it cools down just enough, you gulp it down.</p><p>2007. Tea. Our love was never an adventure. For every adventure needs a proper ending. What else would you base the quality of the adventure on otherwise! It was a beginning of something special — the most cliche line in the book. I could easily imagine us on a couch together. Not speaking a word for eternity, yet, still in love. Not facing each other like the day we met. Chai really brings people together. And people say you shouldn’t drink it on hot days. What a pile of rubbish!</p><p>Chai brought us together. That summer of 2007. Migraine was doing a number on my brain and I needed some caffeine to soothe it for a while. That is my condition I remember seeing you for the first time. In pain and agony. And I still remember how beautiful you looked through the eyes of a hormone-riddled teenager. Maybe I was too desperate, maybe you were too beautiful. Lord knows. What I did know at the moment is that it was you.You were the chosen one. You were the Neo to my matrix. You were the Falguni Devi to my Dashrath Manjhi. I could break down mountains for you. Now if this was a movie, I would boldly walk upto you and ask about your day. But I am no double — o — seven. I stood there awkwardly gawking at you with the stare a fish that has been freshly fished out of the lake. You were sitting there, averting my gaze and looking uncomfortable. At last, I did work up the nerve to ask for your forgiveness and left. And I remember you smiling through the corner of my eye as the door chimed. I became a regular customer.</p><p>Sitting in a corner and staring at you over the pages of my half-turned book covering my face was my daily routine. At least until the day you came to me, asking me if the book I was reading was any good. I did not know, for I had not read a word in the book. I mumbled for words, and replied in vague concepts. Your contorted lips broke my heart. Chai accompanied me the night I stayed up reading every page in the book. The next day, I waited in excitement but you did not come. The next and then the next. I was weary. But you came in the next week, and I told you all about the old man in the book and how I think he represents the struggle that we all face in life. And you told me all about your trip to France. And I stayed gazing into your deep brown eyes, all the time thinking how out of my league you were. I had not set a foot outside Chitwan, and Kathmandu was the furthest adventure I had had. I could tell you about the waterfalls along the way, and the frequent landslides, but mud and wild herbs are barely a fitting exchange for Eiffel and Louvre. But love transcends all barriers. I wished it did.</p><p>We could get lost in each other’s words all day long. I could discuss all the books and drink all the chai in the world if it meant getting a chance to talk to you. I could learn all about the world and teach you all about the ways of the words, and how they danced when put next to each other. And you could teach me all about the world and learn about how words dance. Next to each other. We would spend all morning scribbling on blank pages twisted stories, each continuing the other’s half and part ways promising to meet the other that evening. You loved your iced tea, I left chai behind for my black tea in fear of gastritis. Days turned to weeks, weeks turned to months.</p><p><em>San Valentino.</em> A brave priest was executed for marrying soldiers in the Roman army to their sweethearts in 269 AD. He was buried on the <em>Via Flaminia</em> on February 14. Saint Valentine was really a saint. I brought along a guitar for the special occasion. The thought of playing Elvis’s <em>Can’t Help Falling in Love</em> on a single string in front of you gave me goosebumps. And it was not even my guitar! I spent all weekend trying to run my greased finger through the multiple steps of the fret board. At last the tune sounded about just right. I was sitting in our usual spot, twisting and turning in my Sunday best. And then you came. In your pretty pink frock, looking like a doll. You blushed when you saw me. And you asked me “what does all this mean?” with a blush, when I broke out the guitar and proceeded to play the tune with a few missing notes. Then I proposed, albeit clumsily. I held your hand and you lowered your eyes. And that’s when you became mine.</p><p>A relationship always does a number on a friendship. Before a relationship, you are two perfectly good people going their own separate ways, occasionally seeing the other and spending time with each other. When a friendship turns into a relationship, many other factors enter the game. If you are a south Asian teenager, then bollywood enters the relationship along with you. With bollywoodish expectations, comes the need for prolonged dates and awkward goodbye pecks. Great expectations, great love and great possessiveness, mixed with dash of overprotection. I do not deny I was the same. And you still loved me. You still loved me you had to leave your friends behind for a long tour to Mustang and stay with me making me soup. You still loved me when I gave you a metal earring for Valentines the year you gave me a Waterman fountain pen.</p><p>2008. Every relationship has tussles. At least that is what you used to say. And you used to invent ways to quarrel. Whether it was hiding my notebook when I went to the washroom, or mixing your iced tea with my milk tea. You irritated me to make me angry. And the times I did not give in to your devilish ways, you created an issue out of the situation and then I had to take you out for panipuri just to calm your demons. But we never fought. This is the thing. When you are in a relationship, there can be no fights and it is still love. They really lie when they say that fights make a relationship stronger. It just increases the tolerance capacity of a person to their partner’s faults. You never grow in such a relationship. It is like saying breaking china and taping it together makes it stronger. You can still eat off the plate, but at times it will become wobbly at the cracks.</p><p>2009. We were no longer teenagers. The furthest years of teen age left us behind. Me with a croaking voice and you with a prettier smile. Tidbits of beard were still clumsily trying to break their way out of my dark skin, but to no avail. We supposed we were now “mature” people. Maturity was still a very confusing concept. After all these years, still is. I don’t know how you made it all look so easy. You made all the worries vanish at an instant. All the problems vanished when I was with you. The love grew stronger with each passing day. Kisses became sweeter. Time became more mellow. I had the bliss of seeing you each day at college. Architecture had always been your interest and mine was electronics. I fiddled with soldering irons while you created your Styrofoam models. Life was fine.</p><p>2012. Graduation day. I would not see you throughout the day. Maybe just the mornings and the evenings. College was over. I feared the same for our love. You assured me it was an absurd idea. We laughed at my wild imagination. When you are the eldest son in a middle-class family, all the burden falls on you once you graduate. After all, there are siblings whose schools need be completed, debt to pay and parents to care for. Add a girlfriend to the equation and the situation starts getting sticky. You were preparing for your trip to Russia and I was upset with your obsession with the Eurasian belt. If only I could interest you in the nearby Chandragiri Hills.</p><p>2013. Trip to Russia. You would be visiting Moscow first. Then Kazan. The rest I could not keep in my head for the names were too long and I cared not for the names. The mind cannot work when the heart is wrenching. The last <em>terminal.</em> I bade you a farewell. No one else knew I was there, watching from afar with sweating eyes, as your family hugged you and you left for Russia. You said you would call as soon as you reached.</p><p>2013. You reached Russia safely. I talked to you on Skype and you hung up soon after. After all, you had to catch a flght the next day. You promised you would call as soon as the flight landed.</p><p>2013. You broke your promise.</p><blockquote>According to the official investigation report by the Interstate Aviation Committee (IAC), the crash was a result of pilot error, arising from a lack of skill to recover from an excessive nose-up attitude during a go-around procedure. The pilots’ deficiencies were caused by a problem with the airline’s safety management and a lack of regulatory oversight.</blockquote><p>2013. Pashupatinath. Everything was up in smokes.</p><p>2013. lost you. I lost everything.</p><p>2013. I screamed as the flames licked your body. As they mercilessly took your last presence from the earth away from me.</p><p>2013. I slept on the steps of pashupatinath. Woke up to a bunch of dogs laying by my side.</p><p>2013. I started drinking. I know you never liked people who drank. Well who were you to tell me what to do! You could not even keep a simple promise.</p><p>2013. Kept my cell phone clutched in my hand all night long sleeping expecting your call. You would call me and then I would wake up crying.</p><p>.</p><p>.</p><p>.</p><p>2018. January 1. New year new you. At least that is what they say. Being in rehab and trips to the psychiatrist are taking a toll on me. I don’t know if I can take it any longer. Found my old diary. The entries were not marked, just the year. What an absurd way to write a diary. Reading it makes me miss you even more. Wish you were here.</p><p>2018. March 13. I stopped writing for a long time. Every time I opened the journal, I would flip through the old times. My psychiatrist says I should not do anything to revisit the past. How dare she! How dare she compare our love to mere nostalgia! She knows nothing. Our love deserves no lesser than a book of its own and maybe a short movie. To hell with her. I will make the movie myself!</p><p>2018. April 20. It’s been quite some time since I wrote. I have lesser nightmares now. I still remember you though. After all, I can’t cry everytime I remember you. There were good times and there were bad times. I think I should be more thankful for the good times that we had.</p><p>2018. May 30. Today is our anniversary. 11 years passed since that fateful day I met you. I have a headache even today. Migraine made me remember you even more. I read the old man and the sea today. That was the book that brought us together. Watched a documentary on France. Then Moscow and then Kazan. When I googled Kazan, I saw the entry about the plane crash. I cried for a while and then passed out due to the sheer pain of headache.</p><p>2018. November 3. I have a brilliant plan! All these years and how stupid has one to be to not see anything like this hidden in plain sight! Oh my god, I have been such a fool! Damn me!</p><p>2018. November 16. The clock turns slowly. I grow impatient with each passing moment. I am too excited and afraid at the same time. These are mixed feelings. Just like the day I met you. They say that home is not a building, it is a person. You left me homeless and today I will change the situation. I am standing up for myself. I am going back to my home. I am wearing the same clothes that I wore when I first met you. The white lined shirt and blue jeans.The same Vans shoes. The same Ray Ban goggles. The same Titan watch. You will recognize me, right? Tomorrow is the day you left me forever. November 17. It is 11:55 PM right now. I know you are excited to meet me too! Just 5 more minutes and I will be there with you. I grow impatient with each passing breath. Just finished the chai on the table. See you soon love…</p><p>Signed,</p><p>Rabikiran Sapkota.</p><p>November 16, 2018.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd870c07d986" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Burrows Wheeler Transform]]></title>
            <link>https://medium.com/algopods/burrows-wheeler-transform-c743a2c23e0a?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c743a2c23e0a</guid>
            <category><![CDATA[compression]]></category>
            <category><![CDATA[burrows-wheeler]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[string]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Mon, 18 Feb 2019 07:42:10 GMT</pubDate>
            <atom:updated>2019-02-18T07:42:10.956Z</atom:updated>
            <content:encoded><![CDATA[<h4>1. Introduction:</h4><p>Taking a small detour from the current series on string comparison, we are going to be looking at the Burrows Wheeler Transform algorithm, that forms the heart of many compression engines in today’s technology stacks.</p><p>The Burrows Wheeler Transform tries to bring together the characters in a string that are the same, i.e. clusters the common characters together. This can be specially important in cases like DNA sequencing, where there are limited alphabets from { A, T, C, G } only. For an example, the BWT transform of “ATCGATGCGCATCCGAT$” will be “TGC$GGTCTGCCCTAAAA”. Here, we can see that the common symbols tend to clump together, like the four A’s at the end of the sequence. BWT is not a compression algorithm in itself, but helps in many compression algorithms.</p><h4>2. Implementation :: Creating a BWT of a given string:</h4><p>For a Burrows Wheeler Transform, we take the string S[0…n] and append a delimiter ‘$’ at the end. Delimiters can be inserted at the beginning, end, both or none. The delimiter sign will be the sign of lowest weight, i.e. value. It can also be considered as a character of the highest weight. It can be altogether omitted too.</p><p>We rotate the string, and generate a table of rotations. The table is sorted in a lexicographical order and a string is created from all the last characters in the strings from the sorted table. BWT transform of the string is obtained. Let’s see this in action.</p><p>For a string ‘apple’, we have:</p><pre>$apple<br>e$appl<br>le$app<br>ple$ap<br>pple$a<br>apple$</pre><pre>Note that each following string is the right rotation of the preceding string. i.e. $appl<strong>e</strong> --&gt; <strong>e</strong>$appl when rotated right.</pre><p>The sorted table becomes:</p><pre>$appl<strong>e</strong><br>apple<strong>$</strong><br>e$app<strong>l</strong><br>le$ap<strong>p</strong><br>ple$a<strong>p</strong><br>pple$<strong>a</strong></pre><pre>Original String Position: <strong>2</strong></pre><p>Remember, that the $ character precedes all the other characters. This is what I meant earlier when I said it has the lowest weight.</p><p>From the table, we can see that the BWT transform of the string will become “e$lppa”. Along with the transformed string, we take the position of the original string i.e. 2 in the table, which will be used in decoding the BWT transform later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/0*CxkJzJUUhkdPTala.png" /><figcaption>Fig: Implementation of Burrows Wheeler. Start from the leftmost column and proceed towards the right -&gt; . Here <strong>^</strong> denotes the beginning of the string and <strong>|</strong> denotes the end of the string. Sorting can take into account the string delimiters, ^ and | as characters of either highest priority or the lowest priority.</figcaption></figure><h4>2. Decoding a BW Transformation of a string.</h4><p>Now that we have created a BWT transformation of the string, it is time to do stuff like compression with it. For an example, say, a BWT transformed string “AAAAATTTTCCCGGGGG” can be represented as “5A4T3C5G”. This is just an example and there exist very highly efficient algorithms for this purpose.</p><p>After receiving the transformed string, we need to decode it to its original pattern text. The BWT string, accompanied with the original string position is used to decode the received transformed string into original text.</p><p>Let’s begin with the original matrix. We rotated the original text in the rightward direction while encoding the BWT. This time, we will simply rotate the pattern to the left. And we will continue appending the pattern to the matrix table and sorting the list.</p><p>Let’s take an example of transformed string ‘epa’ with index 0.</p><p>Step 1: Create matrix:</p><pre>E<br>P<br>A</pre><p>Step 2: Sort Matrix:</p><pre>A<br>E<br>P</pre><p>Step 3: Shift Matrix to Right.</p><pre>-A<br>-E<br>-P</pre><p>Step 4: Append original Characters:</p><pre><strong>E</strong>A<br><strong>P</strong>E<br><strong>A</strong>P</pre><p>Step 5: Go through steps 1 to 4 upto the length of the string.</p><p>Finally, we obtain a matrix as follows:</p><pre>ape<br>eap<br>pea</pre><p>From our original index, we can see, <strong>ape </strong>is the original String.</p><h4>Code Implementation:</h4><p>Here is the code implementation for both transforming and reverse transforming a string from BWT. The codes are self explanatory (Once you run them, they will produce useful outputs) and hosted on gist under GNU GPL.</p><p>BWT Transformation Code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0290e3e283791da403dd07ab0b298bd0/href">https://medium.com/media/0290e3e283791da403dd07ab0b298bd0/href</a></iframe><p>Reverse BWT Transformation Code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb18dfaea5790938104b4d1d700132c1/href">https://medium.com/media/bb18dfaea5790938104b4d1d700132c1/href</a></iframe><p>The time complexities of the codes can be minimized a lot. I highly encourage the reader to seek them out and discuss them on the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c743a2c23e0a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/algopods/burrows-wheeler-transform-c743a2c23e0a">Burrows Wheeler Transform</a> was originally published in <a href="https://medium.com/algopods">AlgoPods</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boyer Moore String Matching Algorithm]]></title>
            <link>https://medium.com/algopods/boyer-moore-string-matching-algorithm-842060bc7b55?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/842060bc7b55</guid>
            <category><![CDATA[boyer-moore]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[string-matching]]></category>
            <category><![CDATA[secondpost]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Mon, 11 Feb 2019 14:39:39 GMT</pubDate>
            <atom:updated>2019-02-11T14:39:39.906Z</atom:updated>
            <content:encoded><![CDATA[<p>Boyer Moore is another string matching algorithm that is going to be discussed in this series of string matching algorithms. Boyer moore works on two methods, bad match table and good suffix heuristics. In this post, I will discuss an implementation of the bad match table.</p><p>What Boyer moore does, basically in the case of a mismatch is compare the currently mismatched character in the <em>text </em>and skip to the apt position as defined in the bad match table. This means that we need to create a bad match table, which means preprocessing the pattern. This is achieved in a linear time with O(m) space, for a pattern P[0…m] and text T[0…n]. After the pattern preprocessing, each character is checked from <em>right to left</em> as opposed to conventional directions in both KMP and Naive String matching algorithms. If the mismatched character in the text is not in the pattern, then it means that we need to skip the pattern to a new position to just right of the mismatched character.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/0*9kjGopu1O0owaXFj.jpg" /><figcaption>Fig: Comparing characters and shifting according to the bad match table. (Source: geeksforgeeks.com)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/0*xodvotz1Wf-nKhF9.jpg" /><figcaption>Fig: What to do when the mismatched character is not in the pattern? (Source: geeksforgeeks.com)</figcaption></figure><p>The images above illustrate the algorithm in a concise way.</p><p><strong>Time Complexity:</strong> O(mn) worst case, O(n/m) Best case.</p><p>Here is a sample implementation of the algorithm:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/02e7e883ca11d71e3ba3e9f64c76c289/href">https://medium.com/media/02e7e883ca11d71e3ba3e9f64c76c289/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=842060bc7b55" width="1" height="1" alt=""><hr><p><a href="https://medium.com/algopods/boyer-moore-string-matching-algorithm-842060bc7b55">Boyer Moore String Matching Algorithm</a> was originally published in <a href="https://medium.com/algopods">AlgoPods</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[String Matching Algorithms :: Review]]></title>
            <link>https://medium.com/algopods/string-matching-algorithms-review-5ffde3875fdd?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ffde3875fdd</guid>
            <category><![CDATA[string]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Sat, 09 Feb 2019 13:44:33 GMT</pubDate>
            <atom:updated>2019-02-09T13:44:33.250Z</atom:updated>
            <content:encoded><![CDATA[<h3>String Matching Algorithms :: Naive Bruteforce</h3><p>In this blog series, I will try to explain and evaluate various string matching algorithms.</p><ol><li>Bruteforce Algorithm</li><li>Rabin Karp Fingerprinting Algorithm</li><li>Knuth Morris Pratt Algorithm</li><li>Bayer-Moore Algorithm</li><li><strong>Bruteforce Algorithm:</strong></li></ol><p>Bruteforce is the most basic string matching algorithm there is out there. For a string ‘s’ with length ‘m’ and pattern ‘t’ with length ’n’, bruteforce works in the following way:</p><p>Take a string s[0…m] and a pattern t[0…n]. For a loop counter ‘i’ going from 0 to m, check for the correctness of characters s[i] and t[0]. If the characters match, then the remaining characters of the pattern are also matched. Otherwise, i is incremented and next character position is checked.</p><p>Code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/90b2d49ad7a45d18d36b5dcccfb957f1/href">https://medium.com/media/90b2d49ad7a45d18d36b5dcccfb957f1/href</a></iframe><p>The code checks for the first character. If it is matched, it proceeds and finds the first position of the pattern to be searched. Otherwise, it quits the program. As you run the program, you can see that a character match can be found at position 12 but it is not an accurate one. Another first character match is found at position 16, and it is the correct answer.</p><p><strong>Time Complexity: O(mn)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ffde3875fdd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/algopods/string-matching-algorithms-review-5ffde3875fdd">String Matching Algorithms :: Review</a> was originally published in <a href="https://medium.com/algopods">AlgoPods</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Narayan Gopal]]></title>
            <link>https://medium.com/@sandeshbhusal/narayan-gopal-1a812d36fe91?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a812d36fe91</guid>
            <category><![CDATA[meeting-again]]></category>
            <category><![CDATA[short]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[lovestory]]></category>
            <category><![CDATA[one-story]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Fri, 24 Nov 2017 05:41:12 GMT</pubDate>
            <atom:updated>2017-11-24T05:41:12.285Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>(<em>Characters in this story are purely fictional. Any resemblance to living or dead is merely a coincidence.</em>)</strong></p><p>***</p><p>The quickening pace of his footsteps fell to an abrupt stop. His glasses misted slowly as he took off the earphone buds. A familiar face smiled, “How are you?”</p><p>His mind raced through a haze of memories. Arranging words in his mind as he slowly wiped his glasses, he lied, “Fine”.</p><p>Her smile faded into oblivion. Gently bowing her head, she lowered her curled eyelashes, as she spoke, “Its been a long time”.</p><p>The world around ceased to exist. There they were, two souls, standing midst of a busy road, enveloped in each other’s silence. The traffic racing by did not matter, nor did the jostling walker-byes. Time stopped in a fashion in which it had not stopped for a long time now. Her head was still lowered, and he was staring at how beautiful she was, after all this time.</p><p>“Let’s catch up,” he said, breaking the silence between them. Nearby, a traffic officer came whistling, motioning them to move; obstructing the flow of people walking on the sidewalk was not too good an idea. “Okay”, she smiled. The very smile he had not seen now in a long while. The very smile that left him mesmerized not before too long ago.</p><p><strong>***</strong></p><p>The coffeehouse door chimed, as they entered. A not-too-busy place, the coffeehouse had for long been his retreat, on days of despair, and happiness both. The owner smiled and waved at him from across the counter. He nodded politely in return.</p><p>“Have a seat”, he said, pulling out a chair on the wooden table. She smiled, sitting on the chair. The cold metal stung her thighs, but none of that mattered now. He sat opposite, motioning the waiter to come over for orders.</p><p>“One milk tea for me please,” he said, with a pause, “what will you have?”</p><p>“Nothing”, she replied.</p><p>“Try the milk cappuccino, it’s great here!”, he suggested.</p><p>“I don’t drink milk”, she said.</p><p>That brought back memories.</p><p>Everything is bound to connect, isn’t it? After you know a person for too long, you start connecting everything you know, you have experienced; to them. It might be so simple as milk, nonetheless. Or cherry blossoms, or pencils, a color, or that hairstyle. Even the aroma of perfume that adorned her. He vividly recalled her shouting over the phone, pleading him not to drink milk, specially tea, as that caused gastric problems. He recalled her convincing him not to drink milk tea, which had always been his favorite, and him feeling like he cheated on her, every time he sipped the pure bliss, that is the tea.</p><p>“Oh yes! I remember”, he said, breaking the uneasy tension. She fidgeted on the chair, looking uncomfortable and rubbing her arms.</p><p>A moment passed before another word was spoken. A lot of tiny fleeting moments, moving at too great a pace to even keep track of. Each fleeting moment brought with it unspoken words, tiny flickering movements of eyes, painful gazes and even more painful memories. Whether the feeling was mutual, was completely unknown, as both of them sat on their chairs, uncomfortably numbed by their feelings. None could utter another word.</p><p>“So, one milk tea?”, the waiter spoke.</p><p>“Okay, I will have a chilled latte”, she dismissed the waiter.</p><p>“How are you?”, he asked.</p><p>“Fine, as always”, she replied with a smile. “How have you been?”</p><p>“Fine, as I said before”, he said.</p><p>“Oh! I already asked that”, she spoke breaking into a gentle giggle.</p><p>Another moment passed.</p><p>“Met anyone yet?”, she spoke with curious eyes.</p><p>“Not everyone is as lucky as you”, he replied with a somewhat dwindled smile. Her smile disappeared, as if it had been wiped off.</p><p>“Oh”, she paused, “Don’t worry, you will meet someone soon. Someone great, who understands how to code”, she said with a gentle smile.</p><p>He smiled in return. Though, deep inside he knew that the feeling of need to find someone else never came, the idea just never occurred. He could go on and on, walking on the road, swiping people on tinder and whatnot. But no one made his stomach flutter the way she did back then. The feeling just died, curled up somewhere inside him and sheathed itself in cold, scalding armor, impenetrable.</p><p>It’s amasing, isn’t it? It’s amazing how long you can spend with a person, knowing their likes and dislikes, knowing every bit of them there is to know, to drift into a comfort that speaks that they are yours and you are theirs, forever to come. It’s amazing how you can plan so much about the future, about how you are going to do what you are going to do, about arguing about the color of your house, when you two are not even together, getting into serious discussions, and arguments about things that do not even exist, that are not even there. And then one day, it all stops. All of it. You become strangers. Again.</p><p>“So… What’s new?”, he inquired.</p><p>“Well… nothing, except for the fact that I still have two more years to complete my education, and its pretty boring”, she giggled.</p><p>“Don’t worry. You will grow into the apron”, he replied with a smile. “You are going to be the greatest doctor in the world”.</p><p>She blushed.</p><p>They say you can speak lies, but your eyes speak the truth, always. So did his weary eyes.</p><p>Her bag buzzed. She picked the phone up.</p><p>“Hello! Yes. Yes, I am there… No, the coffeehouse… Sherpa’s coffee… Yeah, three minutes in the same direction… Okay, see you!”</p><p>Three minutes. That’s all that remained. That was all there was to it. He could choose, either to uncover his curled up feelings, or to let it go; either to scream his feelings out, or to choose silence. His heart began beating quicker than a sparrow’s. She looked into his direction with a smile.</p><p>“I will need to go for now”, she apologized, “Maybe we can meet later?”</p><p>“Sure”, said he.</p><p>As they walked out the coffeehouse, a gust of chilling air blew the pamphlets strewn on the street. Election campaigns. She rubbed her arms again.</p><p>“Cold ?”, he asked.</p><p>“No, it’s okay,” she said.</p><p>A bike stopped before them, and a guy came towards the two, stretching his hand out in a friendly manner. He shook it.</p><p>She waved bye before she sat on the bike after the guy. Clad in his heavy leather jacket, she looked comfortable now. And off they went, with a jerk on the engine. His heart froze.</p><p><strong>***</strong></p><p>The three minutes were over. He was sitting all alone now inside the coffeehouse, sipping his already-cold tea. The owner offered to warm it, but he declined politely. As he got up to leave, the frenzy of thoughts turned dead; no longer troubling him.</p><p>Maybe feelings are strong things, attachments, emotions. Maybe she was the one for him, maybe she was not. He chose to remain silent, for he had lost all feelings. The cold outside had numbed his fingers, but it mattered not to a man with numbed feelings. Maybe he did not feel all that he used to feel anymore. Maybe he did not love her now the way he used to love her back then. Maybe he was happy just by seeing her happy. Maybe none of it mattered now. People always shouted at him for pining over her. Even after four years. But maybe they never understood. Maybe it was what first love was.</p><p>As he walked out the door, the gust of air blew once again. This time, void of her aroma. Blowing the pamphlets again. How he wished gusts could blow away memories. Ah! But memories cannot be blown away. He had tried, but all in vain. He put on his glasses, and tucked the ear buds inside his ear. Rubbing his palms against each other, he walked down the road, not a soul in sight.</p><p>And he said to himself, “One of these days, I am going to get myself a bike. Its too long a distance to walk”, as Narayan Gopal gently whispered into his ears.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a812d36fe91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Duralite]]></title>
            <link>https://medium.com/@sandeshbhusal/duralite-381dd03fadc1?source=rss-72d07023a10c------2</link>
            <guid isPermaLink="false">https://medium.com/p/381dd03fadc1</guid>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[duralite]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[asimov]]></category>
            <category><![CDATA[robot-uprising]]></category>
            <dc:creator><![CDATA[Sandesh Bhusal]]></dc:creator>
            <pubDate>Sun, 03 Sep 2017 15:49:01 GMT</pubDate>
            <atom:updated>2017-09-03T15:49:01.560Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><a href="https://sandeshbhusal.com.np/blog/2017/09/02/asimov/">← Previous part Asimov…</a></blockquote><p>Prasanga woke up to the purring sound of his cat at the foot of his bed. Hastily, he grabbed his left arm at the place he had been shot. It was drenched. Swiftly reaching for the lamp, he turned it on. only to find no trace of blood whatsoever. However, some shards of glass lay on the floor. From what he could deduce, the cat must have knocked off the glass at night, spilling the water on the side of his bed, thus drenching his arm. “Thank god! It was all a bad dream!”, he exclaimed. The cat had gotten up and now was licking herself in the warmth of the fireplace. The bedside clock read 3:30 AM. “Three more hours of sleep”, he thought. Sleep was a bliss, a gratuity for the people in the AIC, specially when you needed to work for more than eighteen hours a day, tracking and hunting down criminals. He curled up in his blanket and drifted back to sleep.</p><p><strong><em>Krr… Krr… Krr… Krr…</em></strong></p><p>The alarm went off, blaring like the sirens of a fire truck. Prasanga woke up, with hazy eyes and proceeded to look at the clock.</p><p><strong><em>8:00 AM</em></strong></p><p>He realized he had messed up.</p><p>The next few minutes were a complete blur. He had to shower, brush and eat. The first two, he did together. The latter one, he decided to postpone. By the time he was ready, the clock had survived another thirty minutes. He ran around the room, hunting for the door keys, but could not find them. “Oh god! I am going to lose my job…”, he was thinking, when the cat decided to go for a leisurely stroll and rose, revealing the keys beneath her.</p><p>He brushed against the living room couch; speeding and grabbed his bag on the way. He pulled the door behind him, and was fumbling with his keys on the door knob, when old Mrs. Neupane from next door tapped him on his back. He was spooked, and let out an involuntary subsonic screech.</p><p>“Here you are! Mr. Dhungel.”</p><p>“Why, yes, I am. And a very good morning to you too, Mrs. Neupane!”</p><p>Mrs. Neupane did not like that much. Reminding her of civic gestures was a grave mistake. She turned red.</p><p>“Anyways, a package came for you thing morning; an envelope. The delivery boy was knocking on your door like mad, but you did not open the door, so I thought you had already gone. I received it on your behalf. However, I would not have, had I known you were still here, <em>sleeping away the morning ignoring your duties like this!</em>”, she emphasized the last part.</p><p>Prasanga realized it was futile trying to discuss with her, as her reputation held her to a standard that was considered a benchmark for arguing with people. He was already too late.</p><p>“Well, that was very kind of you Mrs. Neupane!”, he said gaily, taking the packet from her hands.</p><p>She looked at him with squinted eyes till he disappered in the spiral convolutions of the staircase at the far end of the hall</p><p>“Men these days!”, she started cursing under her breath, as she walked back into her flat.</p><h3><strong>*****</strong></h3><p>“Well, well, well. Look who’s here! The mayor of <em>latesville</em>!”.</p><p>Prasanga was greeted by the office manager as soon as he stepped into the hall. The manager did not like Prasanga too much, especially after that “<em>Dashain lottery ticket</em>” prank he and Sobit pulled off last year where the manger lost a bunch of money, pissing him off to no end. Since then, the manager hated them both, and they avoided him as much as possible.</p><p>Prasanga walked past the manager. The curses and shouts behind him kept getting fainter and fainter, until he reached his desk, where they got muffled amid the humdrum of xerox machines and papers being shuffled. He rested the envelope on the desk, stopping a moment to wipe his sweat dripping from his brows.</p><p>He took a moment to adjust the glasses on the beam of his nose, reading the scribble on the envelope.</p><blockquote>Deliver to :<br>Prasanga Dhungel,<br>Chakupat, Lalitpur,<br>AIC Lalitpur Branch</blockquote><p>The sender’s address had been rendered illegible by the scribble being drenched by some kind of liquid. It was not unusual for the post office to handle their packages carelessly. He tore open the envelope and extracted its contents on the table, which consisted of a single piece of paper, blank on the front. He flipped the paper.</p><p><strong><em>Asimov</em></strong></p><p>The very word sent chills down his spine. His head was reeling, unable to comprehend anything around him. The whole world was spinning. Suddenly, he felt a sharp pain in the very place he was shot in his dream. The experience was nauseating. He leaned against the chair on his desk, grabbing it by the arm, before finally drifting into a seated position. What <em>were </em>those words? What could they possibly mean?</p><p>He did the same thing a sane man would. Look it up on the internet. The click on his keyboard filled his screen with a flood of links, all in blue, calling out to be clicked. He clicked on the first one, that redirected him to another page.</p><p>“Asimov’s laws”, read the page.</p><ol><li>A robot may not injure a human being or, through inaction, allow a human being to come to harm.</li><li>A robot must obey the orders given it by human beings except where such orders would conflict with the First Law.</li><li>A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.</li></ol><p>That seemed totally disconnected, and out of context. What could they mean? What was their relation with the current ongoing of events? He could not decipher the relationship. He was still lost in thoughts, when a friendly face came to his cubicle, mug in hand and slapped him on the back.</p><p>“Good morning, partner in crime!”</p><p>It was Sobit. The train of thoughts was derailed for a moment, and Prasanga’s mood lightened.</p><p>“I see you in distress. Is everything okay?”, Sobit asked.</p><p>Prasanga could not decide whether to tell him the whole story or not. But then, everything could be a coincidence and he could end up wasting both their time.</p><p>“Nothing, nothing at all!”, he replied.</p><p>“Are you sure? Look, I know when you are lying to me!”, said Sobit.</p><p>Prasanga contemplated about the consequences of letting him on the story. But then, he could not waste effort on something that could turn out to be nothing. On the other hand, Sobit was the only trustworthy person who he knew.</p><p>“Ahh, it’s nothing much, really. You see, my friend sent me a letter in an envelope, but it turned out to be a word.”, he chuckled. “Here, have a look!”</p><p>Sobit’s eyes opened wide when he held the paper in his hands. He gasped.</p><p>“Who <em>is </em>your friend, dude! He is awesome! Duralite paper! Now that’s something I have not seen in a really long time!”, exclaimed Sobit.</p><p>Duralite.</p><p>Prasanga had never heard of it. “So… What is all the hype about?”, he asked to a beaming Sobit.</p><p>“Dude, you really <em>don’t </em>know? Oh come on! All you desk works are the same! Here, come with me, I will show you.”</p><p>Sobit took him to the dark room. The room was feebly illuminated by faint lights, all of different hues. They went to a secluded portion of the room, containing a lamp.</p><p>“Turn the knob to 668.95 Hz”, Sobit said. Prasanga proceeded to do the same.</p><p>The paper shone afore the light, glistening with translucent brilliance, scattering rays everywhere. Then, letters started appearing on the paper.</p><p><strong><em>(10099123, 1156224)</em></strong></p><p>Nothing else. Strange enough. But it was not much strange, considering all the events till now. “What are those numbers?”, asked Sobit with a perplexed face. Prasanga took note of the two numbers, and bid Sobit a good day. He knew what those numbers meant.</p><h3>*****</h3><p>Prasanga got into his car, and turned on the engine. He put his foot down on the gas pedal, and the engine revved, before finally launching into a forward motion. The hum of the engine got him thinking about what lay ahead.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=381dd03fadc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>