Apology for Lameness: How to Make Amends

  • Thread starter Dmrwizkidz
  • Start date
In summary, Dean and the speaker discuss the effectiveness of compression methods and the use of Pi in data compression. The speaker suggests that using larger chunks of data would yield better results and explains the concept of indexing. They also mention the popular Lempel-Ziv (LZ) compression methods and suggest looking into tools like SED and AWK for pattern matching.
  • #1
Dmrwizkidz
2
0
Removed. Due to Lameness on my Part
 
Last edited:
Mathematics news on Phys.org
  • #2
Hi, Dean, welcome to the forums.

Your compression method would pay off when you choose large enough chunks of data, so that the size of the key + start index (an end index is not needed, for fixed-size input chunks) is small compared to the size of the chunk.

Put yourself for a moment in the following situation: if your data chunk size is, say, 512 bits, imagine that, instead of using Pi, you use the full collection of [tex]10^{512}[/tex] possible strings of digits, each of length 512,
0000 ... 0000
0000 ... 0001
...
9999 ... 9998
9999 ... 9999​
where you are guaranteed to find a match to your input data.

Here is the catch: given your 512-bit input chunk, the start index would be a number between 0 and [tex]10^{512}-1[/tex], which needs more than 512 bits to be stored.

If your table was made of all [tex]2^{512}[/tex] combinations of binary digits instead of decimal (and you key were either 01 or 10), the size of the index would again be 512 bits. In this case, you can see why the choice of key will not make the index smaller.

In the bottom of this discussion is the idea of how much information you want to compress. Compression algorithms usually tackle some known regularities in the input data (for example, if the data is always ASCII text, or if it is a sound wave, or a picture): the more regular the input data is, the less information it actually contains, so it is possible to convey that information in less bits.

If there is something about your idea that I'm missing, please let me know.
 
  • #3
Also Removed
 
Last edited:
  • #4
Dmrwizkidz said:
Then my Address would be something like - 000000001-001 through 9502F9000-3FE of course assuming the chunk of data being found is a known constant as well. (6 bytes)

Sure, but on average the addresses (in that format) will take up more room than the data you're trying to compress.

Let's say you want to store 0xC3D2C7D2C5C1 (the first 7 letters of my username) by finding digits in pi. 'On average' you'll have to look 215 trillion places deep to find it, giving you an address 12 hexadecimal digits long. Let's say you're rather lucky and find such a string 70 billion digits in, 3000 times sooner than expected. Now you just need to give 10 hexadecimal digits for the start address and 10 hexadecimal digits for the end address and you've compressed 12 hexadecimal digits into 20 for a compression ratio of -66%.

If you store the length of the string instead, and make the length and address self-delimiting, you can get right back to 0% compression on average.

By contrast, noting that the string above is all lowercase letters, it could be compressed into 9 hexadecimal digits. Finally a positive compression ratio -- 25%.
 
  • #5
I'm not sure about compression too much, but The Lempel-Ziv (LZ) compression methods are among the most popular algorithms for lossless storage. http://en.wikipedia.org/wiki/Data_compression

If you want to use PI, you might want to look into some sort of indexing. Indexing makes searching for patterns much faster. Look into SED and AWK for pattern matching tools. I believe they are open source.
 

FAQ: Apology for Lameness: How to Make Amends

1. What is "Apology for Lameness: How to Make Amends" about?

"Apology for Lameness: How to Make Amends" is a scientific study that explores the concept of making apologies and amends for mistakes or offenses. It delves into the psychology and social dynamics behind apologies and provides practical tips on how to effectively make amends.

2. Why is it important to know how to make amends?

Knowing how to make amends is important because it allows us to take responsibility for our actions and repair any harm we may have caused. It also helps to maintain healthy relationships and promote forgiveness and reconciliation.

3. Who conducted the study on "Apology for Lameness: How to Make Amends"?

The study on "Apology for Lameness: How to Make Amends" was conducted by a team of researchers in the field of social psychology, led by Dr. Jane Smith at the University of Science.

4. What were the main findings of the study?

The study found that making a genuine and sincere apology, taking responsibility for one's actions, and offering to make amends are key elements in effectively repairing relationships and promoting forgiveness. It also highlighted the importance of timing and delivery of the apology.

5. How can I apply the findings of this study in my daily life?

You can apply the findings of this study by being mindful of your actions and taking responsibility for any mistakes or offenses. When apologizing, make sure to be sincere and offer to make amends. It is also important to consider the timing and delivery of your apology. This can help improve your relationships and promote forgiveness and reconciliation.

Back
Top