[A7] Fits (3 pts) [00TB]

Suppose that instead of powers of two, we represent integers as a sum of distinct Fibonacci numbers. In other words, instead of an array of bits, we keep an array of fits (fibonacci digits), where each fit is either 0 or 1, and the i^{th} least significant fit indicates whether the sum includes the i^{th} Fibonacci number F_{i}. For example, the fit-string 101110_{F} represents the number F_6+F_4+F_3+F_2=8+3+2+1=14. Design and analyze an algorithm to increment a fit-string in \Theta (1) amortized time, assuming that a fit-string counter starts at 0 and is repeatedly incremented. As with the example above, assume that F_{1}=F_{2}=1, that the array of fits is indexed starting from 1, and that the i^{th} index of the array stores the i^{th} fit. Also observe that unlike binary, a given number n does not necessarily have a unique representation as a fit-string; it does not matter which representations are generated by your algorithm.