Computing distance matrix

96 Views Asked by At

I want to find out how many distance calculations are necessary to compute the n × n distance matrix for n points? Is there something like a basic rule using only variables?