GithubHelp home page GithubHelp logo

Range queries for CountMinSketch about algebird HOT 3 OPEN

twitter avatar twitter commented on July 17, 2024
Range queries for CountMinSketch

from algebird.

Comments (3)

avibryant avatar avibryant commented on July 17, 2024

BTW: the above could also be used with levels instances of Map[Long,V] where we have a Monoid[V], to allow arbitrary exact range queries with at most 2log_2(maxValue) plus() operations. We'd only want to use the exact version for sufficiently small values of maxValue, though if the Map is backed by disk storage, or sharded in memory across a cluster, this could still be reasonably large.

from algebird.

johnynek avatar johnynek commented on July 17, 2024

This looks good to me. Some tests and I'll be convinced.

About the monoid approach, I like the idea. The problem is we are going to have some issues proving bounds. So, I wonder if we have a monoid on V and a metric on V, can we push the proof through so we can show that |sum(V) - approxSum(V)| < epsilon except with probability delta for some known epsilon, delta.

By the way, pushing this all through for any monoid with a metric is probably worth a paper, if it is possible. We may need to assume something about the structure of the metric.

from algebird.

sritchie avatar sritchie commented on July 17, 2024

Nice! This blog post describes the dyadic range approach as well.

Apparently http://madlib.incubator.apache.org/ uses this algorithm to do range queries and estimate percentiles on big datasets.

from algebird.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.