Program that finds the closest pair(s) of points in d-dimensions with divide and conquer algorithm.
Within set of points in d-dimensions, we could find the closest pair of points using brute force or divide and conquer algorithm. This program uses divide and conquer to find the closest pair(s) and the comparison with brute force algorithm.
- File input and output
- 3D points visualization
- Closest pair(s) in d-dimensions
- Python3
- Matplotlib
- Clone this repository
$ git clone https://github.com/melvinkj/Tucil2_13521052_13521094.git
- Run the program by running this command in terminal
$ python src/main.py
| .gitignore
| README.md
|
+---output
| tc1.txt
| tc10.txt
| tc11.txt
| tc12.txt
| tc2.txt
| tc3.txt
| tc4.txt
| tc5.txt
| tc6.txt
| tc7.txt
| tc8.txt
| tc9.txt
|
+---src
| BruteForce.py
| DivideAndConquer.py
| IO.py
| main.py
| Utils.py
|
|
\---test
2d.txt
3d.txt
NIM | Nama |
---|---|
13521052 | Melvin Kent Jonathan |
13521094 | Angela Livia Arumsari |