<?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 Krishnakumar C on Medium]]></title>
        <description><![CDATA[Stories by Krishnakumar C on Medium]]></description>
        <link>https://medium.com/@krishna-chandran?source=rss-40998c81c31f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*AlW6bQM-OUmsgo8n.jpg</url>
            <title>Stories by Krishnakumar C on Medium</title>
            <link>https://medium.com/@krishna-chandran?source=rss-40998c81c31f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 04:22:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@krishna-chandran/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[Can I write a blog?]]></title>
            <link>https://krishna-chandran.medium.com/can-i-write-a-blog-a85ace5e128e?source=rss-40998c81c31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a85ace5e128e</guid>
            <category><![CDATA[stories]]></category>
            <category><![CDATA[profession]]></category>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[interesting]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Krishnakumar C]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 10:38:28 GMT</pubDate>
            <atom:updated>2023-01-18T10:38:28.210Z</atom:updated>
            <content:encoded><![CDATA[<p>Who is this stupid guy who has “Can I write a blog?” Is he trying to scam? Is he trying to click bait? May be he is a Influencer trying to get my attention? Is it worth it to waste my 5 minutes on it? I hope not. But you decide.</p><p>I have this habit of telling my friends my ideas. My intention is to get the idea out of my system, it doesn’t matter whether it is good or not, I guess I just wanted to get their attention and have my ideas validated.</p><p>May be that is my only way of communicating and connecting with them. But wait, do they really want to listen to me? Not really and not always!</p><p>You see, I often receive a totally incurious head nod from them. What are their options? Stopping me from conveying my ideas versus letting me express? May be they accepted me as who I am. A Crazy guy with his stupid ideas.</p><blockquote>“Krishna, I charge $35 dollars per hour at my work, that is 58 cents per minute. Did you realize that I just wasted 5 minutes and $2.9, listening to your hopeless idea?”</blockquote><p>But you decide. I am curious how much money I will cost you.</p><blockquote>“Go to end of the blog, If you are person who wants to quickly skim to end of the blog, to decide if you should read this blog or not”</blockquote><blockquote>Warning: I am going to write about random stuffs</blockquote><p>This is not my first blog ever. Very long ago, I saw this movie called “Julia &amp; Julia”, where the lead actress cooks french recipes for 365 days to express her love towards food and cooking. I was amazed by that Idea. So I wrote a blog called <a href="https://medium.com/@krishna-chandran/365-days-of-problem-solving-5ed1e2332cac">“365 days of problem solving”</a> on a fine Saturday. I wrote two more blogs , but sorry I am not going to add their links here, I will just waste $5 of your time. I am positive about it.</p><p>What happened after first two recipes for a 365 blogging marathon? I end up being realistic and stopped writing after three blogs. You see my problem here?</p><p>I easily get motivated to try something new, exciting and complex in nature. Because I triggers my dopamine. But what happens after three days is either I run out of energy to consistently work on it or I jump to other cool ideas which releases more dopamine. Is it really a good practice? Time will tell.</p><p>I tend to ask “her” opinion about my ideas. There is no wonder she said the below. You know, she gave me an assignment to write. She constantly remind me of my duties. I love her for that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*Ec41v7gU5_gmrBq6koM2HQ.jpeg" /></figure><p>Sorry guys, I tend to jump between topics a lot, but bare with me, that is how my brain works at this point. I am trying to slowly pivot you from an interesting introduction (that’s what I am planning to call it ) to my blog’s main content.</p><blockquote>“I am going to write about her and my inspirations to write. It is very hard to skip her when I write about me”</blockquote><p>Yes, Thank God! Let me introduce the special person of my life, who has put up with me so far, throughout my constant juggling. Past few years I not only juggle between my ideas but also with my priorities, jobs, mood swings, expectations, focuses and so and so. I regret for not giving enough credits to her. They say, “She loves me! So she is supposed to do all these!”. But honestly, “No”. Your partner don’t have to put up with everything you do. As an individual they have full rights on how they spend their energy. They deserve that right.</p><p>For every time I say, “Listen, I have a new idea”, she says “Krishna, what about your previous idea?”. Why does she do it? Is it because she don’t like me thinking about new exciting things? No. She is concerned that at the end of the day, I will go back to her saying, “I am already tired, and didn’t even start my work”. Yes, I do that a lot and quite often.</p><p>A perfect analogy would be, Combustion engine of the jet engine fires up fuel and builds pressure and there is a tiny nozzle, which collects the energy, channel it efficiently, enable compressing wherever necessary and diverge it at the right point at the right time.</p><p>She is that incredible nozzle. She keeps us moving forward. She deserve that credit.</p><blockquote>When a fuel burns open, it causes hazard. But when it burns at right place and right way, it creates action. Place and Time matters as much as Fuel matters.</blockquote><p>I like exaggerating things, but this time I am not.</p><p>Why should I write now? Why not early? Why not late? I don’t have answer for that.</p><p>You see, people’s opinions changes time to time. Five year ago, If you asked me what did I want in a relationship, I might have told you a completely different answer, that I might find laughable today. It happens because of the combination of my expectations, experiences, decisions and where those decision let me to. Every bad situation is a good learning and every good situation is a validating opportunity of your good idea. But how my opinion on writing about personal things changed? I used to worry about using your personal emotions against you. So I could never talk publicly about my vulnerabilities. But it changed recently. How?</p><blockquote>Earlier I could never talk publicly about my vulnerabilities. Neither I post my stories in Instagram nor put a status in WhatsApp. But it changed recently. How?</blockquote><p>We both drive a lot. We have always spent our time together, shared our ideas, gossips and emotions then and there. So when we go on a trip, that too we both alone, We usually don’t have much new things to talk about. So we used to listen to music. When you go for a life long trips, how many times can you listen to your songs again and again? We got bored. So on a random day, While driving I wanted to listen to news about a major political conflict happened that day. It wasn’t interesting. So after trying many podcasts, I came across two particular podcasts “The Secret Room” and “Alex Friedman’s Podcast”. I loved it.</p><p>What is so special about these podcasts? If you listen to these podcasts, they talk about random stories and random interviews. You might not like it, depending on <strong>what you like to listen from podcasts</strong> and whether you like to listen to podcasts or not.</p><p>But my key take-away from “the secret room” is , how expressing your inner secrets can act as a self therapy and how it can alert others to not get into dangerous situations.</p><p>The second one talks lot about how people think about their job, their opinion on technology, abstract concepts and how their thinking and decisions shaped their life and their field itself.</p><p>Most of all the common thing is, How interesting stories one might have, no matter where they are from. It not only inspired to write my opinions, but also to ask what other think about them.</p><blockquote>“So, I am going to ask questions, capture answers, analyze and write about it! At-least I will try…”</blockquote><p>I recently listened to a podcasts called <a href="https://podcasts.apple.com/us/podcast/170-death-comes-on-wednesdays/id1082252585?i=1000568052732">“Death comes on Wednesdays”</a>. As horrifying as it sounds, It is a statistical fact observed by a woman who worked close to death. Wait. What?</p><p>This podcast is an interview with a woman who did a very uncommon job, which we would usually do not dare to do. She worked as mortuary transporter. We like to always what happens when we are alive. But her work was mostly what happens after you die. I am not talking about soul leaving your body kind of stuff. I am talking about what happens to your body after you die. How professionals who are in-charge of your disposing your body, do it with respect for you and their job. What are the logistics involve in it. Fascinating isn’t.</p><p>I am an Engineer by profession. From where I am from, there is an engineer at every household. I know how engineering job works. I go to job at 10 AM, check my email, reply few, follow up few, attend status meeting and share my status, doing some engineering design, develop, do proof-of-concept, Deployment and maintenance. I don’t do all those all the time. It totally depends. But do you really know what i work on or how i work on? What is my gear for work. What all tools I usually do? How does a person from other job do similar things but in a totally different approach. This just fascinates me so much.</p><p>We tend to see some people with common professions such as banker, engineer, doctor, bus driver, etc. We can somehow assume their roles and judge their skills, even blame them for not doing a better job. But have we ever really thought what made them do what they do and if they are good at what they do, how do they do it?</p><p>When I was a school student, from where I am from, there was some bad habit of looking down on people who drives car driving as their profession. “If you don’t study Science and Mathematics well, you will end up being a petty car driver”, they say. Is it true that their job is petty? No. Not at all.</p><p>You have no idea of how much anxiety I had when I did my first car driving test. Does it end there? No. Everyday I drive, I have to be very careful not to hit others and not to hit my car myself on some poles. Too many factors to consider. But when drive in a Ola or Uber, I trust them blindly with their job skills. What about the people who do this job as their profession? How does their mind works?</p><p>As I grow up, I find all these things very important and I am really grateful for having people who are really good at what they do. No matter what job they do.</p><p>I understand how important every work is. Some people are lucky to end with a job that provide a better economic stability. But some people are even more lucky to create confidence and good impact on other people. Their earnings are measured more in confident we have on them and their job satisfaction rather than money.</p><p>I also read about a article, “Engineer turned Auto driver”. What is their story. Why do he had to change his job. All of these things are not just story of an individual. They are stories of an economy, family, culture and what-not. I don’t even have a exhaustive list of what they might represent.</p><p>Let me see If I can read about or talk to some people of unique professions and ask about their stories. Let me write about some of the interesting stories I read. I am not sure if all the stories will be interesting for you. But some of them will be inspiring and worthy. I am positive about it.</p><blockquote>Do you want me to write this blog? Then let me know!</blockquote><p>If you have successfully read my blog and reached here, write to me (krish884854@gmail), with subject “About your blog” to get my attention. Comment your feedback and my style.</p><p>If you skipped all content and reached here to estimate read worthiness, I admire your habit of confirming before committing.</p><p>If I have wasted your $2.9, Still write to me. I don’t promise any money reimbursements. But I promise, I will work on making my future writings better and make your every penny counts. Of-course figuratively.</p><p>Thank you all for your time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a85ace5e128e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving your daily life problems with AI]]></title>
            <link>https://krishna-chandran.medium.com/solving-your-daily-life-problems-with-ai-7e51a801c9ea?source=rss-40998c81c31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e51a801c9ea</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[bayesian]]></category>
            <category><![CDATA[bayesian-optimization]]></category>
            <category><![CDATA[bayesian-inference]]></category>
            <dc:creator><![CDATA[Krishnakumar C]]></dc:creator>
            <pubDate>Sun, 17 Jan 2021 02:37:28 GMT</pubDate>
            <atom:updated>2021-01-17T02:37:28.773Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>“To cut a wood, Sharpen your axe rather than hitting it hard”</strong></blockquote><p>In 1642, the first true calculator was invented, which can perform calculations through clockwork-type of mechanism. From that time, till now, we never stopped using calculator for any simple to complex arithmetic calculation. Today, with modern technologies, say Google home, Amazon Alexa, Mycroft and Apple Siri, or any smart device that we know can perform these arithmetic calculations on the go.</p><p>Let me be clear. Intention of this blog to give you some insights on the need of some sophisticated and easy to use calculators, which can be used for solving some really important day to day problems.</p><p>Although this is written with general public in mind, the target audience of this blog could be Engineers, Mathematicians or programmers. Why so? All the common people face problems of some kind in their daily life. But there is no simple user interface like Google home or Alexa available today to listen to our problems (arithmetic calculations) and give solutions on the go.</p><blockquote>What kind of problems are we talking about?</blockquote><p>Let me give you one example. Say you are a new student starting your first day at your university. As a fresher you might have so many things to do, like choosing the courses from which you can gain knowledge and also get good grades easily, joining some fancy clubs such as Astronomy club, Science Club, Arts Club, Fitness clubs and many more. Also, being in your new dream place, you might want to make more friends, do more networking and attend some interesting events.</p><p>Now the real question is, Can you allot proper time to do all the above things? You got only two years to complete your course work, get good grades and get a job. For that you need dedicated time to spend on assignments and projects. But networking is also equally important to get a job. So what is the fine line where you achieve best of both worlds, in addition to good rest?</p><p>Your fellow seniors at university might advise you to schedule properly, add all these tasks in calendar and follow them strictly. But do you know why this won’t work for most of the people? Because this calendar does not consider the human nature, current mood, health level, sleep level, lack of resources or delay in getting those resources and many more. So these calendars does not account for uncertainties that is associated with such tasks.</p><p>How do you get most out of your university considering your health, resources and uncertainty?</p><blockquote>Where does this analogy of a calculator stand?</blockquote><p>Mathematicians and Engineers can easily identify the nature of the student problem described above, which is nothing but optimization and planning under uncertainty.</p><p>Now how do you solve your problem? Your intuition may say that you can develop a python program, probably Bayesian networks and use of some optimization algorithms such as dynamic programming, Genetic algorithm, Linear programming or Swarm optimization. But coding such problem is time consuming and it takes more time than the solution itself. As a programmer, you might have a reusable code, that can be used to solve the above student problem. Most of the cases this is not feasible to develop such code and keep it handy.</p><p>Today, nobody develops a C++ or python code to add two numbers. We either google it or ask Alexa. Because we need not code all these, instead we can use the current day tools to get the solutions on the go.</p><p>Do we have such open source calculators which can perform optimization and planning under uncertainty on the go? The answer is yes!</p><p><a href="https://bayesianlogic.github.io/pages/documentation.html">BLOG</a> is an AI tool. BLOG stands for Bayesian Logic. It is a prolog like programming language, which has declarative style of coding.</p><p>I suggest you to read <a href="https://medium.com/@krish884854/365-days-of-problem-solving-5ed1e2332cac">my previous blog</a> on need of declarative style of programming.</p><p>BLOG follows the semantics of declaring facts of the objects and relations in the world, providing observations and querying for the solution. It uses a sophisticated Inference engine in the backend that can simulate the defined the world and give us the possible solutions.</p><p>Bayesian Logic is the combination of first-order logic and Bayesian networks, the best of knowledge representation and modelling uncertainty. This is powerful and simple enough to simulate our daily problems and provide us solutions right away.</p><blockquote>Tug of War</blockquote><p>The below example is a standard example given for BLOG in its official tutorial site.</p><p><strong>Facts, Observations and Queries:</strong></p><ol><li>Define 8 distinct people participating in tug of war match</li><li>A match is between two teams</li><li>There are two people per team.</li><li>Now each person have some strength modelled with gaussian distribution, as we are uncertain about their actual strength</li><li>Team selection is uniform among the 8 players and in a match 4 people for that match are selected.</li><li>Defining laziness of player</li><li>Defining pulling power</li><li>Define Winning</li><li>Observations on team players</li><li>Queries on who is strong, who will win and possibility of winning under a certain scenario. The queries returns probability of the given event or solution of the given problem.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s3f5ghCEQ7JIFj89dRW5tw.png" /></figure><p>As mentioned previously, the intention of this blog is just to give some motivations on need of such tool and why one should master it.</p><p>From the above example, we can ask any query related to the defined problem space and this program will returns the solution.</p><p>How much efforts do you think will take for developing such program from scratch using a general purpose language such as python?</p><p>Thank you for following my blog till end. I will post my next blog on how to make most out of this tool and how it can be made more practical in our day to day life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e51a801c9ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving logical problems by resolution]]></title>
            <link>https://krishna-chandran.medium.com/solving-logical-problems-by-resolution-110ee0f6098b?source=rss-40998c81c31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/110ee0f6098b</guid>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[365-days]]></category>
            <category><![CDATA[resolution-algorithm]]></category>
            <category><![CDATA[propositional-logic]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Krishnakumar C]]></dc:creator>
            <pubDate>Tue, 14 Jan 2020 06:42:43 GMT</pubDate>
            <atom:updated>2020-01-14T06:42:43.772Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Day</em></strong><em> 7| </em><strong><em>Recipes</em></strong><em> 2| </em>Jan 14th 2020</p><p><strong>365 days of problem solving</strong></p><blockquote>To build a strong building, you need a strong foundation</blockquote><p>If you had read my first blog on <a href="https://medium.com/@krish884854/365-days-of-problem-solving-5ed1e2332cac">solving logical problems</a>, you would know the importance of an inference engine in problem solving.</p><p><strong><em>What is an inference engine?</em></strong> It solves the query from knowledge base, to give solution. So it is an algorithm. In our case, Resolution algorithm.</p><p><strong><em>How does a query or knowledge base look like? </em></strong><br>Both <em>query</em> and <em>knowledge base</em> are the logical sentence which has sentence and literals such as <em>&amp;&amp; </em><strong><em>(and)</em></strong><em>, || </em><strong><em>(or)</em></strong><em>, ~ </em><strong><em>(not)</em></strong><em>, =&gt; </em><strong><em>(implies)</em></strong><em>, &lt;=&gt; </em><strong><em>(if and only if)</em></strong><em>, V(x) </em><strong><em>(For every X)</em></strong><em>, E(x) </em><strong><em>(there exists some X)</em></strong></p><p><strong><em>What is logical sentence? </em></strong><br>It gives finally either <strong><em>true</em></strong> or <strong><em>false</em></strong></p><p><strong>Example</strong><br>For every given animal, if and only if that has backbone, the animal is vertebrate</p><p><em>V X animal(X) &amp;&amp; hasbackbone(X) &lt;=&gt; vertebrate(X)</em></p><p>If an animal is cold blooded, that animal can neither be a bird nor invertebrates</p><p><em>E X animal(X) &amp;&amp; coldBlooded(X) =&gt; ~( bird(X) || invertebrates(X))</em></p><p><em>animal(tiger)<br>~bird(tiger)<br>hasbackbone(tiger)</em></p><p><em>? vertebrate(tiger)</em></p><p><strong>Note:</strong> In my blogs query will be represented with<em> question mark (?) </em>followed by<em> query.</em> For example, <em>is tiger a vertebrate?</em> is represented as <em>?vertebrate(tiger)</em></p><p>Let us build an inference engine from scratch using our intuition!</p><h3><strong>Intuition 1:</strong></h3><p><em>what is (true &amp;&amp; false)?</em> <strong>false</strong><br><em>what is (false &amp;&amp; false)?</em> <strong>false</strong><br>So <em>((some logical sentence) &amp;&amp; false)</em> always gives <strong>false</strong></p><h3>Intuition 2:</h3><p><em>what is true &amp;&amp; ~(true)?</em> This is always <strong>false</strong><br>Suppose <em>animal(tiger)</em> is a logical sentence that gives <strong>true</strong>.<br><em>what is (animal(tiger) &amp;&amp; ~animal(tiger))?</em> This is always <strong>false</strong></p><h3>Intuition 3:</h3><p><em>what is ((some logical sentence) &amp;&amp; animal(tiger) &amp;&amp; ~animal(tiger))?</em> This is also always <strong>false</strong></p><h3>Intuition 4:</h3><p>Lets combine all the above results<br>Intuition 1 says, <em>((some logical sentence) &amp;&amp; false)</em> always gives <strong>false</strong><br>Intuition 2 says, <em>(animal(tiger) &amp;&amp; ~animal(tiger))</em> always gives <strong>false</strong><br>Intuition 3 says, <em>((some logical sentence) &amp;&amp; animal(tiger) &amp;&amp; ~animal(tiger))</em> always gives <strong>false</strong></p><p>By considering <em>(some logical sentence)</em> as <em>(some facts that are irrelevant)</em> and <em>animal(tiger)</em> as <em>fact</em> and <em>animal(tiger)</em> as <em>query</em>, From the above intuition, can we say <em>((some facts that are irrelevant) &amp;&amp; facts &amp;&amp; ~query )</em> will always gives <strong>false</strong>?</p><p>If you obviously get your answer as <strong>yes</strong>, then my whole purpose of this blog is achieved!</p><h3>Conclusion:</h3><p>If you have set of <em>facts</em> and a <em>query</em> which seeks <em>solution</em> from the subset of the given facts, we can get the final <em>solution</em> by <em>proof of contradiction</em>. i.e., by proving <em>((some facts that are irrelevant) &amp;&amp; facts &amp;&amp; ~query )</em> is <strong>false</strong>.</p><h3>Resolution Algorithm</h3><p>if <em>(Knowledge Base) &amp;&amp; negation(query)</em> is <strong>false</strong>, then <em>query</em> gives the value <strong>true</strong></p><h3><strong>Example 1</strong></h3><p><strong><em>Knowledge base 1:</em></strong><br>fact1 <br>fact2<br>fact3</p><p><strong><em>Query 1:</em></strong><br>?fact1</p><p><strong><em>Solution 1:</em></strong><br>Step 1: <em>(Knowledge Base) &amp;&amp; negation(query)</em><br>Step 2: <em>(Knowledge base)</em> is equal to<em> (fact1 &amp;&amp; fact2 &amp;&amp; fact3)</em><br>Step 3: <em>(fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~(query1)) = (fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~(fact1))</em><br> <em>= (fact3 &amp;&amp; fact2 &amp;&amp; fact1 &amp;&amp; ~(fact1))<br> = (fact3 &amp;&amp; fact2 &amp;&amp; false)<br> = (false)</em><br> As the result is<strong> false</strong>, the result of <em>query</em> is <strong>true</strong> (proved by contradiction)</p><h3>Example 2</h3><p><strong><em>Knowledge base 2:</em></strong><br>fact1 <br>fact2<br>fact3</p><p><strong><em>Query 2:</em></strong><br>?~fact3</p><p><strong><em>Solution 2:</em></strong><br>Step1: <em>(Knowledge Base) &amp;&amp; negation(query)</em><br>Step2: <em>(Knowledge base) </em>is equal to<em> (fact1 &amp;&amp; fact2 &amp;&amp; fact3)</em><br>Step3: <em>(fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~(query2)) = (fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~(~fact3))</em><br><em> = (fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; (fact3)) (since ~(~a) is equal to a)</em></p><p>Unable to get <strong>false</strong> from this logical statement, so the result of <em>query</em> is <strong>false</strong>. (Unable to prove by contradiction)</p><h3><strong>Example 3</strong></h3><p><strong><em>Knowledge base 3:</em></strong><br>fact1 <br>fact2<br>fact3</p><p><strong><em>Query 3:</em></strong><br>?fact5</p><p><strong><em>Solution 3:</em></strong><br>Step1: <em>(Knowledge Base) &amp;&amp; negation(query)</em><br>Step2: <em>(Knowledge base) is equal to (fact1 &amp;&amp; fact2 &amp;&amp; fact3)</em><br>Step3: <em>(fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~(query3)) = (fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~(fact5))</em><br>Unable to get <strong>false</strong> from this logical statement, so the result of <em>query</em> is <strong>false</strong>. Meaning, unable to answer the query.</p><h3>Example 4</h3><p><strong><em>Knowledge base 4:</em></strong><br>fact1 <br>fact2<br>fact3</p><p><strong><em>Query 4:</em></strong><br>?(fact1||fact5)</p><p><strong>Solution 4:</strong><br>Step 1: <em>(Knowledge Base) &amp;&amp; negation(query)</em><br>Step 2: <em>(Knowledge base)</em> is equal to <em>(fact1 &amp;&amp; fact2 &amp;&amp; fact3)</em><br>Step 3: <em>(fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~(query4))</em> = <em>(fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~(fact1|| fact5)) </em><br><em> = (fact1 &amp;&amp; fact2 &amp;&amp; fact3 &amp;&amp; ~fact1 &amp;&amp; ~fact5)<br>= (fact2 &amp;&amp; fact3 &amp;&amp; fact1 &amp;&amp; ~fact1 &amp;&amp; ~fact5)<br>= (fact2 &amp;&amp; fact3 &amp;&amp; ~fact5 &amp;&amp; false)<br>= (false)</em><br> As the result is <strong>false</strong>, the result of <em>query</em> is <strong>true</strong> (proved by contradiction)</p><p>When this resolution algorithm results in <strong><em>false </em></strong>i.e., unable to prove by contradiction, that means either <strong><em>the given fact in query is wrong</em></strong> or <strong><em>unable to find the solution</em></strong><em>.</em></p><p>In this blog, we have seen how to solve a <em>problem or query,</em> from the <em>knowledge base</em> using <strong><em>Resolution algorithm</em></strong>. This can be applied to all the problems defined using <a href="https://en.wikipedia.org/wiki/Propositional_calculus">Propositional logic.</a></p><p>But wait!</p><p>If you ask me <em>how to solve complex problems </em>or <em>how to represent word problems as logical sentences</em>, my future posts will give the answer.</p><p>Thank you all for your patience!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=110ee0f6098b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[365 days of Problem solving]]></title>
            <link>https://krishna-chandran.medium.com/365-days-of-problem-solving-5ed1e2332cac?source=rss-40998c81c31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ed1e2332cac</guid>
            <category><![CDATA[inference]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[propositional-logic]]></category>
            <category><![CDATA[artificalintelligence]]></category>
            <category><![CDATA[logical-programming]]></category>
            <dc:creator><![CDATA[Krishnakumar C]]></dc:creator>
            <pubDate>Thu, 09 Jan 2020 04:45:58 GMT</pubDate>
            <atom:updated>2020-01-14T19:11:30.702Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Day</em></strong><em> 1| </em><strong><em>Recipes</em></strong><em> 1| </em>Jan 8th 2020</p><p><strong>Solving logical problems by resolution-Part 1</strong></p><blockquote>“The result is never more important than the process. It is always the process that will be the key because it puts less pressure …”- MS Dhoni, Former Captain, Indian Cricket team.</blockquote><p>Solving problem is good! But what good does it do when the problem is not solved in due course? Often, It is harder to get intuition of the solution, when the distress of problem occupies the mind. So having a definite process help us to streamline our ideas and directs it to the solution.</p><p>Consider a robot playing <a href="https://en.wikipedia.org/wiki/Tic-tac-toe">Tic-tac-toe</a> game against you. Before starting the play, the robot should understand the game. <em>That is, it is 3x3 grid, every player can mark their symbol in that grid and the player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner</em>. In <a href="https://en.wikipedia.org/wiki/Imperative_programming">imperative programming paradigm</a>, the programmer instructs the machine, how to change its state. So even before instructions are coded, the programmer must solve the problem in his mind and code the logic of the solution. In this case, programmer solves the problem and not the program itself.</p><p>An alternate approach is <a href="https://en.wikipedia.org/wiki/Declarative_programming">declarative programming</a>, where the programmer defines the rules of the world and the solution is derived by the program itself. So how does the program find solution on its own?</p><p>I believe that there is enough motivation for the contents below.</p><p>Let us split problem solving process into the following components</p><ol><li>Facts, Object, Relations</li><li>Query</li><li>Inference procedure</li><li>Solution</li></ol><p><strong>Facts, Objects, Relations : </strong>This gives the definition of the world, objects involved and relation between the objects. This can be also known as knowledge base. <em>Example: In the game of chess, </em><strong><em>objects</em></strong><em> are 8x8 grid, pawns, kings, queens, bishops, knights and rooks. </em><strong><em>Relations </em></strong><em>are the relation between each pieces, defining valid moves, attack, check,castling, checkmate and en passant. </em><strong><em>Facts </em></strong><em>are the current setup of the game, position of each pieces.</em></p><p><strong>Query: </strong>Query is directly the problem that we want to solve. <em>Example: In chess game, query can be “For the given position, will the move Qb1 makes check mate?” or “For the given position, what is the best next move to make by the white”</em></p><p><strong>Inference procedure: </strong>This is answer to the question, “how does the program find solution on its own?”. <strong>Inference procedure</strong> is the <em>algorithm</em>, that derives <strong><em>solution</em></strong> for the given <strong><em>query</em></strong>, deriving it from the <strong><em>knowledge base</em></strong> (facts, objects and relations). This is the heart of this problem solving process.</p><p><strong>Solution: </strong>This is the solution to our problem (query).</p><p>So far so good!</p><p>My next blog will cover the recipe taken from <strong><em>Artificial Intelligence: A Modern Approach</em></strong> (<strong>AIMA</strong>) a university textbook on <a href="https://en.wikipedia.org/wiki/Artificial_intelligence">artificial intelligence</a>, written by <a href="https://en.wikipedia.org/wiki/Stuart_J._Russell">Stuart J. Russell</a> and <a href="https://en.wikipedia.org/wiki/Peter_Norvig">Peter Norvig</a>. The recipe is an <strong>Inference engine </strong>with resolution algorithm.</p><p>Please click this link for my next blog: <a href="https://medium.com/@krish884854/solving-logical-problems-by-resolution-110ee0f6098b"><strong>Solving logical problems by resolution</strong></a></p><p><em>PS: This is my first blogging experience. so please comment below for any suggestions or corrections.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ed1e2332cac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[365 days of Problem solving]]></title>
            <link>https://krishna-chandran.medium.com/365-days-of-problem-solving-119dd935e77f?source=rss-40998c81c31f------2</link>
            <guid isPermaLink="false">https://medium.com/p/119dd935e77f</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Krishnakumar C]]></dc:creator>
            <pubDate>Tue, 07 Jan 2020 18:51:06 GMT</pubDate>
            <atom:updated>2020-01-07T18:51:06.747Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Day</em></strong><em> 0 | </em><strong><em>Recipes</em></strong><em> 0 | </em>Jan 7th 2020</p><p>I recently watched this movie, Julia &amp; Julie, which is about New Yorker Julie Powell, who owes to prepare all 524 recipes in Julia Child&#39;s landmark cookbook, “Mastering the Art of French Cooking.”</p><p>So, My blog is about recipes of problem solving, in which I intend to define real world problems, mathematical tools to represent them and computer algorithms to solve them.</p><p>Julie had a well defined recipe book to follow during her endeavor. But In my case, I am going to figure out the modern problems existing today, be it a climate change or urban traffic, and ways of solving them using the tools of mathematics and computer science.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=119dd935e77f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>