Recursive indexing

Recursive indexing

When number (generally large number) is represented in a finite alphabet set, and itcannot be represented by just one member of the set, Recursive Indexing is used.

Recursive Indexing itself is a method to write the successive differences of the number after extracting the maximum value of the alphabet set from the number, andcontinuing recursively till the difference falls in the range of the set.

Recursive Indexing with a 2 letter alphabet is called Unary code.

Encoding

To encode a number N, keep reducing the maximum element of this set (Smax) from Nand output Smax for each such difference, stopping when the number lies in the half closed half openrange [0-Smax).

Example

Let set S= [0 1 2 3 4 ... 10] , be a 11 element set, and we have to recursivelyindex the value N=49.

According to this method, we need to keep removing 10 from 49, and keep proceedingtill we reach a number in the 0-10 range.

So the values are 10 (N=49-10 = 39), 10 (N=39-10=29), 10 (N=29-10=19), 10 (N=19-10=9), 9.Hence the recursively indexed sequence for N=49 with set S, is 10,10,10,10,9.

Decoding

Keep adding all the elements of the index, stopping when the index value is between (inclusive of ends)the least & penultimate elements of the set S.

Example

Continuing from above example we have 10+10+10+10+9 = 49.

Uses

This technique is most commonly used in Run Length Encoding systems to encode longer runsthan the alphabet sizes permit.

References

Khalid Sayood, Data Compression 3rd ed, Morgan Kaufman.


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Recursive join — The recursive join is an operation used in relational databases, also sometimes called a fixed point join . It is a compound operation that involves repeating the join operation, typically accumulating more records each time, until a repetition… …   Wikipedia

  • List of mathematics articles (R) — NOTOC R R. A. Fisher Lectureship Rabdology Rabin automaton Rabin signature algorithm Rabinovich Fabrikant equations Rabinowitsch trick Racah polynomials Racah W coefficient Racetrack (game) Racks and quandles Radar chart Rademacher complexity… …   Wikipedia

  • Register machine — In mathematical logic and theoretical computer science a register machine is a generic class of abstract machines used in a manner similar to a Turing machine. All the models are Turing equivalent. Contents 1 Overview 2 Formal definition 3 …   Wikipedia

  • Список терминов, относящихся к алгоритмам и структурам данных —   Это служебный список статей, созданный для координации работ по развитию темы.   Данное предупреждение не устанавливается на информационные списки и глоссарии …   Википедия

  • Список терминов — Список терминов, относящихся к алгоритмам и структурам данных   Это сл …   Википедия

  • Linked list — In computer science, a linked list is a data structure consisting of a group of nodes which together represent a sequence. Under the simplest form, each node is composed of a datum and a reference (in other words, a link) to the next node in the… …   Wikipedia

  • List of terms relating to algorithms and data structures — The [http://www.nist.gov/dads/ NIST Dictionary of Algorithms and Data Structures] is a reference work maintained by the U.S. National Institute of Standards and Technology. It defines a large number of terms relating to algorithms and data… …   Wikipedia

  • Comparison of relational database management systems — Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations …   Wikipedia

  • Microsoft SQL Server — Developer(s) Microsoft Stable release SQL Server 2008 R2 (10.50.2500.0 Service Pack 1) / July 11, 2011; 4 months ago …   Wikipedia

  • Kleene's recursion theorem — In computability theory, Kleene s recursion theorems are a pair of fundamental results about the application of computable functions to their own descriptions. The theorems were first proved by Stephen Kleene in 1938.This article uses the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”