Describe the potential problems with this algorithm if there are dupli- cate objects in the data set. Assume the distance function will only return a distance of 0 for objects that are the same.
Consider the problem of finding the K nearest neighbors of a data object. A
programmer designs Algorithm 2.1 for this task.
There are several problems. First, the order of duplicate objects on a
nearest neighbor list will depend on details of the algorithm and the
order of objects in the data set. Second, if there are enough duplicates,
the nearest neighbor list may consist only of duplicates. Third, an
object may not be its own nearest neighbor.
You might also like to view...
Which of the following is a protocol monitor that ships with Microsoft Windows?
A) Active Ports B) Net Brute C) SAINT D) Net Stat
Generally, to continue a JCL statement, just break after a __________ and resume coding on the next line.
a. right parenthesis b. semicolon c. key word d. comma