Search:

Type: Posts; User: Aberforth

Search: Search took 0.15 seconds.

  1. Thread: Huffman Tree

    by Aberforth
    Replies
    2
    Views
    1,893

    Re: Huffman Tree

    Thanks...a lot....it's done.....
  2. Thread: Huffman Tree

    by Aberforth
    Replies
    2
    Views
    1,893

    Huffman Tree

    I have to create a Huffman Tree. I have prepared the Priority Queue. the problem is arising while creating the tree as it is generated bottom-up. Can you please give any idea about how to do that?
  3. Re: Finding frequency and probability of characters in a string

    i am using double because probability will have a decimal part.
    but when i am going to find the frequency , the decimal part should be entirely zero.
    for example, the string be: aaaabbbbbbbbbbbccc...
  4. Re: Finding frequency and probability of characters in a string

    actually the frequency should be an integer i.e,9.0000000000 and not 9.0000000006.
  5. Finding frequency and probability of characters in a string

    ***Problem****In this program if the frequency is large (say, 9) the frequency shows it as 9.000000000006.

    import java.io.*;

    public class Freq {

    public static void main(String[] args)
    ...
Results 1 to 5 of 5