This paper proposes two algorithms for clustering data, which are variable-sized sets of elementary items. An example such data occurs in the analysis a medical diagnosis, where goal is to detect human subjects who share common diseases possibly predict future illnesses from previous history. The first proposed algorithm based on K-medoids and second extends random swap algorithm, has proven be...