Data_compression

context: In signal processing, data compression, source coding, or bit-rate reduction involves encoding information using fewer bits than the original representation. Compression can be either lossy or lossless. Lossless compression reduces bits by identifying and eliminating statistical redundancy. No information is lost in lossless compression. Lossy compression reduces bits by identifying unnecessary information and removing it. The process of reducing the size of a data file is referred to as data compression. In the context of data transmission, it is called source coding (encoding done at the source of the data before it is stored or transmitted) in opposition to channel coding.
qas: answers: text: data compression
question: What involves encoding information using fewer bits than the original representation?

answers: text: Compression
question: What can be either lossy or lossless?

answers: text: Lossless compression
question: What reduces bits by identifying and eliminating statistical redundancy? 

answers: text: data compression
question: What is the process called of reducing the size of a data file?

answers: text: source coding
question: What is the process called of encoding at the source of the data before it's processed?

context: Compression is useful because it helps reduce resource usage, such as data storage space or transmission capacity. Because compressed data must be decompressed to use, this extra processing imposes computational or other costs through decompression; this situation is far from being a free lunch. 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. The design of data compression schemes involves trade-offs among various factors, including the degree of compression, the amount of distortion introduced (when using lossy data compression), and the computational resources required to compress and decompress the data.
qas: answers: text: Compression
question: What helps reduce resource usage?

answers: text: compressed data
question: What must be decompressed? 

answers: text: Data compression
question: What is subject to a space-time complexity trade off? 

answers: text: data compression
question: What type of scheme involves trade offs among other things?

context: Lossless data compression algorithms usually exploit statistical redundancy to represent data without losing any information, so that the process is reversible. Lossless compression is possible because most real-world data exhibits statistical redundancy. For example, an image may have areas of colour that do not change over several pixels; instead of coding "red pixel, red pixel, ..." the data may be encoded as "279 red pixels". This is a basic example of run-length encoding; there are many schemes to reduce file size by eliminating redundancy.
qas: answers: text: Lossless data compression algorithms
question: What usually exploits statistical redundancy?

answers: text: Lossless compression
question: What represents statistical redundancy?

answers: text: an image
question: What may have colors that do not change over several pixels?

context: The Lempel–Ziv (LZ) compression methods are among the most popular algorithms for lossless storage. DEFLATE is a variation on LZ optimized for decompression speed and compression ratio, but compression can be slow. DEFLATE is used in PKZIP, Gzip and PNG. LZW (Lempel–Ziv–Welch) is used in GIF images. Also noteworthy is the LZR (Lempel-Ziv–Renau) algorithm, which serves as the basis for the Zip method.[citation needed] LZ methods use a table-based compression model where table entries are substituted for repeated strings of data. For most LZ methods, this table is generated dynamically from earlier data in the input. The table itself is often Huffman encoded (e.g. SHRI, LZX). Current LZ-based coding schemes that perform well are Brotli and LZX. LZX is used in Microsoft's CAB format.
qas: answers: text: Lempel–Ziv (LZ)
question: What compression methods are among the most popular?

answers: text: DEFLATE
question: What is used in PKZIP, Gzip and PNG?

answers: text: LZR
question: What serves as the basis of the Zip method?

answers: text: Brotli
question: What is a current LZ based coding scheme that does well?

answers: text: LZX
question: What is used in Microsoft's CAB format?

context: In a further refinement of the direct use of probabilistic modelling, statistical estimates can be coupled to an algorithm called arithmetic coding. Arithmetic coding is a more modern coding technique that uses the mathematical calculations of a finite-state machine to produce a string of encoded bits from a series of input data symbols. It can achieve superior compression to other techniques such as the better-known Huffman algorithm. It uses an internal memory state to avoid the need to perform a one-to-one mapping of individual input symbols to distinct representations that use an integer number of bits, and it clears out the internal memory only after encoding the entire string of data symbols. Arithmetic coding applies especially well to adaptive data compression tasks where the statistics vary and are context-dependent, as it can be easily coupled with an adaptive model of the probability distribution of the input data. An early example of the use of arithmetic coding was its use as an optional (but not widely used) feature of the JPEG image coding standard. It has since been applied in various other designs including H.264/MPEG-4 AVC and HEVC for video coding.
qas: answers: text: statistical estimates
question: What can be paired with an algorithm called arithmetic coding?

answers: text: Arithmetic coding
question: What can achieve superior compression?

answers: text: Huffman algorithm
question: What uses an internal memory state?

context: Lossy data compression is the converse of lossless data compression. In these schemes, some loss of information is acceptable. Dropping nonessential detail from the data source can save storage space. Lossy data compression schemes are designed by research on how people perceive the data in question. For example, the human eye is more sensitive to subtle variations in luminance than it is to the variations in color. JPEG image compression works in part by rounding off nonessential bits of information. There is a corresponding trade-off between preserving information and reducing size. A number of popular compression formats exploit these perceptual differences, including those used in music files, images, and video.
qas: answers: text: Lossy
question: What type of data compression is the converse of lossless date data compression?

answers: text: Dropping nonessential detail from the data source
question: What can save storage space?

answers: text: JPEG image compression
question: What helps by eliminating off nonessential bits of information?

context: In lossy audio compression, methods of psychoacoustics are used to remove non-audible (or less audible) components of the audio signal. Compression of human speech is often performed with even more specialized techniques; speech coding, or voice coding, is sometimes distinguished as a separate discipline from audio compression. Different audio and speech compression standards are listed under audio coding formats. Voice compression is used in internet telephony, for example, audio compression is used for CD ripping and is decoded by the audio players.
qas: answers: text: audio compression
question: What is used for CD ripping?

answers: text: psychoacoustics
question: What methods are used to remove non-audible components of audio signals?

answers: text: human speech
question: What compression is usually performed with even more specialized techniques?

answers: text: Voice compression
question: What is used in internet telephony? 

answers: text: audio compression
question: What is encoded by audio players?

context: There is a close connection between machine learning and compression: a system that predicts the posterior probabilities of a sequence given its entire history can be used for optimal data compression (by using arithmetic coding on the output distribution) while an optimal compressor can be used for prediction (by finding the symbol that compresses best, given the previous history). This equivalence has been used as a justification for using data compression as a benchmark for "general intelligence."
qas: answers: text: compression
question: What is Machine learning closely related to?

answers: text: optimal
question: What type of compressor can be used for prediction?

answers: text: data compression
question: What has been used as a benchmark for "general intelligence"?

context: Data compression can be viewed as a special case of data differencing: Data differencing consists of producing a difference given a source and a target, with patching producing a target given a source and a difference, while data compression consists of producing a compressed file given a target, and decompression consists of producing a target given only a compressed file. Thus, one can consider data compression as data differencing with empty source data, the compressed file corresponding to a "difference from nothing." This is the same as considering absolute entropy (corresponding to data compression) as a special case of relative entropy (corresponding to data differencing) with no initial data.
qas: answers: text: Data compression
question: What can be looked at as a special case of data differencing? 

answers: text: Data differencing
question: What is made up of producing a difference given a source and a target?

answers: text: data compression
question: What can classified as data differencing with empty source data?

context: Audio data compression, not to be confused with dynamic range compression, has the potential to reduce the transmission bandwidth and storage requirements of audio data. Audio compression algorithms are implemented in software as audio codecs. Lossy audio compression algorithms provide higher compression at the cost of fidelity and are used in numerous audio applications. These algorithms almost all rely on psychoacoustics to eliminate less audible or meaningful sounds, thereby reducing the space required to store or transmit them.
qas: answers: text: Audio data compression
question: What has the potential to reduce the transmission bandwidth and storage requirements of audio data?

answers: text: Audio compression algorithms
question: What is inserted in software as audio codecs?

answers: text: Lossy
question: What compression algorithms provide higher compression at the cost of fidelity?

context: Lossless audio compression produces a representation of digital data that decompress to an exact digital duplicate of the original audio stream, unlike playback from lossy compression techniques such as Vorbis and MP3. Compression ratios are around 50–60% of original size, which is similar to those for generic lossless data compression. Lossless compression is unable to attain high compression ratios due to the complexity of waveforms and the rapid changes in sound forms. Codecs like FLAC, Shorten and TTA use linear prediction to estimate the spectrum of the signal. Many of these algorithms use convolution with the filter [-1 1] to slightly whiten or flatten the spectrum, thereby allowing traditional lossless compression to work more efficiently. The process is reversed upon decompression.
qas: answers: text: Lossless audio compression
question: What produces a representation of digital data that decompresses?

answers: text: Lossless
question: What compression cannot attain high compression ratios?

answers: text: Compression ratios
question: What are around 50-60% of the original size?

context: Lossy audio compression is used in a wide range of applications. In addition to the direct applications (mp3 players or computers), digitally compressed audio streams are used in most video DVDs, digital television, streaming media on the internet, satellite and cable radio, and increasingly in terrestrial radio broadcasts. Lossy compression typically achieves far greater compression than lossless compression (data of 5 percent to 20 percent of the original stream, rather than 50 percent to 60 percent), by discarding less-critical data.
qas: answers: text: Lossy
question: What compression is used in a lot of applications?

answers: text: digitally compressed audio streams
question: What is used in most video DVDs?

answers: text: Lossy
question: What compression usually achieves far greater compression then lossless? 

context: To determine what information in an audio signal is perceptually irrelevant, most lossy compression algorithms use transforms such as the modified discrete cosine transform (MDCT) to convert time domain sampled waveforms into a transform domain. Once transformed, typically into the frequency domain, component frequencies can be allocated bits according to how audible they are. Audibility of spectral components calculated using the absolute threshold of hearing and the principles of simultaneous masking—the phenomenon wherein a signal is masked by another signal separated by frequency—and, in some cases, temporal masking—where a signal is masked by another signal separated by time. Equal-loudness contours may also be used to weight the perceptual importance of components. Models of the human ear-brain combination incorporating such effects are often called psychoacoustic models.
qas: answers: text: Equal-loudness contours
question: What may be used to weight the importance of components?

answers: text: Models of the human ear-brain
question: What are often called psychoacoustic models?

answers: text: temporal masking
question: What is the process called when a signal is masked by another signal separated by time?

context: Other types of lossy compressors, such as the linear predictive coding (LPC) used with speech, are source-based coders. These coders use a model of the sound's generator (such as the human vocal tract with LPC) to whiten the audio signal (i.e., flatten its spectrum) before quantization. LPC may be thought of as a basic perceptual coding technique: reconstruction of an audio signal using a linear predictor shapes the coder's quantization noise into the spectrum of the target signal, partially masking it.
qas: answers: text: linear predictive coding
question: What is the coding called that is used with speech?

answers: text: linear predictive coding
question: What is thought of as a basic perceptual coding technique?

answers: text: source-based coders
question: What uses a model of the sound's generator? 

context: Latency results from the methods used to encode and decode the data. Some codecs will analyze a longer segment of the data to optimize efficiency, and then code it in a manner that requires a larger segment of data at one time to decode. (Often codecs create segments called a "frame" to create discrete data segments for encoding and decoding.) The inherent latency of the coding algorithm can be critical; for example, when there is a two-way transmission of data, such as with a telephone conversation, significant delays may seriously degrade the perceived quality.
qas: answers: text: Latency
question: What results from methods used to encode and decode data?

answers: text: codecs
question: What analyzes a statement of data to boost performance?

answers: text: codecs
question: What creates segments called a "frame"?

context: In contrast to the speed of compression, which is proportional to the number of operations required by the algorithm, here latency refers to the number of samples that must be analysed before a block of audio is processed. In the minimum case, latency is zero samples (e.g., if the coder/decoder simply reduces the number of bits used to quantize the signal). Time domain algorithms such as LPC also often have low latencies, hence their popularity in speech coding for telephony. In algorithms such as MP3, however, a large number of samples have to be analyzed to implement a psychoacoustic model in the frequency domain, and latency is on the order of 23 ms (46 ms for two-way communication)).
qas: answers: text: latency
question: What refers to the number of samples that must be analysed before a block of audio is processed?

answers: text: latency
question: What has zero samples in a minimum case?

answers: text: LPC
question: What often has low latencies?

context: If the data to be compressed is analog (such as a voltage that varies with time), quantization is employed to digitize it into numbers (normally integers). This is referred to as analog-to-digital (A/D) conversion. If the integers generated by quantization are 8 bits each, then the entire range of the analog signal is divided into 256 intervals and all the signal values within an interval are quantized to the same number. If 16-bit integers are generated, then the range of the analog signal is divided into 65,536 intervals.
qas: answers: text: voltage
question: What varies with time?

answers: text: data
question: What has to be compressed in order to perform properly? 

answers: text: analog-to-digital
question: What does "A/D" stand for?

context: A literature compendium for a large variety of audio coding systems was published in the IEEE Journal on Selected Areas in Communications (JSAC), February 1988. While there were some papers from before that time, this collection documented an entire variety of finished, working audio coders, nearly all of them using perceptual (i.e. masking) techniques and some kind of frequency analysis and back-end noiseless coding. Several of these papers remarked on the difficulty of obtaining good, clean digital audio for research purposes. Most, if not all, of the authors in the JSAC edition were also active in the MPEG-1 Audio committee.
qas: answers: text: literature compendium
question: What was published in the IEEE Journal in 1988?

answers: text: finished, working audio coders
question: What did the literature compendium document?

answers: text: MPEG-1 Audio committee
question: Where were most of the authors in the JSAC edition?

context: The world's first commercial broadcast automation audio compression system was developed by Oscar Bonello, an engineering professor at the University of Buenos Aires. In 1983, using the psychoacoustic principle of the masking of critical bands first published in 1967, he started developing a practical application based on the recently developed IBM PC computer, and the broadcast automation system was launched in 1987 under the name Audicom. Twenty years later, almost all the radio stations in the world were using similar technology manufactured by a number of companies.
qas: answers: text: Oscar Bonello
question: Who developed the first commercial broadcast automation audio compression system?

answers: text: Oscar Bonello
question: Who was an engineering professor at the University of Buenos Aires?

answers: text: broadcast automation system
question: What was launched in 1987 under the name Audicom?

context: The majority of video compression algorithms use lossy compression. Uncompressed video requires a very high data rate. Although lossless video compression codecs perform at a compression factor of 5-12, a typical MPEG-4 lossy compression video has a compression factor between 20 and 200. As in all lossy compression, there is a trade-off between video quality, cost of processing the compression and decompression, and system requirements. Highly compressed video may present visible or distracting artifacts.
qas: answers: text: video compression algorithms
question: What all mostly use lossy compression?

answers: text: Uncompressed video
question: What requires a high data rate?

answers: text: Highly compressed video
question: What may present visible or distracting artifacts?

context: Some video compression schemes typically operate on square-shaped groups of neighboring pixels, often called macroblocks. These pixel groups or blocks of pixels are compared from one frame to the next, and the video compression codec sends only the differences within those blocks. In areas of video with more motion, the compression must encode more data to keep up with the larger number of pixels that are changing. Commonly during explosions, flames, flocks of animals, and in some panning shots, the high-frequency detail leads to quality decreases or to increases in the variable bitrate.
qas: answers: text: video
question: What compression typically operate on square-shaped groups of pixels?

answers: text: macroblocks
question: What only sends the differences within those pixels and blocks?

answers: text: variable bitrate
question: What does high-frequency detail lead to?

context: Video data may be represented as a series of still image frames. The sequence of frames contains spatial and temporal redundancy that video compression algorithms attempt to eliminate or code in a smaller size. Similarities can be encoded by only storing differences between frames, or by using perceptual features of human vision. For example, small differences in color are more difficult to perceive than are changes in brightness. Compression algorithms can average a color across these similar areas to reduce space, in a manner similar to those used in JPEG image compression. Some of these methods are inherently lossy while others may preserve all relevant information from the original, uncompressed video.
qas: answers: text: Video data
question: What may be represented as a series of still image frames?

answers: text: Compression algorithms
question: What can average a color across similar areas to reduce space?

answers: text: color
question: What is hard to tell with smaller differences involved?

context: The most powerful used method works by comparing each frame in the video with the previous one. If the frame contains areas where nothing has moved, the system simply issues a short command that copies that part of the previous frame, bit-for-bit, into the next one. If sections of the frame move in a simple manner, the compressor emits a (slightly longer) command that tells the decompressor to shift, rotate, lighten, or darken the copy. This longer command still remains much shorter than intraframe compression. Interframe compression works well for programs that will simply be played back by the viewer, but can cause problems if the video sequence needs to be edited.
qas: answers: text: longer command
question: What still remains much shorter than intraframe compression?

answers: text: the system simply issues a short command
question: What happens when a frame contains areas where nothing has moved?

answers: text: video
question: What is a sequence that can be edited?

context: Because interframe compression copies data from one frame to another, if the original frame is simply cut out (or lost in transmission), the following frames cannot be reconstructed properly. Some video formats, such as DV, compress each frame independently using intraframe compression. Making 'cuts' in intraframe-compressed video is almost as easy as editing uncompressed video: one finds the beginning and ending of each frame, and simply copies bit-for-bit each frame that one wants to keep, and discards the frames one doesn't want. Another difference between intraframe and interframe compression is that, with intraframe systems, each frame uses a similar amount of data. In most interframe systems, certain frames (such as "I frames" in MPEG-2) aren't allowed to copy data from other frames, so they require much more data than other frames nearby.
qas: answers: text: interframe compression
question: What copies data from one frame to another?

answers: text: DV
question: What is a type of video format?

answers: text: Making 'cuts'
question: What is almost as easy as editing uncompressed video?

context: Today, nearly all commonly used video compression methods (e.g., those in standards approved by the ITU-T or ISO) apply a discrete cosine transform (DCT) for spatial redundancy reduction. The DCT that is widely used in this regard was introduced by N. Ahmed, T. Natarajan and K. R. Rao in 1974. Other methods, such as fractal compression, matching pursuit and the use of a discrete wavelet transform (DWT) have been the subject of some research, but are typically not used in practical products (except for the use of wavelet coding as still-image coders without motion compensation). Interest in fractal compression seems to be waning, due to recent theoretical analysis showing a comparative lack of effectiveness of such methods.
qas: answers: text: discrete cosine transform
question: What do all commonly used video compression methods use?

answers: text: spatial redundancy reduction
question: What does a DCT do?

answers: text: fractal compression
question: What is not used in practical products? 

context: Genetics compression algorithms are the latest generation of lossless algorithms that compress data (typically sequences of nucleotides) using both conventional compression algorithms and genetic algorithms adapted to the specific datatype. In 2012, a team of scientists from Johns Hopkins University published a genetic compression algorithm that does not use a reference genome for compression. HAPZIPPER was tailored for HapMap data and achieves over 20-fold compression (95% reduction in file size), providing 2- to 4-fold better compression and in much faster time than the leading general-purpose compression utilities. For this, Chanda, Elhaik, and Bader introduced MAF based encoding (MAFE), which reduces the heterogeneity of the dataset by sorting SNPs by their minor allele frequency, thus homogenizing the dataset. Other algorithms in 2009 and 2013 (DNAZip and GenomeZip) have compression ratios of up to 1200-fold—allowing 6 billion basepair diploid human genomes to be stored in 2.5 megabytes (relative to a reference genome or averaged over many genomes).
qas: answers: text: Genetics
question: What are the latest generation of lossless algorithms? 

answers: text: MAFE
question: What encoding reduces the heterogeneity of a dataset by sorting SNPs?

answers: text: DNAZip and GenomeZip
question: What two algorithms have compression ratios of up to 1200-fold?