Run DBSCAN with ε=2 and minPts=4 (counting the point itself) on the 1-D points {0,1,2,3,5,7,8,9,10,20}. Label each point as core, border or noise. What happens to the point 5?

Unsupervised learning, DBSCAN
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can count neighbourhoods carefully, and whether you know that border points can be claimed by more than one cluster.

Key idea

A point is core if at least minPts points (itself included) lie within distance ε. Cores that are within ε of each other join the same cluster. A border point is assigned to whichever cluster reaches it first.

Steps

  1. Count the points within distance 2 (inclusive): point 0 has {0,1,2}, 3 points. Point 1 has {0,1,2,3}, 4 points. Point 2 has {0,1,2,3}, 4. Point 3 has {1,2,3,5}, 4.
  2. Continue: point 5 has {3,5,7}, 3. Point 7 has {5,7,8,9}, 4. Points 8 and 9 each have 4 (for example {7,8,9,10}). Point 10 has {8,9,10}, 3. Point 20 has only itself.
  3. Core points: 1,2,3,7,8,9. Non-core: 0,5,10,20.
  4. Cores 1, 2, 3 are within 2 of each other, so they form one cluster. Cores 7, 8, 9 form another. The cores 3 and 7 are 4 apart, so the two clusters do not join.
  5. Border points: 0 (within 2 of core 1) and 10 (within 2 of core 8). The point 5 is within 2 of both core 3 and core 7, so it is a border point of both clusters. DBSCAN gives it to whichever cluster is expanded first, so the label depends on the processing order. Noise: 20.

Common mistakes

How long your answer should be

Half a page; 4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Unsupervised learning: Three 1-D clusters are C1={1,3}, C2={7,9,11} and C3={20,24}. Using the Euclidean distance, compute the Davies–Bouldin index. Is a larger or smaller value better?
Next in Unsupervised learning: Four items a,b,c,d have dissimilarities ab=2, ac=5, ad=9, bc=3, bd=8, cd=4.5. If you run agglomerative clustering with single, complete and average linkage, what are the merge order and heights for each, and which linkage shows the chaining effect?