Compare commits

..

10 Commits

Author SHA1 Message Date
zleyyij
f53ec50cf0 vault backup: 2024-08-01 16:13:11 2024-08-01 16:13:11 -06:00
zleyyij
473102f9bf vault backup: 2024-08-01 16:07:07 2024-08-01 16:07:07 -06:00
zleyyij
2b7e90fbc7 vault backup: 2024-08-01 16:02:07 2024-08-01 16:02:07 -06:00
zleyyij
017bee65bf vault backup: 2024-08-01 15:57:07 2024-08-01 15:57:07 -06:00
zleyyij
f79e7d72fa vault backup: 2024-08-01 15:51:21 2024-08-01 15:51:21 -06:00
zleyyij
f6b5c45237 vault backup: 2024-08-01 15:46:21 2024-08-01 15:46:21 -06:00
zleyyij
92fd6c325e vault backup: 2024-08-01 15:41:21 2024-08-01 15:41:21 -06:00
zleyyij
198bf3d194 vault backup: 2024-08-01 15:36:21 2024-08-01 15:36:21 -06:00
zleyyij
4f4c6d13fe vault backup: 2024-08-01 15:31:21 2024-08-01 15:31:21 -06:00
zleyyij
151df7b2d0 vault backup: 2024-08-01 14:57:36 2024-08-01 14:57:36 -06:00

13
notes/ANS Theory.md Normal file
View File

@ -0,0 +1,13 @@
<https://arxiv.org/abs/1311.2540>
In standard numeral systems, different digits are treated as containing the same amount of information. A 7 stores the same amount of info as a 9, which stores the same amount of info as a 1.
This makes the amount of information a single digit stores *uniform* across all digits. However, that's far from the most efficient way to represent most datasets.
ANS theory is based around the idea that digits that occur more often can be stored in a way that requires less information, and digits that occur less often can be stored using more information.
Taking a look at the standard binary numeral system, there are two digits in the set (0 and 1). Given a natural number represented in binary, eg `1010`, there are two different ways to *add information to that number*:
1. We can add a digit to the most significant position. As an example, adding a `1` to the above value would result in `11010`. Doing this means that the added digit stores information about *large ranges*. In the provided example, this means that setting that digit changes the value by 16.
2. We can add a digit to the least significant position. As an example, adding a `1` to the above value would result in `10101`. Changing the added digit will only change the resulting natural number by 1.
Given that $x$ represents a natural number, and $s$ is the digit we're adding. In a standard binary system, adding $s$ to the least significant position means that in the new number $x$ (before the addition) now represents the Nth appearance of an even (when $s = 0$ ), or odd (when $s = 1$).