Skip to content

Conversation

Tarun2605
Copy link

@Tarun2605 Tarun2605 commented Aug 28, 2025

Pull Request: Manhattan Distance & Closest Pair Algorithm

Summary

I have implemented Manhattan distance calculation functionality and also finding the closes pair of points when we are given a list of points in d dimensions

Key Contributions

1. Manhattan Distance Function

  • It will take two parameters a and b that will return the distance between the manhattan distance between them
  • Time complexity: O(d) where d is the dimenstion

2. Minimum Manhattan Distance Algorithm

  • This algorithm takes a list of points of d dimension and returns the shortest manhattan distance among the pairs
  • Optimum Time Complexity O(n log n · 2^d) where n is the number of points given in the list and d is the dimension of the points

@Tarun2605 Tarun2605 changed the title Manhattan Distances Manhattan Distance & Closest Pair Algorithm Aug 28, 2025
@Tarun2605 Tarun2605 marked this pull request as draft August 28, 2025 10:25
@Tarun2605 Tarun2605 marked this pull request as ready for review August 28, 2025 10:26
@lazarljubenovic
Copy link

Write the description yourself.

@Tarun2605
Copy link
Author

You mean the PR description? Sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants