<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Algo/DS on RaviKiran Kilingar</title>
    <link>https://rkilingar.me/categories/algo/ds/</link>
    <description>Recent content in Algo/DS on RaviKiran Kilingar</description>
    <image>
      <url>https://rkilingar.me/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://rkilingar.me/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- gohugo.io</generator><atom:link href="https://rkilingar.me/categories/algo/ds/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Taxi Cab Geometry and Manhattan Distance</title>
      <link>https://rkilingar.me/posts/taxicab-geometry/</link>
      <pubDate>Sat, 29 Jan 2022 10:07:30 +0530</pubDate>
      
      <guid>https://rkilingar.me/posts/taxicab-geometry/</guid>
      <description>Problem Given two points $P_1$ &amp;amp; $P_2$ in a grid, and you need to reach from one of the cells to the other, Allowed moves will be up, down, left and right. What is the minimum steps required to reach the destination?
TaxiCab Geometry and Manhattan Distance Going by euclidean geometry in a 2D surface, distance between any given two points $(x_1,y_1)$ and $(x_2,y_2)$ is:
$d = \sqrt{(y_2^{2}-y_1^{2})-(x_2^2-x_1^2)}$
This is the straight line distance drawn as a diagonal between the two points.</description>
    </item>
    
  </channel>
</rss>
