7/18/2016 Justin Coslor
Hash Table related examples for Coslor Compression
-------------------------------------------------------------------------------
[MULTIPLICATION]
1001 ==> "56"
For example we use 56 as a base, similar to a "Portal" we can convert large numbers into  multiples of compressed numbers.

Given:
1001 ==> "56"
3927 ==> "90"
4290 ==> "55"
Here below we have enough digits saved to make it worthwhile.
16,863,676,830 ==> "56*90*55"  (Including the quotation marks this still saves one digit. However, working with numbers in the billions or beyond might be difficult. Note though, that in the decompressed number (16863676830) in use commas would not be used but I just left them in there to make the digits easier to count for this example.)

Perhaps we can work it for most composite numbers?
--------------------------------------------------------
[SMALLER MULTIPLICATION]
For example we use 56 as a base, similar to a "Portal" we can convert large numbers into  multiples of compressed numbers.
2002 ==> "56*2"
3003 ==> "56*3"
4004 ==> "56*4"
Etc. However for the multiplication version we will want to use much larger numbers for the multiple because we have to save digits to cover the quotes and multiplication symbols).
999,999 ==> "56*999" because 56 ==> 1001 and 1001*999=999,999
10,008,999 ==> "56*9999"
10,009,998,999 ==> "56*9,999,999"
See in the above part we did not save enough digits to cover the quotes and multiplication symbol.

---------------------------------------------------------
[ADDITION]
Compression: 1001 ==> "56"
Compression: 1002 ==> "56+1"
Compression: 1003 ==> "56+2"
Compression: 1003 ==> "56+3"
Compression: 1004 ==> "56+4"
Compression: 1005 ==> "56+5"
Compression: 1006 ==> "56+6
Compression: 1007 ==> "56+7"
Compression: 1008 ==> "56+8"
Compression: 1009 ==> "56+9"
------------------------------------------------------------
[SUBTRACTION]
Compression: 1000 ==> "56-1"
Compression: 999 => "56-2"
Compression: 999 => "56-3"
Etc. However, we will need to use starting numbers as the base that are five digits or larger that have three or more savings (and maybe even two symbols more than that to include quoting of compressed numbers) to make it worthwhile.
1001 ==> "56"