What is the difference between DBSCAN and OPTICS?

Last updated 11 November 2026

  • DBSCAN gives one flat clustering for a fixed eps, so it fails when clusters have different densities.

  • OPTICS orders points by reachability distance, producing a reachability plot whose valleys are clusters at all eps values up to a maximum.

  • Flat labels are extracted by a horizontal cut (equivalent to DBSCAN) or the xi method. OPTICS is more robust to parameters but slower.

  • https://scikit-learn.org/stable/modules/clustering.html
  • https://www.geeksforgeeks.org/machine-learning/ordering-points-to-identify-cluster-structure-optics-using-sklearn/
  • https://medium.com/@ploychompoo.polrom/exploring-clustering-algorithms-a-comprehensive-guide-to-dbscan-and-optics-algorithms-da3aca344ecb
All Clustering interview questions