Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9086393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:28:46+00:00 2026-06-16T21:28:46+00:00

We all know that the k-means algorithm: which has a complexity of O( n

  • 0

We all know that the k-means algorithm:enter image description here which has a complexity of O( n * K * I * d ) Where:

  1. n = number of points
  2. K = number of clusters
  3. I = number of iterations
  4. d = number of attributes

but my question is when applying K-means in Dynamic Programming I can’t figure out the complexity of it.

the idea of K-means using DP in a nutshell is as follows:

  • Compute the proximity matrix
  • Let each data point be a cluster
  • Repeat
    • Merge the two closest clusters
    • Update the proximity matrix
  • Until only a single cluster remains

I have tried to find a pseudo-code for it so I can try to find out the complexity, but I couldn’t.

So, how can I find it’s complexity? and what it could be?

Thank you guys in advance for any answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T21:28:47+00:00Added an answer on June 16, 2026 at 9:28 pm

    The algorithm you’re describing is not k-means with dynamic programming, but rather a type of hierarchical clustering called agglomerative clustering. Typically, agglomerative clustering implementations take time (IIRC) O(n3d), where n is the number of data points and d is the number of features. Wikipedia goes into a bit more depth about how this works.

    Note that the clusters found this way are not the same as the clusters you’d get with k-means. Agglomerative clustering tends to produce very different clusters with a different set of properties.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We all know that openId has become such a popular method for user authentication,
We all know that a hash table has O(1) time for both inserts and
I know this question has been asked many times, but I'm looking for a
We all know that CSS sprite images are great to reduce the amount of
We all know that most applications out there assume class names to follow the
as you all know that if we use flash object in web page in
as we all know that html_safe work in controller and view i am sending
So we all know that when iterating through a PHP array using foreach, the
As you all might know that the MIPS instruction set supports clz (count leading
We all know the effects that lots of thrown exceptions can have over the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.