This paper proposes an O (N × log N) algorithm for the one-dimensional clustering. F-Measure achieved by the A.1D-C is more than 0.98 for instances of sizes 10 000 000. The runtime of A.1D-C is a small fraction of a second for the input of size 100 000.