COMP5318/COMP4318 Machine Learning and Data Mining
s1 2025
Week 9 Tutorial exercises
Clustering 1
Exercise 1. K-means clustering
Use the K-means algorithm to cluster them into 2 clusters. The initial centroids are A and B. Show the clusters after the first epoch.
Exercise 2. Hierarchical clustering
Use the single link agglomerative clustering from the lecture (given below) to group the data described by the following distance matrix:
Hierarchical clustering algorithm: