Search:

Type: Posts; User: cool_97

Search: Search took 0.15 seconds.

  1. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    yes another thing
    please understand the following i don't have the right code if i have it i wouldn't post here these functions were empty that was the assignment to complete them and compile
  2. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    no i'm not
    i'm working on it now
    and i check if it's an error i put // to avoid the error in compiling
    because this line codeTable=codeTable+bc; was underlined by red color



    by the way...
  3. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    didn't complete it yet trying to solve these three first
  4. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    These are the classes that i'm working on now

    import java.io.*;
    import java.util.*;
    class Huffman
    {
    private PriorityQ theQueue;
    private String inString; // input from...
  5. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    Exception in thread "main" java.lang.NullPointerException
    at HuffmanApp.main(HuffmanApp.java:26)
    Exception in thread "main" java.lang.NullPointerException
    at HuffmanApp.main(HuffmanApp.java:29)...
  6. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    no i'm just trying to fix these codes in post 13# and i have already posted the algorithm for it
    and this is a forum for what's wrong with my code
    if u have comment on this code or how to fix it...
  7. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    i meant 13#
    sry
  8. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    queueTrees()
    makeHuffTree()
    makeCodeTable
    but not sure if it's correct
  9. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    plz visit thread # 14 i posted my effort
    and i have already posted the algorithm
    og each function and the purpose of it
    thx
  10. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    Ok let me explain
    these three classes were given to us in class to complete the missing functions

    the programme do the following
    take a line of charecters then print them and encode them to...
  11. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    these are the classes that i have u could compile but 3 out of four functions don't work

    Enter first letter of enter, show, code, or decode: e
    Enter text lines, terminate with $
    cool
    $
    COOL\...
  12. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    ok be a dear
    and help me
    in the following code is it correct
    private void queueTrees() // put trees in queue
    {
    HuffmanApp a = new HuffmanApp();
    for (int i...
  13. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    7
    hmmmmmmmmmmmmm
    then i'm in the wrong forum
  14. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    actually nothing is wrong put u could see in post # 4
    there 4 empty functions need to fill them up and run the programme
  15. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    will do
    thx
  16. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    main class



    import java.io.*;
    import java.util.*;

    class HuffmanApp
    {
    public static void main(String[] args) throws IOException
  17. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    here is the class huffman where i need help in the following functions
    private void queueTrees(){
    for each char in the frequancy table loop{
    if freq =0 do nothing
    else
    creat a new node...
  18. Replies
    35
    Views
    5,751

    Re: Help Huffman Coding>>

    This is Node class
    ----------------


    // huffman.java
    // demonstrates Huffman trees
    // to run this program: C>java HuffmanApp
    import java.io.*;
    import java.util.*; // for Stack...
  19. Replies
    35
    Views
    5,751

    Help Huffman Coding>>

    Hi
    I need help in the following code
    664
    there are some missing functions need to complete
    QueueTree
    makeHuffTree
    makeCodeTable
    decode
Results 1 to 19 of 19