A program to find the closest pair of points in an n-dimensional space R^n using a divide and conquer approach.
- Ruby versi 3.0.4p208 or higher
- gnuplot
- Make sure Ruby is installed on your computer. If Ruby is not installed, you can install it by following the steps here
- Also, ensure that Gnuplot is installed on your computer. If not, you can install it by following the steps here
- Open the terminal in the src folder
- Run the command
gem install gnuplot
- Run the command
ruby main.rb
- First, the user will be prompted to enter a number representing the desired number of points to be generated.
- The user will be asked to enter a number representing the dimension.
- The program will display the closest pair of points along with their distance and also show a plot if the dimension is 2 or 3.
Haidar Hamda / 13521105