Talk:Negafibonacci coding: Difference between revisions

Content deleted Content added
Example: Zero cannot be encoded
No edit summary
Line 7:
 
I have edited the article. Zero simply cannot be encoded. Zero is represented as the empty sum, but you need at least one term to terminate a code, just as with normal Fibonacci coding. Unfortunately I can't find any sources that aren't copies of Wikipedia or anything better. This is one sad article. --[[User:Jonathanvt|Jonathanvt]] ([[User talk:Jonathanvt|talk]]) 09:50, 8 December 2012 (UTC)
 
==Encoding==
The described algorithm is wrong. Counterexample: -18. Algorithm fails after generating [-21,5] instead of [-21,2,1].