What is the difference between DBSCAN and OPTICS?

Quick Overview

Compare DBSCAN and OPTICS for density-based clustering: what each algorithm outputs, how each behaves when clusters have different densities, and how flat clusters are obtained from OPTICS. It tests your understanding of core distance, reachability distance and the trade-offs between the two methods.

What is the difference between DBSCAN and OPTICS?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the difference between DBSCAN and OPTICS? Both are density-based clustering algorithms that find arbitrarily shaped clusters and label sparse points as noise. ```hint One threshold, several densities Picture one cluster that is much sparser than two dense clusters sitting close to each other. What does any single distance threshold do to that data? ``` ```hint What OPTICS stores OPTICS keeps one number per point, in a particular processing order. Work out what that number is and what a horizontal line across a plot of it would give you. ``` ### What a Strong Answer Covers - DBSCAN's parameters and output, and why one global `eps` fails when clusters have different densities - OPTICS core distance, reachability distance, and the order in which points are processed - How to read a reachability plot and the ways to extract flat clusters from it - Trade-offs in runtime, parameter sensitivity and output format, and how HDBSCAN relates to both ### Follow-up Questions - How would you choose `eps` for DBSCAN without running OPTICS? - How does `min_samples` change the shape of the reachability plot? - How does HDBSCAN select its clusters, and when would you prefer it over OPTICS? - How do DBSCAN and OPTICS behave on high-dimensional data, and what would you do about it?

Overview: Compare DBSCAN and OPTICS for density-based clustering: what each algorithm outputs, how each behaves when clusters have different densities, and how flat clusters are obtained from OPTICS. It tests your understanding of core distance, reachability distance and the trade-offs between the two methods.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What is the difference between DBSCAN and OPTICS? Both are density-based clustering algorithms that find arbitrarily shaped clusters and label sparse points as noise.

What a Strong Answer Covers Guidance

  • DBSCAN's parameters and output, and why one global eps fails when clusters have different densities
  • OPTICS core distance, reachability distance, and the order in which points are processed
  • How to read a reachability plot and the ways to extract flat clusters from it
  • Trade-offs in runtime, parameter sensitivity and output format, and how HDBSCAN relates to both

Follow-up Questions Guidance

  • How would you choose eps for DBSCAN without running OPTICS?
  • How does min_samples change the shape of the reachability plot?
  • How does HDBSCAN select its clusters, and when would you prefer it over OPTICS?
  • How do DBSCAN and OPTICS behave on high-dimensional data, and what would you do about it?