Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
  1. Hyperloglog and MinHash : Implementation of a form of hyperloglog and adding capabilities of MinHash algorithm on to it which would enable to perform set intersections."While it does require extra processing power to deal with collecting all the minima, it’s possible to get satisfactory performance out of the structure for a relatively low storage or memory footprint"

  2. Streaming/Sketching Conference from AK Tech : Contains links to videos and slides from the speakers like Muthukrishnan who spoke about Count Min Sketch

  3. Q-digest

  1. t-digest : A new data structure for accurate on-line accumulation of rank-based statistics such as quantiles and trimmed means. Ted Dunning's variant of Q-digest that does some improvements

  2. Implementations

  1. Count-Min Sketch
  1. Surveys
  • References for Data Stream Algorithms by Graham Cormode : an exhaustive set of references with explanations
  • Data Streams - Algorithms and Applications by S. Muthukrishnan : This is an excellent monograph with surveys of all algorithms related to data streams. Also a free copy of the book is available from Muthu's web site at
  • Synopses for Massive Data: Samples, Histograms, Wavelets, Sketches by Graham Cormode1, Minos Garofalakis, Peter J. Haas and Chris Jermaine . Describes basic principles and recent developments in approximate query processing. It focuses on four key synopses: random samples, histograms, wavelets, and sketches. It considers issues such as accuracy, space and time efficiency, optimality, practicality, range of applicability, error bounds on query answers, and incremental maintenance. It also discusses the trade-offs between the different synopsis types.
  1. Distributed Streams Algorithms for Sliding Windows by Phillip B. Gibbons and Srikanta Tirthapura

  2. Frugal Streaming

  3. A Framework for Clustering Massive-Domain Data Streams by Charu C. Aggarwal

  4. A framework for clustering evolving data streams by Charu C. Aggarwal et. al.

  5. Unsupervised Feature Selection on Data Streams by Hao Huang

  6. Presentations

  1. Courses
  1. Incremental Learning with Decision Trees for Streamed Data
  1. Clustering Data Streams
  1. Books
  • Andrew McGregor is writing a book on sketching and data streaming algorithms, parts of the draft is available here
Copy link

andypetrella commented Dec 30, 2013

What about having a render-friendlier format like md?
This gist is a pearl, but horizontal scrolling is a bit sad ;-)

Copy link

debasishg commented Dec 31, 2013

done ..

Copy link

stefan-pdx commented Jun 12, 2014

Thank you! Found via DataTau.

Copy link

blinsay commented Jun 13, 2014

AggregateKnowledge has a good set of serialization-compatible Postgres/JS/Java HLL implementations:

Copy link

vhazrati commented Jan 12, 2015

Thanks Debashish this is valuable!

Copy link

tdunning commented Mar 26, 2015

Great summary.

Copy link

finlay-liu commented Apr 4, 2015


Copy link

racranjan commented May 5, 2015

Thanks !

Copy link

ronaldsuwandi commented Jun 15, 2015

Thanks! This is great 👍

Copy link

jrjtLite commented Jun 25, 2015

great stuff!

Copy link

bistaumanga commented Oct 22, 2015

Thanks (y) for this awesome stuff

Copy link

keshavbashyal commented Dec 19, 2015

Thank you.. It is really valuable for the community..

Copy link

ajgappmark commented Feb 1, 2016

Thanks a great resource indeed

Copy link

pbarker commented Feb 20, 2016


Copy link

Adewole-zz commented Apr 17, 2016

Interesting post.

Copy link

leerho commented May 25, 2016

You might be interested in DataSketches. A new production quality library of unique counting, quantiles, and frequent items sketches.

Copy link

fioreggianni commented Jul 11, 2016

Exactly what I was looking for! Thanks!

Copy link

OElesin commented Dec 9, 2016

Great Stuff, just found this!!

Copy link

visenger commented May 3, 2017

Great! found via @ds_ldn

Copy link

ChamodDamitha commented Jul 5, 2017


Copy link

tamyiuchau commented Jul 12, 2017

Link to Blog Post on q-digest seems broken. A quick google point me to
Please update it. Thanks.

Copy link

guozheng commented Sep 27, 2017

really nice list, can you consider adding it to the Awesome project so that more people can benefit ;-)

Copy link

ankushs92 commented Jun 30, 2019


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment