logoalt Hacker News

busfahrertoday at 10:59 AM1 replyview on HN

Does cycle here mean the same thing as what Carmack used in Wolf3D to randomly fill the screen with red pixels without any of them repeating?


Replies

gezhengwentoday at 11:29 AM

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.