← Back to Classic ML Mind Map
⚡Flashcard Drill➔
📊 Classic MLID: dbscan-hierarchical

DBSCAN & Hierarchical Clustering

DBSCAN 与层次聚类
🎯Core Definition
DBSCAN is a density-based clustering algorithm that needs no preset cluster count KK — only two parameters, ε and minPts. The ε-neighborhood is Nε(p)={q∈D∣dist(p,q)≤ε}N_\varepsilon(p) = \{ q \in D \mid \text{dist}(p, q) \le \varepsilon \}; a core point satisfies ∣Nε(p)∣≥minPts|N_\varepsilon(p)| \ge \text{minPts}, a border point is non-core but inside some core point's ε-neighborhood, and noise points are neither.Density directly reachable: pp is a core point and q∈Nε(p)q \in N_\varepsilon(p); density reachable: a chain of core points p1,…,pmp_1, \ldots, p_m with consecutive direct reachability; density connected: some oo exists from which both pp and qq are density reachable. A cluster is a maximal set of density-connected points; noise is flagged explicitly. Complexity is O(nlog⁡n)O(n \log n) with a KD-Tree or naive O(n2)O(n^2).Hierarchical clustering (AGNES) merges the closest clusters bottom-up using linkages — single (nearest-point distance, prone to chaining), complete (farthest-point distance, noise-robust), Ward (minimum variance increase, most common); naive complexity O(n3)O(n^3).
💡Use Cases
geo-spatial clustering, image segmentation, anomaly detection (noise points are outliers), and arbitrarily shaped clusters; interviews compare it with K-Means and ask about ε/minPts tuning.
⚡Key Problems Solved
K-Means needs K, assumes convex clusters, and forces noise into clusters; DBSCAN needs no K, finds arbitrary shapes, and separates noise automatically. The cost: ε is hard to set globally for uneven density (minPts ≈ 2×dimensions is a common heuristic) and neighborhood counting degrades in high dimensions (curse of dimensionality); hierarchical clustering keeps an O(n2)O(n^2) distance matrix, unfit for large data.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of DBSCAN & Hierarchical Clustering.
Use Cases
In production engineering, what are the primary use cases for DBSCAN & Hierarchical Clustering and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Define core, border, and noise points in DBSCAN; how do larger/smaller ε and minPts change the clustering?
2
Distinguish density-reachable from density-connected; why is reachability asymmetric while connectedness is symmetric?
3
Core differences between DBSCAN and K-Means; which data shapes suit each; why does DBSCAN fail on uneven density?
4
Single, complete, and Ward linkage criteria in hierarchical clustering; what is the chaining effect?
5
Time complexity of DBSCAN and index acceleration; why is ε hard to choose in high dimensions?
📖 In-depth Guide:📄 clustering-and-knn →
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "DBSCAN & Hierarchical Clustering"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
⚡
Test muscle memory on this topic via 3-Layer Flashcards
Active Recall: Mentally formulate Prompt ➔ Math Derivation ➔ Benchmark Implementation in 3 minutes.
🎯 Drill This Card Now➔
← Previous CardK-Means++ & K SelectionNext Card →EM Algorithm

🔗 More Classic ML Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/ML/card/dbscan-hierarchical