diff options
Diffstat (limited to 'src/crunch.c')
| -rw-r--r-- | src/crunch.c | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/src/crunch.c b/src/crunch.c index 6f5dad6..30eb4f7 100644 --- a/src/crunch.c +++ b/src/crunch.c @@ -351,34 +351,38 @@ $ echo -n abababcabc > ABC.TXT $ ./alf -vv 1 ABC.TXT Crunching ABC.TXT as ABC.TXT <0 >29:0 #256 RESET -<1 >30:1 #97 'a' -<2 >31:2 #98 'b' -<4 >32:3 #258 -<6 >33:4 #258 -<7 >34:5 #99 'c' +<1 >30:1 #97 a new: #258 +<2 >31:2 #98 b new: #259 +<4 >32:3 #258 new: #260 +<6 >33:4 #258 new: #261 +<7 >34:5 #99 c new: #262 <10 >35:6 #261 <10 >36:7 #257 END final token table contents: -#97/'a' - #258/'b' - #260/'a' - (no kids) - #261/'c' - (no kids) - #258 has 2 kids +#97, used 1, len 1: a +| `-#258, used 2, len 2: ab +| | `-#260, used 0, len 3: aba +| | | `-(no kids) +| | `-#261, used 1, len 3: abc +| | | `-(no kids) +| `-#258 has 2 kids #97 has 1 kids -#98/'b' - #259/'a' - (no kids) + +#98, used 1, len 1: b +| `-#259, used 0, len 2: ba +| | `-(no kids) #98 has 1 kids -#99/'c' - #262/'a' - (no kids) + +#99, used 1, len 1: c +| `-#262, used 0, len 2: ca +| | `-(no kids) #99 has 1 kids -maxkidcount 2, maxlevel = 3, totalkidcount = 5 -nodeswithkids 4, avgkidcount: 1.25 + +max kid count 2, max length = 3, total kid count = 5 +tokens with kids 4, avg kid count: 1.25 +total tokens 263, used: 7, unused 256 -- 10/38 (-279%) @@ -387,7 +391,7 @@ Backed up old '1' to '1~'. The first part of the output (all the lines that start with <) is the actual compressed data, in human-readable form. Single-byte tokens -(ones that map to a single charater) are displayed as their ASCII +(ones that map to a single character) are displayed as their ASCII value, if printable. The tokens numbered 258 and above represent multiple bytes. |
