Compressing 24 Numbers to 6: A Guide

  • Thread starter Hypercase
  • Start date
  • Tags
    Numbers
In summary, To compress 24 numbers into less than 6 numbers, you can use a specific sequence as a spacer to combine all the numbers into one giant number. Then, switch to a higher base to reduce the number of digits. However, this technique increases the total number of digits. Other ways of compressing numbers may involve using a different number base or prime numbers.
  • #1
Hypercase
62
0
How do i compress 24 numbers to something like 1 to 6 numbers.
For example consider these numbers:-
134217736
14336
16515072
-33554425
768
229376
25165825
-1073741376
16834306
16776192
-1048449
-268402704
16775169
-1336671440
1141059650
53494531
809567024
1090728001

Please help me with an algorithim that will compress these to less than 6 numbers, and that i can reverse the effect of and obtain these number back at a later stage.
Is there any other way that you can think of compressing numbers.
Thanx in advance.
-Cheers.
 
Mathematics news on Phys.org
  • #2
If you work with a different number base other than 10 you will be able to shrink how long the numbers are. For example 100 in base 100 would just be 10. Just try to find a different base that will work for you.
 
  • #3
heh, my compsci lecturer was talking about how she did something like that for her masters thesis, involving prime numbers :S, compressing >60 digit numbers
 
  • #4
Are you trying to reduce the number of digits in each number (the number of numbers remains unchanged), or the total number of numbers (digits of no concern), or do you want to reduce the total number of digits (just reduce memory space...how , doesn't matter) ?
 
  • #5
Im hoping to reduce the number of numbers.
I suppose reducing the number of digits would help too.

-Cheers.
 
  • #6
Here's an approach that reduces the number of numbers by any amount you desire...but it increases the total number of digits :

append numbers to each other using a specific sequence (key) as a spacer. Choose the key such that it does not already exist among your numbers. For your numbers, say you pick the sequence 1234 (as that does not appear anywhere) as your spacer.

Now you can combine all your numbers into one giant number with several 1234s in it.

So, you'd have : 1342177361234143361234165150721234-3355442512347681234...

Now, if you wish you can switch to a higher base, to reduce the number of digits (though you'll need more types of digits).
 
Last edited:

1. How does compressing 24 numbers to 6 work?

The process of compressing 24 numbers to 6 involves using mathematical algorithms to reduce the amount of data needed to represent the original numbers. This is done by identifying patterns and redundancies in the data and finding ways to represent them more efficiently.

2. What are the benefits of compressing numbers?

Compressing numbers can save storage space and reduce the amount of time and resources needed to transmit or process the data. It can also improve the overall efficiency and speed of data processing and analysis.

3. Can any type of numbers be compressed?

Yes, any type of numbers can be compressed using mathematical algorithms. However, the effectiveness of compression may vary depending on the type and complexity of the numbers being compressed.

4. Is compressing numbers reversible?

In most cases, compressing numbers is reversible. This means that the original numbers can be restored from the compressed version without any loss of information. However, some compression algorithms may result in a slight loss of precision.

5. How can I determine the best compression method for my data?

The best compression method for your data will depend on various factors such as the type of data, its complexity, and the desired level of compression. It is recommended to test and compare different compression methods to determine which one works best for your specific data set.

Similar threads

  • General Math
Replies
2
Views
883
  • General Math
Replies
7
Views
2K
  • General Math
Replies
13
Views
3K
  • General Math
Replies
2
Views
1K
Replies
6
Views
1K
Replies
9
Views
1K
Replies
3
Views
3K
  • High Energy, Nuclear, Particle Physics
Replies
12
Views
3K
  • General Math
Replies
3
Views
2K
Back
Top