Recursive indexing
Recursive indexing is an algorithm used to represent large numeric values using members of a relatively small set.[src] Recursive indexing writes the successive differences of the number after extracting the maximum value of the alphabet set from the number, and continuing recursively till the difference falls in the range of the set.[src] Recursive indexing with a 2-letter alphabet is called unary code.[src]
Recursive indexing is an algorithm used to represent large numeric values using members of a relatively small set.[src] Recursive indexing writes the successive differences of the number after extracting the maximum value of the alphabet set from the number, and continuing recursively till the difference falls in the range of the set.[src] Recursive indexing with a 2-letter alphabet is called unary code.[src] ==Encoding== To encode a number N, keep reducing the maximum element of this set (S max ) from N and output Smax for each such difference, stopping when the number lies in the half closed half open range [0 – S max ).[src] Let S = [0 1 2 3 4 … 10], be an 11-element set, and we have to recursively index the value N=49.[src] According to this method, subtract 10 from 49 and iterate until the difference is a number in the 0–10 range.[src] The values are 10 (N = 49 – 10 = 39), 10 (N = 39 – 10 = 29), 10 (N = 29 – 10 = 19), 10 (N = 19 – 10 = 9), 9.[src] The recursively indexed sequence for N = 49 with set S, is 10, 10, 10, 10, 9.[src] ==Decoding== Compute the sum of the index values.[src] Decoding the above example involves 10 + 10 + 10 + 10 + 9 = 49.[src] ==Uses== This technique is most commonly used in run-length encoding systems to encode longer runs than the alphabet sizes permit.[src] ==References== Khalid Sayood, Introduction to Data Compression 3rd ed, Morgan Kaufmann.[src]
15 sentences · 15 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Recursive indexing." encyclopegia.org, 2023, https://encyclopegia.org/wiki/recursive-indexing. Accessed 01 December 2026.
Chicago
"Recursive indexing." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/recursive-indexing.
APA
encyclopegia.org. (2023). Recursive indexing. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/recursive-indexing
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON