The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • US Battery as a Service Market Shifts Toward Fleet-Based Energy

  • The Startling Truth: Why Americans Distrust AI with Their Health

  • This Crucial Deadline for Banks Is Closer Than You Think

  • Baffling: CrowdStrike’s $500 Million AI Bet Reshapes Cybersecurity

  • This Crucial Autonomous Driving Rule Could Cost You Everything

  • Baffling: Microsoft AI CEO Demands Halt to Conscious AI Development

  • O seară în ritmul tău: atmosfera divertismentului de cazinou pe internet

  • Outrageous: AppLovin Hit With Lawsuit Over AI Claims — What Investors Need to Know

  • 9 Critical Ways AI Investment Fraud Is Quietly Draining Your Bank Account

  • Is the AI Bubble Bursting? OpenAI’s Funding Woes Revealed

Calculators and Calculations
Home›Calculators and Calculations›How to calculate manhattan distance

How to calculate manhattan distance

By Matthew Lynch
September 16, 2023
0
Spread the love

Introduction:

Manhattan distance, also known as city block distance or L1 distance, is a simple yet effective metric used for calculating the distance between two points in a real-world grid-like path. It’s named after the Manhattan borough of New York City, which has a grid layout. In this article, we will walk you through the process of calculating Manhattan distance step by step.

What is Manhattan Distance?

Manhattan distance is a way of measuring the distance between two points on a grid by moving only along the horizontal and vertical grid lines—think of moving like a car in a city, restricted by streets aligned north-south and east-west. The concept applies well to various computational problems, especially in fields such as robotics, computer vision, and pathfinding algorithms.

Calculating Manhattan Distance:

Before we move onto the actual calculation process, let’s refresh our memories on some crucial terminology.

1. Point: A point on a grid is represented by its Cartesian coordinates (x, y).

2. Axes: The grid system has two axes: x-axis (horizontal) and y-axis (vertical).

3. Distance: The total number of units moved along both axes to reach from one point to another.

Given two points A(x1, y1) and B(x2, y2), the Manhattan distance formula is as follows:

Manhattan Distance = |x2 – x1| + |y2 – y1|

Here’s a step-by-step guide for calculating the Manhattan distance:

Step 1: Determine the coordinates of both points in the format (x, y). For example, Point A (4, 3) and Point B (8, 9).

Step 2: Calculate the difference in their x-coordinates (x2 – x1):

8 – 4 = 4.

Step 3: Calculate the difference in their y-coordinates (y2 – y1):

9 – 3 = 6.

Step 4: Add the absolute values of these differences:

|4| + |6| = 10.

Hence, the Manhattan distance between Point A and Point B is 10 units.

Example Problem:

Let’s work through an example problem to help solidify your understanding of calculating Manhattan distance.
Assume you are given two grid coordinates for points A and B as follows:

Point A: (3, 7)

Point B: (14, 2)

Using the formula mentioned above (|x2 – x1| + |y2 – y1|):

Manhattan Distance = |14 – 3| + |2 – 7|

= |11| + |-5|

= 11 + 5

= 16

So, the Manhattan distance between point A and point B is equal to 16 units.

Conclusion:

Calculating Manhattan distance is straightforward once you know the formula. It’s a powerful technique with countless applications in fields like robotics and artificial intelligence. With this newfound skill under your belt, you can now confidently tackle related tasks!

Previous Article

How to calculate maneuvering speed

Next Article

How to calculate manufacturing cost

Matthew Lynch

Related articles More from author

  • Calculators and Calculations

    How to Calculate Return on Capital

    October 6, 2023
    By Matthew Lynch
  • Calculators and Calculations

    How is social security calculated when you retire

    September 29, 2023
    By Matthew Lynch
  • Calculators and Calculations

    How to calculate CPI

    September 18, 2023
    By Matthew Lynch
  • Calculators and Calculations

    How to calculate kd ratio

    September 15, 2023
    By Matthew Lynch
  • Calculators and Calculations

    How to calculate total liabilities

    October 1, 2023
    By Matthew Lynch
  • Calculators and Calculations

    How to calculate volumetric weight

    October 2, 2023
    By Matthew Lynch

Search

Login & Registration

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2026 Matthew Lynch. All rights reserved.