Python and Java versions of Chen & Cao's Self-Learning Bitmap algorithm for distinct value estimation