Skip to content

An implementation of the K Means algorithm using C and basic techniques to make it fast.

Notifications You must be signed in to change notification settings

Spiros-Dimitriou/k-means

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

K Means fast C implementation

A piece of code that implements the K Means algorithm in a number of vectors. The number of vectors, vector dimensions and final clusters are defined in compile time. Also the vectors are randomly generated.

Why describe it as fast

This implementation takes advantage of multiple cores and vector processing. OpenMP and gcc optimization is used respectively.

Compile

gcc kmeans.c -o kmeans -O3 -fopenmp

Todo:
  • Load vectors from a file
  • Initialize centers randomly (not needed for the time)

About

An implementation of the K Means algorithm using C and basic techniques to make it fast.

Topics

Resources

Stars

Watchers

Forks

Languages