An open API service indexing awesome lists of open source software.

https://github.com/rossmerr/wavelettree

Wavelet Tree
https://github.com/rossmerr/wavelettree

go golang wavelet-tree

Last synced: 4 months ago
JSON representation

Wavelet Tree

Awesome Lists containing this project

README

          

# Wavelet Tree

[![Go](https://github.com/rossmerr/wavelettree/actions/workflows/go.yml/badge.svg)](https://github.com/rossmerr/wavelettree/actions/workflows/go.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/rossmerr/wavelettree)](https://goreportcard.com/report/github.com/rossmerr/wavelettree)
[![Read the Docs](https://pkg.go.dev/badge/golang.org/x/pkgsite)](https://pkg.go.dev/github.com/rossmerr/wavelettree)

A Wavelet Tree contains a bitvector representation of a string. If we know the alphabet set, then the exact string can be inferred by tracking bits down the tree. To find the letter at ith position in the string

[Wavelet Tree](https://en.wikipedia.org/wiki/Wavelet_Tree)

![Wavelet Tree](https://upload.wikimedia.org/wikipedia/commons/0/01/Wavelet_tree.png)