Related Experiment Video
Updated: Mar 10, 2026

Large-scale Reconstructions and Independent, Unbiased Clustering Based on Morphological Metrics to Classify Neurons in Selective Populations
Published on: February 15, 2017
Ckmeans.1d.dp: Optimal k-means Clustering in One Dimension by Dynamic Programming
1Department of Computer Science, New Mexico State University, United States.
The new dynamic programming algorithm guarantees optimal one-dimensional clustering, unlike the standard k-means method. This R package, Ckmeans.1d.dp, offers improved accuracy and speed for cluster analysis.
Area of Science:
- Computer Science
- Statistics
- Data Mining
Background:
- The heuristic k-means algorithm is a widely adopted method for cluster analysis.
- However, k-means does not guarantee an optimal clustering solution.
- This limitation affects the reliability of clustering results in various applications.
Purpose of the Study:
- To develop a novel algorithm for optimal one-dimensional clustering.
- To address the sub-optimality issue inherent in heuristic clustering methods.
- To provide a computationally efficient and accurate clustering tool.
Main Methods:
- A dynamic programming approach was devised for one-dimensional clustering.
- The algorithm was implemented as an R package named Ckmeans.1d.dp.
- Performance was evaluated against the standard iterative k-means algorithm.
Main Results:
- The dynamic programming algorithm achieves provably optimal one-dimensional clustering.
- Ckmeans.1d.dp demonstrated superior optimality compared to k-means.
- The R package also showed a competitive runtime performance.
Conclusions:
- Dynamic programming offers a viable method for achieving optimal clustering.
- Ckmeans.1d.dp provides a superior alternative to k-means for one-dimensional data.
- The package enhances the accuracy and efficiency of cluster analysis.
Related Concept Videos
One-Compartment Open Model: Wagner-Nelson and Loo Riegelman Method for ka Estimation
On...
Cluster Sampling Method
To choose a cluster sample, divide the population into clusters (groups) and then randomly select some of the clusters. All the members from these clusters are in the cluster sample. For example, if you randomly sample four departments from your...
Kendall's Coefficient of Concordance
Kruskal-Wallis Test
Collisions in Multiple Dimensions: Introduction
One-Way ANOVA: Equal Sample Sizes
Different sample means can result in different values for the variance estimate: variance between samples. This is because the variance between samples is calculated as the product of the sample size and the variance between the...

