Documentation ¶
Index ¶
- type RRR
- func (r *RRR) Access(i uint64) bool
- func (r *RRR) Rank0(i uint64) uint64
- func (r *RRR) Rank1(i uint64) uint64
- func (r *RRR) Select0(i uint64) uint64
- func (r *RRR) Select1(i uint64) uint64
- func (r *RRR) Size() int
- func (r *RRR) SizeInBytes() uint64
- func (r *RRR) Uncompress() *bv.BV
- func (r *RRR) WriteTo(w io.Writer) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RRR ¶
type RRR struct {
// contains filtered or unexported fields
}
RRR is a static compressed bit vector represented as
Succinct indexable dictionaries with applications to encoding k-ary trees and multisets
func NewFromBitVector ¶
NewFromBitVector builds a compressed bitvector from the bits in bv
func NewFromSerialized ¶
NewFromSerialized returns a RRR value which was serialized via WriteTo
func (*RRR) Select0 ¶
Select0 returns the number of index of the ith unset bit. TODO verify correctness
func (*RRR) SizeInBytes ¶
SizeInBytes returns the size of r if it was serialized.
func (*RRR) Uncompress ¶
Uncompress returns an uncompressed bit vector
Click to show internal directories.
Click to hide internal directories.