encode | decode | compress

> fibonacci | zeckendorf | universal <

// Fibonacci Coding - Self-synchronizing code using golden ratio mathematics

0 chars
0 chars

>> features

[UNIVERSAL]

Universal Code

Works for any positive integer without parameters.

[SELF-SYNC]

Self-Synchronizing

Can recover from transmission errors using '11' pattern.

[MATHEMATICAL]

Golden Ratio

Based on Fibonacci sequence and Zeckendorf theorem.

>> technical info

How Fibonacci Coding Works

Fibonacci coding uses Zeckendorf's theorem: every positive integer has a unique representation as a sum of non-consecutive Fibonacci numbers. The code consists of this representation in binary (1 if Fibonacci number is used, 0 if not) followed by an additional 1 as terminator. The '11' pattern only appears at code end.

Encoding Examples

Fibonacci: 1, 2, 3, 5, 8, 13, 21...

1 = F(1) → 11
2 = F(2) → 011
3 = F(3) → 0011
4 = F(3)+F(1) → 1011
5 = F(4) → 00011
12 = F(5)+F(3)+F(1) → 101011

No consecutive Fibonacci numbers used
'11' only appears at code end

Why Use Fibonacci Coding

  • Self-synchronization property
  • No parameters needed
  • Robust to errors
  • Unique representation
  • Mathematical elegance

>> frequently asked questions

What is Fibonacci coding?

Fibonacci coding is a universal code that represents positive integers using the Fibonacci sequence. It's based on Zeckendorf's theorem and creates self-synchronizing codes where '11' only appears as a terminator.

What's Zeckendorf representation?

Zeckendorf's theorem states that every positive integer can be uniquely represented as a sum of non-consecutive Fibonacci numbers. This representation forms the basis of Fibonacci coding.

Why is it self-synchronizing?

The pattern '11' (two consecutive ones) only appears at the end of each codeword. This allows a decoder to resynchronize after transmission errors by looking for '11' patterns.

Where is Fibonacci coding used?

Fibonacci coding is used in data compression research, error-resilient transmission systems, and theoretical computer science. It's valued more for its mathematical properties than practical efficiency.