K-means clustering is the problem of partitioning a set of points in a metric space into $k$ sets (clusters), such that the sum of squared distances between each point and the center of its cluster) is minimized overall, i.e. the clusters as as "tight" as possible.
While NP-hard in the general case, I know it is $\text{PTIME}$-tractable if the points are on a line.
What is the best known upper bound on the time complexity of optimal clustering for the 1-dimensional case?
Note: Lower bounds are also interesting, but less so.