<?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 Yagnesh Prajapati on Medium]]></title>
        <description><![CDATA[Stories by Yagnesh Prajapati on Medium]]></description>
        <link>https://medium.com/@yagneshprajapati?source=rss-d527366654d1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4QC2wjI9p4mBxmCm</url>
            <title>Stories by Yagnesh Prajapati on Medium</title>
            <link>https://medium.com/@yagneshprajapati?source=rss-d527366654d1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 12:05:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yagneshprajapati/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[Artificial Exploring the Exciting World of Artificial Intelligence in Everyday Life]]></title>
            <link>https://medium.com/@yagneshprajapati/rtificialexploring-the-exciting-world-of-artificial-intelligence-in-everyday-life-4a4ddc6e0d9d?source=rss-d527366654d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a4ddc6e0d9d</guid>
            <dc:creator><![CDATA[Yagnesh Prajapati]]></dc:creator>
            <pubDate>Fri, 02 Jun 2023 10:13:53 GMT</pubDate>
            <atom:updated>2023-06-02T10:14:26.937Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ww-ei5cz4XEgz83npDHXDg.jpeg" /></figure><blockquote>Artificial Intelligence (AI) has revolutionized numerous aspects of our lives, from voice assistants to recommendation systems. In this article, we will dive into some of the most exciting applications of AI that are shaping our everyday experiences. Join us on a journey through the cutting-edge developments that are making AI an integral part of our lives.</blockquote><ol><li><strong>AI in Personalized Healthcare:</strong> The field of healthcare is being transformed by AI, enabling personalized diagnostics, early disease detection, and precision medicine. We will explore how AI algorithms can analyze medical data to provide accurate diagnoses, assist in surgical procedures, and predict health risks.</li><li><strong>AI-Powered Virtual Assistants:</strong> Virtual assistants such as Siri, Alexa, and Google Assistant have become an integral part of our daily routines. We will discuss the advancements in natural language processing and machine learning that have made these assistants smarter, more conversational, and capable of handling complex tasks.</li><li><strong>AI in Autonomous Vehicles:</strong> Self-driving cars are no longer a distant dream. AI algorithms combined with advanced sensors and cameras are powering the future of transportation. We will delve into the technology behind autonomous vehicles, their impact on road safety, and the challenges that lie ahead.</li><li><strong>AI in Finance:</strong> The finance industry is leveraging AI to enhance fraud detection, algorithmic trading, and personalized financial advice. We will explore how AI-powered chatbots are revolutionizing customer service and how machine learning algorithms are being used for credit scoring and risk assessment.</li><li><strong>AI and Smart Homes:</strong> Smart home devices are becoming increasingly prevalent, and AI plays a crucial role in making them intelligent and responsive. We will discuss how AI algorithms enable voice-controlled home automation, energy optimization, and personalized experiences within our living spaces.</li></ol><blockquote><strong>Conclusion:</strong><br>Artificial Intelligence has emerged as a disruptive force, transforming various aspects of our lives. From healthcare and virtual assistants to autonomous vehicles and finance, the applications of AI are vast and rapidly evolving. As we embrace the exciting possibilities, it’s crucial to explore the ethical considerations and ensure responsible deployment of AI technologies. The future holds endless opportunities for AI to enhance our everyday experiences, and we are just scratching the surface of its potential.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a4ddc6e0d9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LCS(Longest common sub sequence)]]></title>
            <link>https://medium.com/@yagneshprajapati/lcs-longest-common-sub-sequence-c910288e66f8?source=rss-d527366654d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c910288e66f8</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Yagnesh Prajapati]]></dc:creator>
            <pubDate>Mon, 02 Sep 2019 15:24:07 GMT</pubDate>
            <atom:updated>2019-09-02T15:24:07.188Z</atom:updated>
            <content:encoded><![CDATA[<p>A longest subsequence is a sequence that appears in the same relative order, but not necessarily contiguous(not substring) in both the string.</p><p><strong>where it is used?</strong></p><p><strong>Use of LCS:-</strong>For finding DNA as string over finite set{A,C,G,T}or comparing two string(in this case DNA) and finding the Match.</p><p>so here,is the case</p><p><strong>case 1:- </strong>0, i=0,j=0</p><p><strong>case 2 (if same character):-1+</strong>L[i-1,j-1] if <strong>-&gt;</strong>a[i]==b[j]</p><p><strong>case 3 (if different character):-</strong>Max(L[i,j-1],L[i-1,j]) if<strong>-&gt;</strong>a[i]!=b[j]</p><p><strong>Example:-</strong></p><p>String s1=”ABCDA”</p><p>String s2=“ACBDEA“</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*qHfsXVPVrE52-IezOM8-iQ.png" /><figcaption>LCS</figcaption></figure><p><strong>LCS:-</strong>ACDA</p><p><strong>Length:-</strong>4</p><p>Start from bottom right corner and track the path and mark the cell from which cell the value is coming and whenever you go diagonal ( means last character of both string has matched, so we reduce the length of both the strings by 1, so we moved diagonally), mark those cells, this is our answer.</p><p><strong>Code:-</strong></p><p>#include&lt;iostream&gt;</p><p>#include&lt;string.h&gt;</p><p>using namespace std;</p><p>int max(int a,int b)</p><p>{</p><p>return(a&gt;b)?a:b;</p><p>}</p><p>int lcs(char *x,char *y,int l1,int l2)</p><p>{</p><p>int L[l1+1][l2+1];</p><p>int i,j;</p><p>for (i=0;i&lt;=l1;i++)</p><p>{</p><p>for(j=0;j&lt;=l2;j++)</p><p>{</p><p>if(i==0 || j==0)</p><p>{</p><p>L[i][j]=0;</p><p>}</p><p>else if(x[i-1]=y[j-1])</p><p>{</p><p>L[i][j]=L[i-1][j-1]+1;</p><p>}</p><p>else</p><p>{</p><p>L[i][j]=max(L[i-1][j],L[i][j-1]);</p><p>}</p><p>}</p><p>}</p><p>return L[l1][l2];</p><p>}</p><p>int main()</p><p>{</p><p>char s1[]=”ABCDA”;</p><p>char s2[]=”ACBDEA”;</p><p>int l1=strlen(s1);</p><p>int l2=strlen(s2);</p><p>cout&lt;&lt;”Length of the LCS=”&lt;&lt;lcs(s1,s2,l1,l2);</p><p>return 0;</p><p>}</p><p><strong>Output:-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*_XcWNYy1BUNQvSUU_FzYCA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c910288e66f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Change Problem using Greedy method]]></title>
            <link>https://medium.com/@yagneshprajapati/making-change-problem-using-greedy-method-152974d59f08?source=rss-d527366654d1------2</link>
            <guid isPermaLink="false">https://medium.com/p/152974d59f08</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Yagnesh Prajapati]]></dc:creator>
            <pubDate>Sun, 01 Sep 2019 15:23:21 GMT</pubDate>
            <atom:updated>2019-09-02T17:27:13.106Z</atom:updated>
            <content:encoded><![CDATA[<p>Making Change problem is nothing but finding the minimum number of coins (of certain denominations) that add up to a given amount of money(Total money).</p><p>Greedy method is used for obtaining optimum solution.(But not necessary that GREEDY will always give Optimum solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NyAzSMfHmzUVv4ve_iDy6w.jpeg" /></figure><h3><strong><em>Greedy method:</em></strong></h3><p>For some type of coin system a greedy approach works. The values of coins will be like { 1,5,10,25,50}.</p><p>Ex:-1</p><p>In our algorithm we always choose the biggest denomination, subtract the all possible values and going to the next denomination.</p><p>so,we will use greedy algorithm to give the least amount of coins.</p><p>suppose a customer wants change of 41 Rs</p><p>41–25=16 -&gt; [25] so,take coin of 25.</p><p>16–10=6 -&gt;[25][10]</p><p>6–5=1 -&gt;[25][10][5]</p><p>1–1=0 -&gt;[25][10][5][1]</p><p>so here,is the optimal solution of 41 Rs change is 25,10,5,1=41 Rs.</p><p><strong>But always That is not the case.</strong></p><p>Ex:-2</p><p>The values of coins will be like { 4,10,25}.</p><p>41–25=16 -&gt;[25]</p><p>16–10=6 -&gt;[25][10]</p><p>6–4=2 -&gt;[25][10][4]</p><p>2- ??</p><p>so here is the problem,or error message.</p><p>So here is the optimal solution is [25][4][4][4][4] =41 Rs.</p><p><strong>CODE:-</strong></p><p>#include&lt;iostream&gt;</p><p>using namespace std;</p><p>int main()</p><p>{</p><p>int deno[]={500,200,100,50,10,1},n,i=0,j;</p><p>cout&lt;&lt;”Enter Total:”;</p><p>cin&gt;&gt;n;</p><p>while(n&gt;0)</p><p>{</p><p>if(n&gt;=deno[i])</p><p>{</p><p>n=n-deno[i];</p><p>cout&lt;&lt;deno[i]&lt;&lt;” “;</p><p>}</p><p>else</p><p>{</p><p>i++;</p><p>}</p><p>}</p><p>return 0;</p><p>}</p><h3>Output:-</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*ZGBTm1nNukCI2yQOAnNcJw.png" /></figure><p>You can also use Dynamic programming for finding optimal solution.</p><p>DYNAMIC PROGRAMMING always gives optimal solution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=152974d59f08" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>