16 std::set<std::string>
computeS(
const std::set<std::string> &Sp,
const std::set<std::string> &Sm);
36 void readFromFile(
const std::string &inputFile, std::set<std::string> &Sp, std::set<std::string> &Sm);
51 void generateRandomly(
unsigned int numberWords,
unsigned int minLength,
unsigned int maxLength,
unsigned int alphabetSize, std::set<std::string> &Sp, std::set<std::string> &Sm,
double SpProbability = 0.5);
The namespace of the library.
std::set< std::string > computePrefixes(const std::set< std::string > &S)
Computes .
std::set< std::string > computeS(const std::set< std::string > &Sp, const std::set< std::string > &Sm)
Computes .
void readFromFile(const std::string &inputFile, std::set< std::string > &Sp, std::set< std::string > &Sm)
Reads the and sets from a file.
std::set< char > computeAlphabet(const std::set< std::string > &S)
Computes the alphabet from the words in .
void generateRandomly(unsigned int numberWords, unsigned int minLength, unsigned int maxLength, unsigned int alphabetSize, std::set< std::string > &Sp, std::set< std::string > &Sm, double SpProbability=0.5)
Generates randomly a sample set.