From scratch implementation of a versatile algorithm in Python — Well, you may ask yourself: What has image compression to do with clustering? And honestly, at a first glance reducing the file size of an image and clustering data points into distinct groups do not seem to have much in common. However, if you think about it for a moment…