Skip to content
This repository was archived by the owner on Oct 18, 2022. It is now read-only.

added range quantile queries to both wavelet tree implementations.#3

Merged
fclaude merged 1 commit intofclaude:masterfrom
mpetri:quantileqry
Aug 17, 2011
Merged

added range quantile queries to both wavelet tree implementations.#3
fclaude merged 1 commit intofclaude:masterfrom
mpetri:quantileqry

Conversation

@mpetri
Copy link
Contributor

@mpetri mpetri commented Aug 16, 2011

some functionality I'm using in my local libcds fork. (more to come)

  • Range Quantile Queries as described in: Travis Gagie, Simon J. Puglisi, Andrew Turpin: Range Quantile Queries: Another Virtue of Wavelet Trees. SPIRE 2009: 1-6. added.
  • Example: find the q-th smallest element in T[l..r]: WaveletTree::quantile(l,r,q);
  • Example: find the q-th smallest element in T[l..r] and return it's freqency: pair<uint32_t,size_t> WaveletTree::quantile_freq(l,r,q)
  • testQuantile.cpp includes some basic testing of the two functions.

Note: does NOT work on huffman shaped wavelet trees.

…isi, Andrew Turpin:

    Range Quantile Queries: Another Virtue of Wavelet Trees. SPIRE 2009: 1-6.

  Note: does NOT work on huffman shaped wavelet trees.
fclaude added a commit that referenced this pull request Aug 17, 2011
added range quantile queries to both wavelet tree implementations.
@fclaude fclaude merged commit 0065ce3 into fclaude:master Aug 17, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments