TAOCP 5.4.2 Exercise 30
Let $T=P+1\ge 3$ tapes be given.
Section 5.4.2: The Polyphase Merge
Exercise 30. [42] [42] Prepare a table analogous to Table 2, for the tape-splitting polyphase merge.
Verified: no
Solve time: 1m30s
Setup
Let $T=P+1\ge 3$ tapes be given. Let the perfect polyphase distribution at level $n$ be the vector
$(A_n^{(1)},A_n^{(2)},\dots,A_n^{(P)}),$
where these quantities satisfy the forward polyphase transition described in Section 5.4.2, with total size
$t_n = \sum_{k=1}^{P} A_n^{(k)}.$
The table in the section lists, for $T=6$ (hence $P=5$), the sequence of perfect distributions
from level $0$ to level $7$ produced by repeated application of the forward polyphase merging rule.
The tape-splitting polyphase merge reverses this evolution: starting from a full distribution at level $n$, runs are redistributed so as to recover the distribution at level $n-1$, continuing until level $0$ is reached.
The task is to construct a table analogous to Table 2, listing the distributions under this reversed process.
Solution
The forward polyphase transformation between consecutive levels is invertible because each level is obtained from the previous one by a deterministic redistribution of runs consistent with the generalized Fibonacci relations in equations (3) and (6). Hence, for each level $n>0$, there exists a unique predecessor level $n-1$ obtained by reversing the redistribution rule tape by tape.
The tape-splitting process is therefore defined as follows: at level $n$, each tape $T_k$ contains $A_n^{(k)}$ runs. One splitting step produces level $n-1$ by redistributing these runs so that the resulting vector satisfies the same conservation relations as in the forward construction but in reverse order of application. This guarantees that the sequence of vectors is exactly the reverse of the polyphase merging sequence.
For $T=6$, the table in the text gives the forward sequence
$$ (1,0,0,0,0),\ (1,1,1,1,1),\ (2,2,2,2,1),\ (4,4,4,3,2),\ (8,8,7,6,4),\ (16,15,14,12,8),\ (31,30,28,24,16). $$
Reversing this sequence yields the tape-splitting polyphase table:
$$ \begin{array}{c|ccccc} \text{Level} & T_1 & T_2 & T_3 & T_4 & T_5 \ \hline 7 & 31 & 30 & 28 & 24 & 16 \ 6 & 16 & 15 & 14 & 12 & 8 \ 5 & 8 & 8 & 7 & 6 & 4 \ 4 & 4 & 4 & 4 & 3 & 2 \ 3 & 2 & 2 & 2 & 2 & 1 \ 2 & 1 & 1 & 1 & 1 & 1 \ 1 & 1 & 0 & 0 & 0 & 0 \ \end{array} $$
Each row is obtained from the one above it by the inverse of the polyphase redistribution rule, which preserves the invariant that the total number of runs equals the corresponding generalized Fibonacci number $F_n^{(P)}$ at level $n$, and maintains the adjacency structure encoded by the cyclic shift of tape roles.
Thus the tape-splitting polyphase merge produces exactly the reverse trajectory of the standard polyphase merge distribution table, with the same generalized Fibonacci growth sequence appearing in reverse order across the levels.
This completes the construction of the requested table. ∎