{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

tut08_2009 - EE3206/EE5805 Java Programming Applications...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EE3206/EE5805 Java Programming & Applications Tutorial 8 – Exception Handling and Binary IO Run-length encoding (RLE) is a very simple form of data compression in which a run of data are stored as a pair of symbol and count , rather than as the original run. This is most useful on data that contains many such runs: for example, relatively simple graphic images such as icons, line drawings, and animations. For example, consider the following scan line where B represents a black pixel and W represents white: WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW When RLE data compression algorithm is applied to the above scan line, it becomes: W12 B1 W12 B3 W24 B1 W14 The new scan line is interpreted as twelve W's, one B, twelve W's, three B's, etc. Obviously, this representation is more compact and efficient. In this exercise, you are required to write a RLE Codec (co der/dec oder). 1. A RLE codeword is composed of a symbol and a count. Given the class Codeword in Code 1, study the code throughout and create this class in your project.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern