, a lot of computational power is wasted in two
ways. First, as pointed out by Ragnelmam in [127],
the raster scanning procedure propagates the information further
than needed. This is especially true for pattern spaces in higher
dimensions, where 2D scans are performed. Secondly, a large
part of the computational cost is due to the sorting procedure.
,
and
therefore better candidates than l. This is easily tested by
checking that icur<k. Secondly, label l should not belong
to kNN(p) yet. If
dcur(p) < d, it obviously does not.
Otherwise, i.e when
dcur(p) = d, all labels NNi(p) with