1. A table generation method for decoding a variable-length code, the method comprising: receiving a variable-length code table and a search width N; generating a K-ary tree from the variable-length code table and the search width N; and generating an N-bit code table from the K-ary tree.