AIMech AI

CLARANS clustering

Algorithms AIMech:CLARANSClustering DRAFT
Aliases: CLARANS, Clustering Large Applications based on RANdomized Search
A randomized medoid-clustering algorithm that searches fixed-size sets of representative observations by accepting improving single swaps and restarting after a budget of unsuccessful neighbor trials.
Identity Notes & Concept Scope CLARANS searches the graph of all k-object medoid sets. It samples possible swaps at each state rather than confining all medoids to a fixed subsample as CLARA does, and differs from PAM’s exhaustive best-swap search. Medoids are actual observations, unlike k-means centroids. The record covers the original 1994 clustering method, not its SD/NSD spatial data-mining wrappers or the expanded 2002 polygon-handling methods.

Claims & Grounded Evidence

2 Claims
Mechanism #method
For n observations, supplied dissimilarities and 1<=k<n, represent a search state by k selected observations M. Assign each observation to a nearest medoid and define F(M)=sum_(x in X)min_(m in M)d(x,m), over all n observations. A neighboring state replaces one selected medoid with one unselected observation, giving k(n-k) possible neighbors. Begin a run at an arbitrary state. Sample a random neighbor; if its total cost is strictly lower, accept it and reset the unsuccessful-trial counter. Otherwise increment that counter. After maxneighbor unsuccessful trials at the current state, compare its cost with the best completed run and restart until numlocal runs have finished. Return the lowest-cost retained state. Swaps are judged by the full objective difference, including the observation whose medoid role is removed.
Limitation #source-convention-check
Curator calculation: with observations {0,6,10,11}, absolute distance and medoids {0,10}, swapping 0 for 6 increases the full cost from 5 to 7. Summing changes only over the old nonmedoids gives -4 and misses the removed medoid’s contribution +6. This demonstrates why the full graph-state objective, not that restricted sum, must govern acceptance. The exact calculation is saved in research/discovery/metric-source-boundaries.py.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:UnsupervisedClustering
Unsupervised Clustering
related_match CLARANS is a specified medoid-search procedure for grouping unlabeled observations. The AIO target is a clustering task; this method-to-task relation is not equivalence or subclass membership.

Evidence Sources & Primary Literature

1 Source
Source ID Publication / Document Type / Access Reference & Checksum
method-source
Raymond T. Ng, Jiawei Han
primary paper
full_text
ID: https://www.vldb.org/dblp/db/conf/vldb/vldb94-144.html
sha256:de9f91b1e1ee…

Ontology & Grounding Topology

Open in interactive network graph →
CONCEPT KIND Algorithms AIMech:CLARANSClustering CLARANS clustering 2 claims · 1 source AIO GROUNDING AIO:UnsupervisedClustering (1)

Curation Provenance

Curator: Antigravity
Method: ai_assisted
Model: Claude Opus 4.6
Created: 2026-10-11T09:58:22Z
Updated: 2026-11-04T14:15:32Z
Source File: data/curated/CLARANSClustering.yaml · Schema: curated_concept.yaml

Explore across X-Mech

Related computational & biological Mechs: Embedding Map Network Graph ProteinTraitsMech (ESM-2 pLM) DUFMech (Domain pLM) TraitMech CultureMech All 14 X-Mech Repositories