Evaluating bounds using Manhattan and Euclidean distances
The maximum and minimum bounds of Euclidean and Manhattan distances between n, d-dimensional arrays were calculated.
1. Data generation
Generate n, d-dimensional arrays using the following pseudo-code:
initialize empty array
for i in range(n):
append into array(d-dimensional random array)
2. Euclidean distance
Computed the minimum and maximum Euclidean distance between points using the formula:
3. Manhattan distance
Computed the minimum and maximum Manhattan distance between points using the formula:
Check out the code here.