Results 1 to 3 of 3
  1. #1
    warlock is offline Member
    Join Date
    Mar 2011
    Posts
    16
    Rep Power
    0

    Default huffman coding in java

    I am writing codes to implement Huffman encoding/decoding scheme.I have counted the frequency of characters and stored them in a hashmap.but I am struggling on the next part where I have to build the Huffman tree.How to start doing so.Please help

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default

    So, A Hash structure is unordered. Before you can go to the next step, you need to order the frequency nodes in ascending order. Don't you have a textbook for this?

Similar Threads

  1. Replies: 2
    Last Post: 10-28-2010, 10:45 AM
  2. Replies: 4
    Last Post: 10-25-2010, 03:49 PM
  3. help with java coding
    By helpisontheway in forum New To Java
    Replies: 4
    Last Post: 11-14-2009, 07:00 AM
  4. BufferedInputStream with Huffman Compression
    By Msnforum in forum New To Java
    Replies: 0
    Last Post: 11-03-2009, 09:04 PM
  5. java coding
    By zawad in forum Suggestions & Feedback
    Replies: 1
    Last Post: 07-07-2009, 01:55 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
  •