Function noLZSS::count_factors_file

Function Documentation

size_t noLZSS::count_factors_file(const std::string &path)

Counts noLZSS factors in a file.

Counts the number of noLZSS factors in a file.

This function reads text from a file and counts factors without storing them or loading the entire file into memory. It’s the most memory-efficient way to get factor counts for large files.

Reads text from a file and counts noLZSS factors without storing them. This is the most memory-efficient way to get factor counts for large files.

See also

count_factors() for in-memory counting

See also

factorize_file() for getting the actual factors from a file

See also

count_factors() for in-memory counting

Note

This function builds the suffix tree directly from the file

Parameters:
  • path – Path to input file containing text

  • path – Path to the input file containing text

Returns:

Number of factors in the factorization

Returns:

Number of factors in the factorization