An exercise on K-means clustering algorithm & Principle Component Analysis, and their application to image compression.  It is programming exercise 7 in Machine Learning course by Andrew Ng on Coursera.