Research Article

A Hybrid Vector Quantization Combining a Tree Structure and a Voronoi Diagram

Pseudocode 1

Input: a set of projected codewords
Output: a tree-structure based codebook
Tree construction procedure:
(1) root = new node // obtain the root of the tree structure
(2) ConstructTree(root, ) // apply the recursive function to construct the tree
(3) return root
Function ConstructTree(node, W)
(4) According to the set of input codewords, W, apply the LBG algorithm to
estimate two centroids, and
(5) Let and
(6) Each is assigned to or depending on whether w is closer to
or
(7) If the number of is greater than a predefined threshold then {
(8)    = new node
(9)   ConstructTree( , )
(10) }
(11) Else {
(12)
(13)  Find a codeword such that is minimum
(14)
(15) }
(16) If the number of is greater than a predefined threshold , then {
(17) = new node
(18) ConstructTree( , )
(19) }
(20) Else {
(21)
(22)  Find a codeword such that is minimum
(23)
(24) }