I am trying to implement huffman coding scheme in java.But I am facing problems in building the huffman tree.How to proceed ?Is there any datastructure in java that will help me to do it?Please help!!
ayanbizz
0
Newbie Poster
Recommended Answers
Jump to PostCan you post your code and point to where the problem is?
Or is it that you don't understand Huffman coding?
Jump to PostThere are standard tree structures in the Collections API.
If those aren't sufficient, you can always build your own.
Jump to Post@thekashyap till now I have been able to read the frequency of characters in a text file and stored them in a hash-map.But now , I have to arrange them according to their frequency and build a binary tree from it.Here's where I am stuck.Please give me some ideas..Also ,what …
Jump to PostAs jwenting said there is no built-in tree in java (upto 1.5) I understand in 1.6 there were some talks of it, but donno; check the rel notes. There were also some threads saying there is some XXXNode class in awt or swing that can be mis-used if you want …
All 14 Replies
thekashyap
193
Practically a Posting Shark
ayanbizz
0
Newbie Poster
jwenting
1,889
duckman
Team Colleague
thekashyap
193
Practically a Posting Shark
ayanbizz
0
Newbie Poster
thekashyap
193
Practically a Posting Shark
ayanbizz
0
Newbie Poster
thekashyap
193
Practically a Posting Shark
ayanbizz
0
Newbie Poster
ayanbizz
0
Newbie Poster
thekashyap
193
Practically a Posting Shark
c.uetn
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.