Download Implementation of DCA Compression Method
Transcript
Chapter 5 Experiments 5.1 Measurements All measurements were executed on an AMD Athlon XP 2500+, 1024MB RAM, with Mandriva Linux and kernel version 2.6.17 i686. All time measurements were made 5 times, for time measurements the minimal achieved value was selected, for memory measurements only one measurement was sufficient, as the algorithm is deterministic and use the same amount of memory every time for the same configuration. Memory was measured using memusage from GNU libc development tools summarizing heap and stack peak usage. Time was measured using getrusage() as a sum of user and system time used. Program was compiled with “-O3” and DEBUG, PROFILING, MEASURING options turned on and all debug logging turned off. Program was called with “-v” option displaying summary with compressed data length, antidictionary size, compression ratio achieved and total time taken. We are going to choose appropriate parameters for static as well as dynamic compression scheme. In static compression scheme we have parameters maxdepth, how to use selfcompression and whether to use suffix array. In dynamic compression scheme we can affect only maxdepth. 5.2 Self-Compression Self-compression is one of the static compression scheme parameters. Using selfcompression is not mandatory, so we can skip it and use simple pruning only. Another option is to use it together with simple pruning, we will denote it as single self-compression. For better precision we can use self-compression and simple pruning as long we prune some antiwords from the trie, we call this multiple self-compression. Following tests were performed over “paper1” file from “Calgary Corpus”. In Figure 5.1 we can see that simple pruning only requires more memory than methods using selfcompression. In Figure 5.2 we can see, that simple pruning only is the fastest, but the 47