logoalt Hacker News

gezhengwentoday at 11:29 AM0 repliesview on HN

Yes, it is essentially the same mathematical concept — both are cycle decompositions of permutations. Carmack used a permutation to ensure every pixel is visited exactly once.