logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

Use C to implement order-preserving Huffman coding using thedynamic programming formulation described

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Goals:

  1. Understanding of Huffman code

  2. Understanding of the five steps for developing a dynamic programming

Requirements:

  1. Use C to implement order-preserving Huffman coding - using the dynamic programming formulation described in Notes C.

The input is 1) a positive integer n and 2) a sequence of n doubles giving the probabilities for symbols in an ordered character set. To simplify output, the character set will be referenced numerically as 0 . . . n - 1..

  1. Submit your C program on Canvas by 10:45 am (section 004) or 1:45 pm (section 003) on October 24. Comments at the beginning of the source file should include: your name, your ID number, and the command used to compile your code on Omega (5 point penalty for non-compliance).

Getting Started:

 

  1. Be sure to understand ordinary (greedy) Huffman codes and the dynamic programming solution for the optimal matrix multiplicaion ordering problem

  2. The code for filling in the cost matrix will be very similar to optimal matrix multiplication You are not required to include the cost matrix in your output.

  3. Outputting the optimal order-preserving Huffman code tree is just like outputting the tree for the optimal matrix multiplication

  4. Determining the bit string for each character requires navigating a path down the tree stored within the cost matrix. Going left gives a 0, going right gives a 1. (Recursion is not )

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

636 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

530 Answers

Hire Me
expert
Husnain SaeedComputer science

666 Answers

Hire Me
expert
Atharva PatilComputer science

870 Answers

Hire Me

Get Free Quote!

400 Experts Online