انت هنا الان : شبكة جامعة بابل > موقع الكلية > نظام التعليم الالكتروني > مشاهدة المحاضرة

Data Compression Seminar Topics

الكلية كلية العلوم للبنات     القسم قسم الحاسبات     المرحلة 4
أستاذ المادة علي كاظم محمد هداب الغرابات       15/11/2016 15:27:23
Sometimes it is acceptable to “compress” text by simply throwing away some
information. This is called irreversible text compression or compaction. The
decompressed text will not be identical to the original, so such methods are not general
purpose; they can only be used in special cases.
For example: A run of consecutive blank spaces may be replaced by a single space.
This may be acceptable in literary texts and in most computer programs, but it should
not be used when the data is in tabular form.
In extreme cases all text characters except letters and spaces may be thrown away,
and the letters may be case flattened (converted to all lower- or all uppercase). This
will leave just 27 symbols, so a symbol can be encoded in 5 instead of the usual 8 bits.
The compression ratio is 5/8 = .625, not bad, but the loss may normally be too great.
Ad Hoc Text Compression
Here are some simple, intuitive ideas for cases where the compression must be
reversible (lossless).
If the text contains many spaces but they are not clustered, they may be removed and
their positions indicated by a bit-string that contains a 0 for each text character that is
not a space and a 1 for each space. Thus, the text
Here are some ideas,
Is encoded as the bit-string “0000100010000100000” followed by the text
Herearesomeideas.
If the number of blank spaces is small, the bit-string will be sparse.
The Variable length codes
Variable length codes are desirable for data compression because overall savings
may be achieved by assigning short codewords to frequently occurring symbols and

المادة المعروضة اعلاه هي مدخل الى المحاضرة المرفوعة بواسطة استاذ(ة) المادة . وقد تبدو لك غير متكاملة . حيث يضع استاذ المادة في بعض الاحيان فقط الجزء الاول من المحاضرة من اجل الاطلاع على ما ستقوم بتحميله لاحقا . في نظام التعليم الالكتروني نوفر هذه الخدمة لكي نبقيك على اطلاع حول محتوى الملف الذي ستقوم بتحميله .