Method of fixed-length binary encoding and decoding and apparatus for same
AssigneeKronos, Inc.
InventorsLawrence J. Krakauer, Larry Baxter
Life of this patent
Estimating the term…
Abstract
A novel method of adapting Fibonacci number weighting to raw binary code data of variable length to use the code as a fixed length code by using only those code sequences with a fixed number of cells rather than a fixed number of bits, converting the code to a continuous numerical sequence useful particularly for linear media and data transmission. Encoder and decoder systems useful to enable storing or recording and reading or utilization of the Fibonacci code in bar code, magnetic and other media.
Claims14
A machine-implemented method wherein numbers are digitally encoded in n fixed-length cells, n being an arbitrary integer, comprising the following machine-implemented encoding steps:
- (1) comparing a number to be encoded with a predetermined Fibonacci Number in a sequence of Fibonacci Numbers and generating a first code element consisting of a predetermined first integer number of cells if the number to be encoded is greater than or equal to said predetermined Fibonacci Number, but generating a first code element consisting of a predetermined second integer number of cells if the number to be encoded is less than said predetermined Fibonacci Number;
- (2) then, if a first code element of said first number of cells has been generated in step (1), subtracting said predetermined Fibonacci Number from the number to be encoded in step (1) and repeating the comparing and generating of step (1) using the difference obtained by the subtracting as the number to be encoded and using the Fibonacci Number preceding said predetermined Fibonacci Number in said sequence, but if a first code element of said second predetermined number of cells has been generated in step (1), performing no subtraction, and repeating the comparing and generating of step (1) using the original number to be encoded and the Fibonacci Number before said preceding Fibonacci Number, thereby to generate a second code element;
- and
- iterating steps (1) and (2) until n cells have been utilized in the encoding.
Apparatus wherein numbers are digitally encoded in a space of n fixed-length cells, n being an arbitrary integer, comprising:
- means for comparing a number to be encoded with a predetermined Fibonacci Number in a sequence of Fibonacci Number and generating a first code element consisting of a predetermined first integer number of cells if the number to be encoded is greater than or equal to said prededetermined Fibonacci Number, but generating a first code element consisting of a predetermined second integer number of cells if the number to be encoded is less than said predetermined Fibonacci number;
- means for subtracting said predetermined Fibonacci Number from the number to be encoded if a first code element of said first number of cells has been generated and for repeating said comparing and generating using the difference obtained by the subtracting as the number to be encoded and using the Fibonacci Number preceding said predetermined Fibonacci Number in said sequence, but if a first code element of said second number of cells has been generated, performing no subtraction, and repeating said comparing and generating using the original number to be encoded and the Fibonacci Number before said preceding Fibonacci Number, thereby to generate a second code element;
- and
- means for causing all of the aforesaid means to operate iteratively until n cells have been utilized in the encoding.
Dependencies are inferred from the claim text.