Vector quantization maps high-dimensional vectors to codewords from a finite codebook. Each codeword defines a Voronoi region containing vectors closest to that codeword. The Lloyd and LBG algorithms are commonly used to optimize the codebook for a given dataset by iteratively clustering vectors and recomputing codeword averages. Tree-structured vector quantization improves efficiency by recursively partitioning the codebook into binary groups defined by test vectors. This reduces the number of distance comparisons needed at the cost of potential increases in distortion and storage requirements.