|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.sux4j.bits.HintedBsearchSelect
public class HintedBsearchSelect
A hinted binary-search select implementation.
Instances of this class perform selection
using a hinted binary search over an underlying Rank9
instance. We use
12.5% additional space for a small inventory.
Constructor Summary | |
---|---|
HintedBsearchSelect(Rank9 rank9)
|
Method Summary | |
---|---|
BitVector |
bitVector()
Returns the bit vector indexed by this structure. |
long |
numBits()
Returns the overall number of bits allocated by this structure. |
long |
select(long rank)
Returns the position of the bit of given rank. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HintedBsearchSelect(Rank9 rank9)
Method Detail |
---|
public long select(long rank)
Select
select
in interface Select
rank
- a rank.
public long numBits()
Select
numBits
in interface Select
public BitVector bitVector()
Select
Note that you are not supposed to modify the returned vector.
bitVector
in interface Select
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |