Skip to content

The Closest Pair of Points problem is a computational geometry problem in which the task is to find the two points in a set of points in a plane that are closest to each other. The solution to this problem has numerous applications in areas such as computer graphics, geographic information systems, and pattern recognition.

Notifications You must be signed in to change notification settings

darian-catalin-cucer/closest-pair-of-points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Closest Pair of Points

This repository contains an implementation of the Closest Pair of Points algorithm in Kotlin, a modern and concise programming language. The algorithm finds the two points in a set of points with the smallest distance between them.

The implementation uses the Divide and Conquer method to efficiently solve the problem. The input points are sorted by their x-coordinate, and then the closest pair of points are found in the left and right halves of the sorted points. The closest pair of points in a strip of points within a certain distance from the dividing line is also found. The minimum of the closest pair of points found in the left and right halves and the closest pair of points in the strip is returned as the solution.

This code is open-source and contributions are welcome to improve its functionality and performance.

About

The Closest Pair of Points problem is a computational geometry problem in which the task is to find the two points in a set of points in a plane that are closest to each other. The solution to this problem has numerous applications in areas such as computer graphics, geographic information systems, and pattern recognition.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages