If the goal is to find all points within a specified distance ? of point y, y = x, explain how you could use the triangle inequality and the al- ready calculated distances to x to potentially reduce the number of dis- tance calculations necessary? Hint: The triangle inequality, d(x, z) ? d(x, y) + d(y, x), can be rewritten as d(x, y) ? d(x, z) ? d(y, z).

You are given a set of points S in Euclidean space, as well as the distance of
each point in S to a point x. (It does not matter if x ? S.)

Unfortunately, there is a typo and a lack of clarity in the hint. The
hint should be phrased as follows:
Hint: If z is an arbitrary point of S, then the triangle inequality,
d(x, y) ? d(x, z)+d(y, z), can be rewritten as d(y, z) ? d(x, y)?d(x, z).
Another application of the triangle inequality starting with d(x, z) ?
d(x, y) + d(y, z), shows that d(y, z) ? d(x, z) ? d(x, y). If the lower
bound of d(y, z) obtained from either of these inequalities is greater
than , then d(y, z) does not need to be calculated. Also, if the upper
bound of d(y, z) obtained from the inequality d(y, z) ? d(y, x)+d(x, z)
is less than or equal to , then d(x, z) does not need to be calculated.

Computer Science & Information Technology

You might also like to view...

Match the following terms to their meanings:

I. Object II. Object model III. Collection IV. Name property V. Caption property A. Used to reference an object in the program code B. Organizes all objects into an object hierarchy C. Represents an element, such as a worksheet, cell, or chart D. Controls the text that appears on a form's title bar E. A group of objects with similar characteristics

Computer Science & Information Technology

The labels located at the bottom of the workbook window that identify each worksheet are called worksheet ________

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology