In: Computer Science
Please I need clear and typed answers to these two questions:
Q1)Explain the two types of file compression? Then determine the best compression strategy suited for: a- Photograph of sailboat on ocean. b- Journal article explaining nanotechnology.
Q2)What are the advantages and disadvantages of Description-Based Encoding and Command-Based Encoding?
1)
There are two types of file compression: Lossy compression and
Lossless compression.
Lossy compression does not allow to reconstruct from the compressed
data, if any original data is compressed then we can not
reconstruct the original data. Lossy compression are used to reduce
data size for storage, and transmitting content.
Lossless compression allows the original data to reconstruct from
the compressed data, thats why it is known as lossless because no
data is lost in such type of file compression. For example, it is
used in the ZIP file format and in the GNU tool gzip.
2)
Advantage of Description based encoding: It represents the detailed
description of discrete elements that will comprise the media.
Detailed editing is supported by this. It represents natural scenes
and sound.
Disadvantages of Description based encoding: In this, size of file
is very large and loss quality is enlarged.
Advantage of Command based encoding: It is a set of instructions
that followed by the computer for producing the digital media. Its
size of files are small and also scaled without distortion.
Disadvantages of Command based encoding: It is not appropriate for
natural sounds. It requires knowledge of
vector image.