CIS 658 Programming Assignment #4

CIS 658 Programming Assignment #4

<p> CIS 465 Programming Assignment #1 Due date: 4pm, Wednesday, February 18.</p><p>Program: Implement binary coding for run-length coding codewords.</p><p>Input: Two lines of input: first line contains a list of symbols in the alphabet, separating by one or more spaces; second line gives the maximum run length, the number of symbols in the uncompressed input and the number of codewords in the output (the actual sequence of codewords is not given).</p><p>Output: You should first output the coding table – one line per codeword in the RLC. Each line contains a symbol from the RLC and its coding (e.g. (A, 3) – 1001). Next you should compute and output the compression ratio of the run length coding.</p><p>Note that your 0s and 1s output is in ASCII format – you don’t need to work with any binary format data in this assignment.</p><p>Example run of program:</p><p>Input the symbols in the alphabet: A B Input the maximum run length, number of symbols in uncompressed input and the number of codewords in the RLC coding: 1 100 100</p><p>Binary coding of the codewords ------(A, 0) 00 (A, 1) 01 (B, 0) 10 (B, 1) 11</p><p>Compression ratio = 100*1 bits / 100*2 bits = 0.50 (No compression!)</p><p>Your program can be in any language with executable on Windows 7, Mac OS X or Linux (be sure to tell me which is the target for your executable!).</p><p>Submit: Source code (well formatted and with plenty of internal documentation), executable code (or class files for Java, for an interpreted language, no executable is required), document file (text format – include instructions for running your program and any limitations on input etc.), test cases (in another text file).</p><p>Note well – I will not compile your program - you must submit the executable! You should compress all of your files using zip format (not rar format or any other) and send the file to [email protected] by the due date/time.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us