Sponsored Links


Results 1 to 2 of 2

Thread: CS301 Data Structure Assignments No.4 Solution Fall 2014 Due Date 17th July 2014

  1. #1
    Senior Member Entboy's Avatar
    Join Date
    Dec 2011
    Posts
    5,454

    CS301 Data Structure Assignments No.4 Solution Fall 2014 Due Date 17th July 2014

    Sponsored Links1





    CS301 Data Structure Assignments No.4 Solution Fall 2014 Due Date 17th July 2014

    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

    Sponsored Links

    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

  2. #2
    Senior Member
    Join Date
    Oct 2012
    Posts
    323
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-24-2014, 05:41 PM
  2. CS301 Data Structure Assignments No.2 Solution and Discussion Fall 2014
    By vuassignments in forum Assignments & Solutions
    Replies: 1
    Last Post: 05-28-2014, 05:41 PM
  3. CS301-Data Structures Assignment No.3 Fall 2014 Due Date 13-01-2014
    By vuassignments in forum Assignments & Solutions
    Replies: 0
    Last Post: 01-09-2014, 04:06 PM
  4. Replies: 7
    Last Post: 11-02-2011, 04:32 AM
  5. Replies: 8
    Last Post: 11-07-2010, 05:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft