Skip to content

lujiajing1126/go-space-saving

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spacing-Saving algorithm

Spacing-Saving algorithm is an integrated approach for solving both problems of finding the most popular k elements, and finding frequent elements in a data stream.

Usage

// epsilon determines the total number of counters
ss, err := spaceSaving.NewStreamSummary(0.01)
if err != nil {
//...
}
ss.Record(item)

Acknowledge

  1. Ahmed Metwally et al., Efficient computation of frequent and top-k elements in data streams . In Proceedings of the 10th international conference on Database Theory (ICDT'05)
  2. Java Implementation of Spacing-Saving algorithm: https://github.com/fzakaria/space-saving

About

A Space-Saving algorithm implemented in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages