# One k-means assignment and update

> ML Prep practice item.

- Stable ID: `original-ml-kmeans`
- Collection: practice
- Area: Machine Learning
- Topic: Unsupervised Learning
- Origin: original
- Difficulty: easy
- Expected time: 7 minutes
- Skills: k-means, clustering-objective
- Item JSON: https://mlprep.iwase.dev/item/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 answer. 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.
