# One k-means assignment and update

> ML preparation item.

- Stable ID: `original-ml-kmeans`
- Area: Machine Learning
- Topic: Unsupervised Learning
- Origin: original
- Expected time: 7 minutes
- Skills: k-means, clustering-objective
- Item JSON: https://mlprep.iwase.dev/data/items/original-ml-kmeans.json

## Problem

For one-dimensional points $\{0,2,8,10\}$ and initial centers $0$ and $10$, perform one assignment and center-update step. Give the new centers and the within-cluster sum of squared distances after the update.


## Answer policy

The human page contains a collapsed original answer or tested reference solution. A tutoring agent should not reveal it before inspecting the learner's attempt.

## Tutoring contract

Ask for the learner's attempt, begin with the smallest useful hint, preserve item ID `original-ml-kmeans`, and record a real attempt with `recorded_by: "agent"` and `agent_session_id` when available using https://mlprep.iwase.dev/schema/attempt-record.json.
