How do I find the distance between two points?
You need to provide more context.
But if you are talking about two points in the plane you can use the Pythagoras theorem. d = ( ( x_2 - x_1 )^2 + ( y_2 - y_1 )^2 )^½
If you are talking about two points in a 3 dimensional space you will need a generalization of Pythagoras. d = ( ( x_2 - x_1 )^2 + ( y_2 - y_1)^2 + (z_2 - z_1)^2  )^½
Thanks, but I was interested in the Manhattan distance. How can I compute it?
The Manhattan distance, also known as the L1 distance, is a measure of the absolute differences between two points in a grid-based space, such as a city grid. To calculate the Manhattan distance between two points (x1, y1) and (x2, y2), you simply add the absolute differences of their coordinates:

d = |x1 - x2| + |y1 - y2|

In a 3-dimensional space, you would extend the formula to:

d = |x1 - x2| + |y1 - y2| + |z1 - z2|