请问:LZW算法中TABLE_SIZE是怎么得来的
我看程序,其中有:
#if BITS == 14
#define TABLE_SIZE 18041 /* The string table size needs to be a */
#endif /* prime number that is somewhat larger*/
#if BITS == 13 /* than 2**BITS. */
#define TABLE_SIZE 9029
#endif
#if BITS <= 12
#define TABLE_SIZE 5021
#endif
TABLE_SIZE值不等于2^BITS,请问TABLE_SIZE是怎么得来的?
[解决办法]
The string table size needs to be a prime number that is somewhat larger.