algorithmica
algorithmica copied to clipboard
Section 12.1 Eytzinger Layout
When I run the eytzinger() function in that section, it produces the following layout in array t (given 0-9 in array a): 6 3 8 1 5 7 9 0 2 4. But in the text and graphics for that section the 7 and 8 are swapped. AFAICT the text and graphics are incorrect (for example, 8 can't be the left child of 7 because 8 is greater than 7).