Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS301 Data Structure Assignments No.4 Solution Fall 2014 Due Date 17th July 2014
#1



[SIZE="5"][B] CS301 Data Structure Assignments No.4 Solution Fall 2014 Due Date 17th July 2014
[/SIZE]
Objective

The objective of this assignment is to make you familiar with the compression and compression technique like Huffman Encoding.

We have 21 characters. Of these, 17 characters are alphabets, 4 spaces . The ASCII code for space is 32.The ASCII value for ‘a’ is 95 and the value of A is 65. How many

bits we need to send 21 characters? As every character is of 8 bits, therefore for 21

characters, we need 21 * 8 = 168 we can save around 40% using the Huffman

algorithm.

Original text:

Deer is dear but dear

size: 21 characters (space)

Letters : Frequency

SP : 4

a : 2

b : 1

d : 3

e : 4

r : 3

h : 1

I : 1

S : 1

T : 1[/B]
Reply
#2
we have 21 characters. Of these, 17 characters are alphabets, 4 spaces . The ASCII code for space is 32.The ASCII value for ‘a’ is 95 and the value of A is 65. How many

bits we need to send 21 characters? As every character is of 8 bits, therefore for 21

characters, we need 21 * 8 = 168 we can save around 40% using the Huffman

algorithm.

Original text:

Deer is dear but dear

size: 21 characters (space)

Letters : Frequency

SP : 4

a : 2

b : 1

d : 3

e : 4

r : 3

h : 1

I : 1

S : 1

T : 1
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cs301 assignment no 3 Solution 20 January 2016 Vuhelper 0 11,086 01-20-2016, 03:32 PM
Last Post: Vuhelper
  CS201 Assignment vo 3 Solution 20th January 2016 Vuhelper 2 2,594 01-20-2016, 03:28 PM
Last Post: Vuhelper
  CS101 Assignment no 3 Solution 20th January 2016 Vuhelper 0 2,278 01-20-2016, 03:25 PM
Last Post: Vuhelper
  SOC101 INTRODUCTION TO SOCIOLOGY assignment no 3 Solution 20 January 2016 Vuhelper 0 1,868 01-20-2016, 03:19 PM
Last Post: Vuhelper
  CS402 Assignment No 4 Solution & Discussion Xpert 0 2,093 08-01-2015, 02:33 AM
Last Post: Xpert
  cs101 Assignment No. 1 Solution 21 may spring 2015 semester Xpert 0 2,907 05-21-2015, 12:41 AM
Last Post: Xpert
  Assignment solution eng 301 due date 20 may 2015 rumesa khan 3 4,526 05-20-2015, 01:34 AM
Last Post: Xpert
  PHY301 Circuit Theory Assignment No. 1 idea Solution spring may 2015 semester Xpert 0 1,557 05-15-2015, 03:52 AM
Last Post: Xpert
  Assignment No. 01 Spring 2015 Information Systems CS507 idea solution spring 2015 Xpert 0 2,445 05-15-2015, 03:49 AM
Last Post: Xpert
  cs401 assignment no 1 spring may 2015 solution for idea Xpert 0 4,369 05-15-2015, 03:45 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 1 Guest(s)