读书人

请教:LZW算法中TABLE_SIZE是如何得来

发布时间: 2014-05-12 16:30:40 作者: rapoo

请问: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.

读书人网 >软件架构设计

热点推荐