Transform a few numbers into one with key

  • Thread starter Thread starter gheelengooi
  • Start date Start date
  • Tags Tags
    Numbers Transform
AI Thread Summary
The discussion centers on the feasibility of transforming multiple numbers into a single number using a reversible key, with the intent to compress data for efficient wireless transmission. The original poster acknowledges a lack of expertise in number theory and cryptography but expresses interest in exploring mathematical transformations, particularly using ASCII representation, to achieve better results than simple numerical manipulation. However, responses highlight that compressing binary data into a smaller size without losing information is generally impossible. While specialized data compression techniques exist for specific types of data, utilizing established programs like gzip is recommended for practical applications. Additionally, various programming languages offer libraries for data compression, making it easier to implement without needing extensive knowledge. The conversation suggests that if the interest is purely theoretical, researching "data compression" could yield beneficial insights.
gheelengooi
Messages
12
Reaction score
0
Dear all,

Basically I am thinking of a possibility that I could transform several numbers into one using a key, which is reversible by using the same key afterwards, transform the one number back into its original separated form.

I am not really good in number theory or cryptography but I tried searching on Google, I see that there might be some solutions in these fields but I am not sure whether this is feasible. I do understand that doing that will cause some errors so I would like to study it.

In fact, I am thinking that representing the numbers using ASCII and perform some mathematical transformation might produce far better results than pure number manipulation.

Does anyone have any idea or experience of doing this? If yes, is there any reference source that you may provide?

Thank you so much!

p/s: I am doing this because I just want to compress a large array of data into a small size to save power on wireless radio transmission.
 
Technology news on Phys.org
gheelengooi said:
p/s: I am doing this because I just want to compress a large array of data into a small size to save power on wireless radio transmission.
This* is provably impossible to do. For any scheme you try to invent, you'll find that you increase the size on average.

*: Compressing binary data into a smaller amount of binary data without losing information[/size]



Now, if your data has special properties (e.g. it's a text document), there are things you can do. But people have already written programs to do this; using one of those is likely to be easier and far better than anything you try to do, unless you have some specialized knowledge about the data you're trying to compress.

If you're using a *NIX system, you should already have gzip and gunzip. I don't know any convenient choices for windows, though.

Several programming languages have libraries to let you do compression.


If you're just thinking about this for the fun of thinking about it, a good keyword would be "data compression".
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top