<?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 Atharv Joshi on Medium]]></title>
        <description><![CDATA[Stories by Atharv Joshi on Medium]]></description>
        <link>https://medium.com/@atharvjoshi8149?source=rss-1a8cf56575c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IquJDyu6UIECRh1y</url>
            <title>Stories by Atharv Joshi on Medium</title>
            <link>https://medium.com/@atharvjoshi8149?source=rss-1a8cf56575c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 15:52:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atharvjoshi8149/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[Hamiltonian Path and Cycle in the graph using Backtracking.]]></title>
            <link>https://atharvjoshi8149.medium.com/hamiltonian-path-and-cycle-in-the-graph-using-backtracking-d261ddf5b1ee?source=rss-1a8cf56575c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/d261ddf5b1ee</guid>
            <category><![CDATA[hamiltonian-path]]></category>
            <category><![CDATA[graph-theory]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[graph]]></category>
            <category><![CDATA[data-structures]]></category>
            <dc:creator><![CDATA[Atharv Joshi]]></dc:creator>
            <pubDate>Wed, 21 Apr 2021 05:54:22 GMT</pubDate>
            <atom:updated>2021-04-21T06:08:21.774Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Hamiltonian Path and Cycle in the Graph using Backtracking.</em></h3><blockquote><strong><em>Hamiltonian path and cycle are one of the important concepts in graph theory</em></strong><em>. In this blog, we will try to find out all the Hamiltonian paths and detect the hamiltonian cycle in the graph.</em></blockquote><p><em>So firstly we will try to understand the hamiltonian path. </em><strong><em>Hamiltonian Path in a directed or undirected graph is a path that visits every vertex or edge only once. </em></strong><em>Consider the following graph and try to find out all hamiltonian paths in it.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DCCIiKY0YVGGdK9b2n_G8w.png" /><figcaption><em>(a) Graph with all hamiltonian paths</em></figcaption></figure><p><em>Now our task is to print all the hamiltonian paths in this graph. How are we going to do that? Notice one thing that we always try to visit non-visited vertex. e.g </em><strong><em>0 -&gt; 1 -&gt; 2 -&gt; 3 -&gt; 4</em></strong><em> that means every vertex is getting visited once only.</em></p><p><em>But lets consider the path </em><strong><em>3 -&gt; 2 -&gt; 1 -&gt; 0 . </em></strong><em>Here vertex </em><strong><em>4</em></strong><em> remains non-visited.</em><strong><em> </em></strong><em>From vertex </em><strong><em>0 </em></strong><em>there is no path to non-visited vertex 4. In order to visit vertex </em><strong><em>4</em></strong><em> , we have to visit </em><strong><em>1</em></strong><em> again and then visit </em><strong><em>4</em></strong><em> so the path will look like this </em><strong><em>3 -&gt;2 -&gt; 1-&gt; 0-&gt; 1 -&gt; 4, </em></strong><em>and according to the definition of the Hamiltonian path, it is an invalid path. I hope it is clear till now. Below is the c++ implementation for printing all the Paths.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*AjxfAz1D-OZusAcAEY1qSg.png" /></figure><p><em>In the hamiltonian paths</em><strong><em> </em></strong><em>function, we are going to explore paths starting from each vertex.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xmRq6JhETCoocyKp67brOQ.png" /><figcaption><em>Read the comments for understanding.</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4dMHR4WupwiZz56tquQWw.png" /></figure><p><em>The output will print all the hamiltonian paths in a graph.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*IhfRKe9gzomH8bcY0jkPGQ.png" /></figure><p><em>Hamiltonian Cycle is also a </em><strong><em>hamiltonian path</em></strong><em> with the edge between the </em><strong><em>last </em></strong><em>and </em><strong><em>starting </em></strong><em>vertex of the path.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tpszhksigvySaXoRXkLOJg.png" /></figure><blockquote><em>The code for checking the hamiltonian cycle is almost similar. The only thing we have to do is to check Is there an edge between the last and first vertex of the path. Below is the </em><strong><em>C++</em></strong><em> implementation for Hamiltonian Cycle.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*oIxp7mhN3pk7zd1IQhX9ag.png" /><figcaption><em>The graph is represented with an adjacency list</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*8-iTk7KgPRKl2HenDn81Jg.png" /></figure><p><em>Notice we are calling the ‘ </em><strong><em>isCycleutil()</em></strong><em> ’ function with ‘</em><strong><em>0</em></strong><em>’ as a starting vertex, but we can start with any vertex as we are checking for the cycle. Because If there is a cycle in the graph, It can be detected from any vertex. You can start any vertex as well, starting vertex does not matter here.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OjURy5sX4dqvbxI9l6SxVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0VtGUgaBwHAv4PBG6AK4ug.png" /><figcaption><em>checkEdge() will check for an edge between the last and first vertex of a hamiltonian path</em></figcaption></figure><p><em>I hope this helped you to understand the Hamiltonian Cycle and Paths concept.</em></p><p><em>If you liked it Clap and comment down your feedback in the comment section.</em></p><p><em>Click on the </em><strong><em>Follow </em></strong><em>button for more amazing posts.</em></p><p><em>Thanks for reading it, Bye!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d261ddf5b1ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Technology Basics For Beginners]]></title>
            <link>https://atharvjoshi8149.medium.com/web-technology-basics-for-beginners-47ba83e47800?source=rss-1a8cf56575c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ba83e47800</guid>
            <category><![CDATA[website]]></category>
            <category><![CDATA[http-request]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[world-wide-web]]></category>
            <dc:creator><![CDATA[Atharv Joshi]]></dc:creator>
            <pubDate>Mon, 12 Apr 2021 05:31:59 GMT</pubDate>
            <atom:updated>2021-04-12T05:31:59.246Z</atom:updated>
            <content:encoded><![CDATA[<p>When I started learning web development, I wasn’t aware of the core basics of the Web or How the web works? How it all comes under the WWW and how it works in a flow. This blog mainly focuses on the flow of the web and how things are interconnected.</p><p><strong>Internet </strong>is a network in which all computers are connected to each other in order to share information(Images, Videos, Audio, Files, etc.) with each other.</p><p><strong>WWW</strong>(World Wide Web) is a service on top of the Internet which lets us access Web Pages stored on different Web servers across the world.WWW and Internet are not the same things.</p><p>Now let&#39;s understand WWW. Web pages are written in <strong>HTML</strong>(HyperText Markup Language) and inter-connected with <strong>hyperlinks. </strong>A single webpage has its online address called <strong>URL</strong>(Uniform Resource Locator) and a collection of such Webpages is called a Website. Visualize <strong>WWW </strong>as a book of electronic documents called<strong> Web Pages</strong> interconnected with<strong> hyperlinks. </strong>These webpages are accessed using a web browser (Chrome, Firefox, Safari, Edge, and many more…). You can read more about WWW <a href="https://www.javatpoint.com/what-is-world-wide-web">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*aKJbvNTGJF6-PAn8mHrRZA.png" /><figcaption>Collection of Webpages stored on servers across the world and connected with each other using hyperlinks.</figcaption></figure><p>Consider an example that a website with the URL <a href="http://www.example.com/">www.example.com</a> is hosted on some server whose IP address is 172.16.254.1, which means all the webpages associated with this website are stored on a server with IP 172.16.254.1</p><p>Now if we want to visit this website, We open a browser and type an URL i.e <a href="http://www.example.com/">www.example.com</a> and we see a website in our browser. But understanding the process behind this is very interesting.</p><ol><li>When we type an URL in a search bar, the browser sends it to the <strong>DNS</strong>(Domain Name System) server.</li><li><strong>DNS </strong>will convert a domain name to its associated IP address. So we can say that with the help of <strong>DNS</strong>, the browser will know the IP address of a server where eample.com is hosted i.e 172.16.254.1</li><li>So now the browser(<strong>Client</strong>) knows the <strong>server </strong>where webpages of <a href="http://www.example.com/">www.example.com</a> are stored, the browser will send a request to the server and that server will send a response to the browser(<strong>Client</strong>) and here we come to the concept called<strong> client-server</strong> architecture.</li></ol><p>There are already a lot of blogs are available on the internet about the client-server model. You can read more about it <a href="https://www.geeksforgeeks.org/client-server-model/">here</a>.</p><p>I hope it helped you in some way. Thanks for reading it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ba83e47800" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>