Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading file could ignore \n when reading txt file #3

Open
albertiniufu opened this issue Mar 25, 2020 · 0 comments
Open

Reading file could ignore \n when reading txt file #3

albertiniufu opened this issue Mar 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@albertiniufu
Copy link

It seems the program is treating \n as a symbol.
See
echo -n "GA" > dataset/2chars.txt
echo "GA" > dataset/example2.txt

./main -l -s -f dataset/2chars.txt
d = 1
N = 2 bytes
sizeof(int) = 4 bytes

SACAK_LYNDON 9n (linear)

TOTAL:
CLOCK = 0.000024 TIME = 0.000000
0.000024
OUTPUT:
dataset/2chars.txt.pos

Max(LA[0]): 1
Avg(LA[i]): 1.00

Number of Lyndon factors: 2
Average length: 1.00
Maximum length: 1

malloc_count ### exiting, total: 27861, peak: 21208, current: 1024
21208

d = 1
N = 3 bytes
sizeof(int) = 4 bytes

SACAK_LYNDON 9n (linear)

TOTAL:
CLOCK = 0.000032 TIME = 0.000000
0.000032
OUTPUT:
dataset/example2.txt.pos

Max(LA[0]): 1
Avg(LA[i]): 1.00

Number of Lyndon factors: 3
Average length: 1.00
Maximum length: 1

malloc_count ### exiting, total: 27871, peak: 21208, current: 1024
21208

@felipelouza felipelouza added the bug Something isn't working label Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants