Show HN: The King Wen Permutation: [52, 10, 2] (gzw1987-bit.github.io)

by gezhengwen 27 comments 65 points
Read article View on HN

27 comments

[−] variaga 54d ago
I read the page and went through the "verify the cycles for yourself" sequence and I still have no earthly idea when defining the cycles, what is the rule that says "if you're currently on hexagram X, you can calculate the next hexagram Y by doing..."
[−] gezhengwen 53d ago
Each hexagram has two positions: one in the binary natural order (0-63), and one in the King Wen sequence. The rule is: a hexagram moves from its natural order position to its King Wen position. For example, Qian is at position 63 in the natural order and position 0 in the King Wen sequence, so σ(63)=0. Then look at position 0 (Kun), which is at position 1 in the King Wen sequence, so σ(0)=1. Follow this chain until you return to the start. There is no formula — σ is defined by the mapping table between the two orderings.
[−] casey2 54d ago
Random shuffles usually have a big loop
[−] gezhengwen 54d ago
You are right, the expected largest cycle of a random permutation is around 40. 52 is larger but not extreme. I did not claim this result is statistically significant.
[−] gezhengwen 54d ago
I found this by accident while analyzing the I Ching with code. 81% of hexagrams are locked in one chain, none stays in its original position. You can verify it yourself in the browser. Has anyone seen this before?
[−] seanhunter 54d ago
People have known about this since the Shang dynasty so yes it has been noticed before.

If you find this interesting, I suggest you study group theory - this seems pretty much a direct consequence of the group structure.

[−] dmos62 54d ago
Fascinating. I've barely any knowledge of I Ching. What motivated you to explore this and I Ching in general?
[−] busfahrer 54d ago
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?
[−] kazishariar 54d ago
How/Can you compare this to Magic Squares?
[−] chordbug 54d ago
We truly live in an age where facts that are worth "maybe one sentence of space on Wikipedia" can be expanded into full-blown AI-coded interactive websites. I'm not sure how to feel about this. I think in this case it ascribes an inappropriate sense of grandeur: making a mathematical curiosity (and is the result even that surprising?) seem like some deep truth has been unveiled, or we finally found God's Number.
[−] munio 53d ago
[dead]
[−] johnwhitman 54d ago
[flagged]
[−] katamaran1987 54d ago
[dead]