Research Article

A Novel Local Density Hierarchical Clustering Algorithm Based on Reverse Nearest Neighbors

Algorithm 1

RNN-LDH(X, k).
(1);
(2)GetLDH(X, k);
(3);
(4);
(5)for all
(6) if =UNLABELED
(7)  if
(8)   ;
(9)   if
(10)    ;
(11)    ;
(12)    ;
(13)   end if
(14)  else
(15)   ;
(16)  end if
(17) end if
(18)end for
(19);
(20)while (bChanged)
(21);
(22) for all
(23)  ;
(24)  if cidNoise &&
(25)   ;
(26)   bChangedTRUE;
(27)  end if
(28) end for
(29)end while
(30)return label;