Skip to content

C++ program to find the distance between closest pair of points in three-dimensional space

Notifications You must be signed in to change notification settings

simonkahan/closest-pair-3d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Closest Pair of Points in 3D

A project I prepared in school for BLG 336E Analysis of Algorithms II course. It finds the distance between the closest pair of points in three dimensional space using divide-and-conquer algorithm. C++ programming language is used to develop the project. The compiled program needs a file name as argument which indicates the 3D coordinates of the points. The further and detailed information about the project can be found in the report file in report folder. The report reveals the time complexity is found as O(nlogn) in both theoretical and empirical analyses.

Requirements

A C++ compiler with C++11 support is required to compile the source files. The data files must be formatted as follows:
First line: The total number of the points
Other lines: Each line specifies a point with X, Y and Z axes as integers with a space between axes.

You can examine the files in data folder to understand the data format.

About

C++ program to find the distance between closest pair of points in three-dimensional space

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 100.0%