Questions tagged [compression]

Use this tag for questions about encoding information using fewer bits than the original representation.

Compression involves encoding information using fewer bits than the original representation.

Compression can be lossless or lossy. Lossless compression reduces bits by eliminating statistical redundancy so that no information is lost. Lossy compression reduces bits by removing unnecessary or less important information.

The process of reducing the size of a data file is often called data compression. In the context of data transmission, it is called source coding, which is encoding done at the source of the data before it is stored or transmitted. Source coding should not be confused with channel coding, for error detection and correction, or line coding, the means for mapping data onto a signal.

Compression is useful because it reduces resources required to store and transmit data. Computational resources are consumed in the compression process and, usually, in the reversal of the process (decompression). Data compression is subject to a space-time complexity trade-off. For instance, a compression scheme for video may require expensive hardware for the video to be decompressed fast enough to be viewed as it is being decompressed, and the option to decompress the video in full before watching it may be inconvenient or require additional storage. Design of data compression schemes involves trade-offs among various factors including the degree of compression, the amount of distortion introduced (if using lossy data compression), and computational resources required to compress and decompress the data.

107 questions
4
votes
2 answers

squashed sine wave

Sinewave I'm slightly out of my comfort zone with this one. I need to produce a function for use in an animation, but a sine wave isn't quite right. I tried adding a square wave, but that didn't work either. What think I need is a "squashed" sine…
Grill
  • 43
1
vote
1 answer

Manual Text Compression Algorithm (done by hand)

Last year (I'm in 10th grade), during most unit/chapter tests, we were allowed to bring notes. We could prepare a 3 x 5 in. (7.62 x 12.7 cm) index card at home, and cram it with as many notes as possible; this index card could then be used on the…
0
votes
0 answers

Substring matching: minimum search distance after first successful match

Consider a string $x$ over some alphabet. The elements of the string are noted $x[0]$, $x[1]$, etc. $x[p,q]$ denotes the substring starting at index $p$ and ending at index $q$. Assume the substring $x[0,L-1]$ is equal to $x[D,D+L-1]$, but $x[L]…
alex137
  • 19
-1
votes
1 answer

compressing random permutation of N

Is it possible to compress the given random permutation of any integer using N*(lg(N) -1) bits? For example if N= 512, then it could be represented using 512 * 9 = 4608 bits and its optimal representation can be represented using 4096 bits total. I…