Construct a suffix array for the sequence stored in a file.
- Parameters
-
sa | A reference to the resulting suffix array. |
file | Name of the file. |
num_bytes | Bytes per symbol in the file. I.e.
- num_bytes=1: byte sequence
- num_bytes=2: sequence of two byte symbols
- num_bytes=4: sequence of four byte symbols
- num_bytes=8: sequence of eight byte symbols.
- num_bytes=0: the algorithm assumes a serialized int_vector<> in the file and loads it.
|
- Note
- If
int_vector_type
is int_vector<>
then the bit-width of sa
is the maximum of bits::hi( max(sa.size()-1, 0) )
and the bit-width of the text.
Definition at line 60 of file qsufsort.hpp.