Question
Q1-Compare K-means and K-medoids algorithms. List down the main differences between these two algorithms? Q2-Cluster the following eight points into three clusters using K means
Q1-Compare K-means and K-medoids algorithms. List down the main differences between these two algorithms?
Q2-Cluster the following eight points into three clusters using K means clustering algorithm and use Euclidean distance.
A1=(2,10), A2=(2,5), A3=(8,4), A4=(5,8),
A5=(7,5), A6=(6,4), A7=(1,2), A8=(4,9).
a) Create distance matrix by calculating Euclidean distance between each pair of points. (0.5 mark)
b) Suppose that the initial centers of each cluster are A1, A4 and A7. Run the k-means algorithm for once only and show:
i. The new clusters (i.e. the examples belonging to each cluster) (1 mark)
ii. The centers of the new clusters (0.5 mark)
Show all your work.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started