Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Algorithm 4 . 1 k - means algorithm: given a list of N n - vectors x 1 , , xN , and an initial

Algorithm 4.1 k-means algorithm: given a list of N n-vectors x1,, xN , and an initial
list of k group representative n-vectors z1,, zk repeat until convergence
1. Partition the vectors into k groups. For each vector i =1,, N , assign xi to the group
associated with the nearest representative.
2. Update representatives. For each group j =1,, k, set zj to be the mean of the vectors
in group j
Complexity of k-mean algorithm.
(a) In step 1 of the k-means algorithm, we find the nearest neighbor to each of N n-vectors,
over the list of k centroids. Show that this requires approximately 3N kn flops.
Exam 1 Page 4 of 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions