摘要 |
<p>A method (700) and device (1100) increase throughput of a data compression encoder or decoder by using children arrays instead of linked lists in the building and maintenance of the tree. A children array with elements corresponding to each of the input symbols is allocated to a node. An input character is used as an index into the children array. The search result is determined by the value in the children array. Where a search is successful, the value in the children array is a pointer to the child node. A node is added by storing a pointer to the node in the parent's children array at the location indexed by the input character and is deleted by storing a NULL value in the parent's children array where the child node had been. The search, add, and delete operations become very efficient, and each operation has a constant execution time.</p> |