Skip to content

Instantly share code, notes, and snippets.

@smigniot
Created October 4, 2024 07:31
Show Gist options
  • Select an option

  • Save smigniot/f9c610cf8cee1753c2844ceea0544dd0 to your computer and use it in GitHub Desktop.

Select an option

Save smigniot/f9c610cf8cee1753c2844ceea0544dd0 to your computer and use it in GitHub Desktop.
Vocabulary reduction for k=8 and k=13
=============
== FOR K=8 ==
=============
Cardinalities [
[ 'E', 85998 ], [ 'S', 66786 ],
[ 'I', 65837 ], [ 'A', 59318 ],
[ 'R', 54496 ], [ 'N', 53586 ],
[ 'T', 49932 ], [ 'O', 46240 ],
[ 'L', 39990 ], [ 'C', 30033 ],
[ 'D', 28418 ], [ 'U', 25051 ],
[ 'G', 22480 ], [ 'P', 21003 ],
[ 'M', 20723 ], [ 'H', 17495 ],
[ 'B', 14941 ], [ 'Y', 11848 ],
[ 'F', 10150 ], [ 'V', 7756 ],
[ 'K', 7435 ], [ 'W', 6873 ],
[ 'Z', 3307 ], [ 'X', 2106 ],
[ 'J', 1591 ], [ 'Q', 1420 ]
]
Reduced to 8 groups [
[ 'E', 'L', 'B', 'J' ],
[ 'S', 'C', 'Y', 'Q' ],
[ 'I', 'D', 'F' ],
[ 'A', 'U', 'V' ],
[ 'R', 'G', 'K' ],
[ 'N', 'P', 'W' ],
[ 'T', 'M', 'Z' ],
[ 'O', 'H', 'X' ]
]
STOP becomes STON
ELITE becomes EEITE
FILM becomes IIET
FACADE becomes IASAIE
dict_k8.txt written
==============
== FOR K=13 ==
==============
Cardinalities [
[ 'E', 85998 ], [ 'S', 66786 ],
[ 'I', 65837 ], [ 'A', 59318 ],
[ 'R', 54496 ], [ 'N', 53586 ],
[ 'T', 49932 ], [ 'O', 46240 ],
[ 'L', 39990 ], [ 'C', 30033 ],
[ 'D', 28418 ], [ 'U', 25051 ],
[ 'G', 22480 ], [ 'P', 21003 ],
[ 'M', 20723 ], [ 'H', 17495 ],
[ 'B', 14941 ], [ 'Y', 11848 ],
[ 'F', 10150 ], [ 'V', 7756 ],
[ 'K', 7435 ], [ 'W', 6873 ],
[ 'Z', 3307 ], [ 'X', 2106 ],
[ 'J', 1591 ], [ 'Q', 1420 ]
]
Reduced to 13 groups [
[ 'E', 'P' ], [ 'S', 'M' ],
[ 'I', 'H' ], [ 'A', 'B' ],
[ 'R', 'Y' ], [ 'N', 'F' ],
[ 'T', 'V' ], [ 'O', 'K' ],
[ 'L', 'W' ], [ 'C', 'Z' ],
[ 'D', 'X' ], [ 'U', 'J' ],
[ 'G', 'Q' ]
]
STOP becomes STOE
ELITE becomes ELITE
FILM becomes NILS
FACADE becomes NACADE
dict_k13.txt written
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment