1. K-Means (The Round-Circle Sorter): You pick the number of groups (K) up front. K-Means drops K center flags, assigns every dot to its closest flag, moves each flag to the center of its group, and repeats until nothing moves. It is blazingly fast on millions of records—say, grouping 2 million supermarket shoppers—but it assumes every cluster is roughly a neat, similar-sized sphere and forces every stray outlier into some group.
2. Hierarchical Clustering (The Family-Tree Builder): Don't know how many groups exist? Hierarchical clustering starts by treating every single patient as their own tiny cluster, merges the two closest patients into a pair, then merges the next closest pair, and keeps climbing upward until everyone sits inside one giant family tree called a dendrogram [2]. Afterward, a doctor or biologist simply draws a horizontal scissors line across the tree at whatever level of detail they want—seeing 3 broad groups at the top or 12 fine-grained sub-groups lower down! Geneticists adore dendrograms for mapping evolutionary trees and tumor gene profiles.
3. DBSCAN (The Crowd-Density Explorer): Short for Density-Based Spatial Clustering of Applications with Noise, DBSCAN thinks like an urban planner looking down from an airplane at night. Instead of forcing round circles, it links any dots sitting tightly packed within a short walking distance of each other. That lets DBSCAN trace bizarre, winding shapes (like a river valley or crescent moon), automatically discover how many islands exist without guessing K, and—best of all—politely label lone stray dots out in the desert as Noise / Outliers instead of forcing them into a neighborhood they don't belong to [3].