Skip to content

Both Skew and SAIS crashes on simple data set. Only Naive works. See test code #1

@aandriasyan

Description

@aandriasyan

#include "Skew.h"
#include "SAIS.h"
#include "Naive.h"

int main()
{
std::string data;
data.reserve(2 * 256);

for(int i = 0;i < (256 * 2);i++) {
    data += (i % 256);
}

// Naive s;
Skew s;
// SAIS s;
s.addString(data);
s.makeSuffixArray();
s.printSuffixArray();
std::cout << std::endl;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions