Search:

Type: Posts; User: cool_97

Page 1 of 2 1 2

Search: Search took 0.18 seconds.

  1. Replies
    18
    Views
    514

    Re: Help in printing trees

    ok i get it but how to put on first line just the root
    then put on second line the children of the root left and right then their children
  2. Replies
    35
    Views
    3,149

    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
  3. Replies
    35
    Views
    3,149

    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...
  4. Replies
    35
    Views
    3,149

    Re: Help Huffman Coding>>

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

    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...
  6. Replies
    18
    Views
    514

    Re: Help in printing trees

    what about this function that i wrote

    public void displayTree()
    {
    assistinOrder(root);
    int level=0;
    while(!q1.isEmpty()){
    Node temp = q1.dequeue();...
  7. Replies
    35
    Views
    3,149

    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)...
  8. Replies
    35
    Views
    3,149

    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...
  9. Replies
    35
    Views
    3,149

    Re: Help Huffman Coding>>

    i meant 13#
    sry
  10. Replies
    35
    Views
    3,149

    Re: Help Huffman Coding>>

    queueTrees()
    makeHuffTree()
    makeCodeTable
    but not sure if it's correct
  11. Replies
    18
    Views
    514

    Re: Help in printing trees

    mmmm good idea but first of all how to print them in each line
    first the root
    then two nodes
    then 4 nodes .. etc
  12. Replies
    18
    Views
    514

    Re: Help in printing trees

    i'm not insulting him but he said that no one will write "the code for you"
    and i'll be thankfull if he could help
    anyway his effort is realy appreciated
  13. Replies
    35
    Views
    3,149

    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
  14. Replies
    35
    Views
    3,149

    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...
  15. Replies
    18
    Views
    514

    Re: Help in printing trees

    ok lets assume we have random values

    it should print it like this



    55
    43 23
    15 3 7 18
  16. Replies
    35
    Views
    3,149

    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\...
  17. Replies
    18
    Views
    514

    Re: Help in printing trees

    this is the code

    {
    int dep=getHeight();
    System.out.printf("Height is %d\n",dep);

    //Queue q2 = new Queue();
    Node current = root;
    int counter = 1;
    helpdispley(current);
  18. Replies
    35
    Views
    3,149

    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...
  19. Replies
    35
    Views
    3,149

    Re: Help Huffman Coding>>

    7
    hmmmmmmmmmmmmm
    then i'm in the wrong forum
  20. Replies
    18
    Views
    514

    Re: Help in printing trees

    need to know how to write it the idea algorithm anything
    ii seems that the only one who check and help is you
    so i'm doomed
  21. Replies
    35
    Views
    3,149

    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
  22. Replies
    18
    Views
    514

    Re: Help in printing trees

    in class tree
    u could notice a function called
    public void displayTree()
    need to complete this function
    and i need it to print the tree level by level
  23. Replies
    35
    Views
    3,149

    Re: Help Huffman Coding>>

    will do
    thx
  24. Replies
    35
    Views
    3,149

    Re: Help Huffman Coding>>

    main class



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

    class HuffmanApp
    {
    public static void main(String[] args) throws IOException
  25. Replies
    35
    Views
    3,149

    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...
Results 1 to 25 of 30
Page 1 of 2 1 2