CCS353 Set2
CCS353 Set2
Fifth Semester
(Regulations 2021)
X: 40%
Y: 25%
Z: 20%
W: 10%
V: 5%
2. Construct the Huffman code for these symbols and calculate the average code length.
2.a) Develop a Python program to perform run-length encoding on a text string. Include error
handling and provide sample input and output to demonstrate its functionality.
b) Compare run-length encoding with other compression methods, such as Huffman coding
and Lempel-Ziv-Welch (LZW). Discuss the advantages and disadvantages of each
technique in different use cases.
3. Explain the basic concept of the Lempel-Ziv (LZ) algorithm. How does it work to achieve
data compression, and what makes it particularly effective for certain types of data?
01
4. Develop a Python program for arithmetic coding. Provide sample code and demonstrate
the compression of a user-defined input word using the provided letter frequencies.
5. Write a shell script that performs the task of converting all image files within the current
directory to JPEG format. Ensure that the script processes image files only and maintains
the original image files.
6. Implement the program according to the plan outlined in question 2. You may use
popular libraries like OpenCV to assist you. Provide the code and detailed explanations
for each step of the process.
7. Develop a comprehensive plan for creating a photo album of a recent trip. Include
considerations for selecting and preparing images, optimizing image dimensions, and
choosing suitable image formats.
8. Implement the program according to the plan outlined in question 2. Include details on
how you would process server logs and calculate content popularity. Provide sample
code snippets and explanations.
9. Implement the program according to the plan outlined in question 2. Provide sample code
snippets and explanations of how the program distributes and retrieves data across strips
while ensuring redundancy.
10. Implement the program according to the plan outlined in question 2. Provide code
examples and explanations of how your program efficiently schedules and processes
data stream requests.
02