Save this video free

UUtah Fall 2026 | Data Mining | L9 - k-Means and friends

UofU Data Science · 1:22:22 · Watch on YouTube

Part of University of Utah CS 5140/6140 Data Mining. See all 21 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

The lecture formalizes assignment-based clustering through representative sites, then compares k-means, k-median, k-medoids, and k-center objectives. It explains Gonzalez’s 2-approximation for metric k-center and Lloyd’s algorithm for squared-Euclidean k-means, including its convergence to local optima and the k-means++ initialization method that improves the odds of finding a strong solution.

Key takeaways

Chapters

0:00 Course Updates: Homework, Project Data, and Campus Events
6:09 Assignment-Based Clustering Represents Clusters with Sites
10:00 Nearest-Site Assignments Create Voronoi Clusters
16:00 K-Means Minimizes Average Squared Euclidean Distance
21:50 K-Median and K-Medoids Change Robustness and Site Constraints
33:50 K-Center Minimizes the Worst Assignment Distance
35:00 Gonzalez’s Algorithm Greedily Selects Farthest Sites
44:05 Lloyd’s Algorithm Alternates Assignment and Mean Updates
49:10 Voronoi Boundaries and Centroid Updates Refine Assignments
53:30 The Mean Minimizes a Cluster’s Sum of Squared Errors
58:00 Lloyd’s Updates Decrease Cost but May Take Many Iterations
1:00:30 Lloyd’s Algorithm Can Converge to a Local Optimum
1:07:00 Random and Gonzalez Seeding Help but Do Not Eliminate Bad Starts
1:10:00 K-Means++ Uses Distance-Weighted Random Initialization
1:13:00 Why Squared-Distance Sampling Favors Uncovered Clusters
1:16:30 Weighted Sampling with Cumulative Sums and the Alias Method

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:18 Uh great. Let's get uh let's get started. Welcome back everyone. Um so today we'll be talking about oh assignment based clustering. Um oh this will include the kind of uh um so most famous clustering um so formulation called k means uh so the algorithm usually associated with called Lloyd's algorithm which we'll talk about today but we'll also talk about kind of um other types of clustering within this family. Uh uh um so just before we get started uh we are in the clustering part of the class and the big thing to note is that

1:09 the kind of um um homework too on the similarities due today. Uh um so is everyone done with that already? Mostly done with it. Still working on it. You feel still working on Okay. Great. There's still uh so some office hours after class today. So uh um so I'll be here for a few minutes and then there's a TA office hour starting at 12:30 over in MEB. Uh um so if you have questions on that you um um so you still have time to finish it. It's due today at the end of the day. You can of course turn it in one or two days late and we'll um oh you'll be able to get partial credit. Um the first assignment was turned back uh

1:58 as we graded we finished grading the first assignment. The grades were posted that um so I think the grades went well on that. So if you have any questions um or you think something was something was misgraded the regrade requests are through grade scope. Um okay. Uh we also kind of finished getting feedback on all the proposals. Um um so I think everyone seems to be on track for that as well.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, UofU Data Science.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.