Προς το περιεχόμενο

μεθοδο addRoot


SEMFAKI

Προτεινόμενες αναρτήσεις

Δημοσ.

:???::neutral:ΣΑΣ ΠΑΡΑΚΑΛΩ ΟΠΟΙΟΣ ΓΝΩΡΙΖΕΙ ΑΠΟ JAVA ΘΑ ΗΘΕΛΑ ΝΑ ΜΕ ΒΟΗΘΗΣΕΙ ΝΑ ΒΓΩ ΑΠΟ ''ΤΟΝ ΑΤΕΡΜΟΝΟ ΒΡΟΓΧΟ!!!'' ΠΟΥ ΕΧΩ ΠΕΣΕΙ! ΓΙΑ ΟΠΟΙΟΝ ΕΝΔΙΑΦΕΡΕΤΑΙ ΕΧΩ ΑΝΕΒΑΣΕΙ ΤΗΝ ΕΡΓΑΣΙΑ H TO LINK http://147.102.206.197/~symvonis/teaching/data_structures_material/hws/assignment-2-2007.pdf. ΕΥΧΑΡΙΣΤΩΩΩΩ ΠΑΑΑΡΑΑΑΑΑ ΠΟΛΛΛΛΥΥΥΥΥ!(ΕΙΝΑΙ ΠΟΛΥ ΣΗΜΑΝΤΙΚΟ ΓΙΑ ΜΕΝΑ ΝΑ ΤΗΝ ΠΑΡΑΔΩΣΩ):D:lol::grin::mrgreen:

ERGASIA.zip

Δημοσ.

Δε βλέπω πουθενά κώδικα, συνεπώς δεν υπάρχει και ατέρμων βρόγχος... Ανέβασε και λίγο κώδικα, πες που έχεις κολλήσει, και κάτι μπορεί να γίνει ;-)

Ρίξε μια ματιά εδώ

Δημοσ.

μεταφορικά το είπα!!!! γενικά έχω κολλήσει με την εργασία. προσπαθώ να καταλάβω και έχω καποιες απορρίες αλλά επειδή δυστυχώς η σχολή είναι κλειστή δεν μπορώ να ρωτησω τον καθηγητή μου για να με βοηθήσει. ψάχνω απελπισμένα κάποιον που γνωρίζει καλά java. Αν θες να με βοηθήσεις θα σου πω περισσότερα για την εργασία , ευχαριστώ!

Δημοσ.

Τι νομιζεις οτι κανω ολη την ημερα!αλλα ειναι καποια πραγματα που θελουν εξηγηση.δεν ειναι ευκολο να κανεις ενα εξαμηνο σε 3βδομαδες και να σου ζητανε κ εργασιες.για οποιον ενδιαφέρεται το msn μου είναι [email protected] για διευκρινισεις για την εργασια!

Δημοσ.
να ανοιξεις το ωραιο σου βιβλιαρακι και να στρωθεις στο διαβασμα.,,,

 

Simfono me ton Poscaman , eleos diladi oute mia grammi kodika den mporeis na katseis na grapseis tosa pramata zitaei i ergasia

Δημοσ.

καλησπερα φιλοι μου

Εχετε δικιο αλλα προσπαθηστε να τον βρειτε στο msn και να του δωσετε step by step τι ζηταει η ασκηση.(καθαρη εξηγηση )

Το παλικαρι απλα ζητησε Βοηθεια

Δεν ειπε κανεις να κανετε την ασκηση εσεις αλλα απλα να του δωσετε καποια σημεια .

Το να δωσεις ολοκληρωμενη την λυση μια ασκησης σε καποιον δεν βοηθαει

 

καλο απογευμα

Δημοσ.

εχω ξεκινησει την εργασια απλα για να τη συνεχισω θελω καποια βοηθεια που καλλιστα θα την εδινε ο καθηγητης αλλα ειπαμε η σχολη ειναι κλειστή:???:

Δημοσ.

μπορεις πολυ ευκολα να μας πεις που εχεις κολλησει.να επικολλησεις και τον σχετικο κωδικα και να σου πουμε (οποιος ξερει) που ειναι το προβλημα

Δημοσ.

Λοιπον Φιλε απλα οπως λεει και ο poscaman

επικολλησε τον σχετικο κωδικα(τι εχεις φτιαξει)για να μπορεσει να επιλυθει το προβλημα απο καποιον εδω που ξερει το αντικειμενο .Αλλα και να υπαρχει ετσι ωστε καποιος να μπορει να το μελετησει αργοτερα .

Δημοσ.

public interface PriorityQueue

{

public void insert(PQEntry entry);

public PQEntry findMin();

public PQEntry deleteMin();

public PQEntry findMax();

public PQEntry deleteMax();

public boolean isEmpty();

public int size();

}

Δημοσ.

public class PQEntry

{

// instance variables

private int key;

private Object data;

 

/**

* Constructor for objects of class PQEntry

*/

public PQEntry(int k, Object d)

{

// initialise instance variables

key=k;

data=d;

}

 

public int getKey()

{

return key;

}

 

 

public Object getData()

{

return data;

}

 

public void setData(Object d)

{

data=d;

}

 

public void setKey(int k)

{

key=k;

}

 

}

Δημοσ.

public class BTNode

{

private PQEntry element;

private BTNode left, right, parent;

private int level;

 

/**

* Constructor for an empty BTNode

*/

public BTNode()

{

left=null;

right=null;

parent=null;

level=0;

}

 

/**

* Constructor for objects of class BTNode

*/

public BTNode(PQEntry o, BTNode p, BTNode l, BTNode r,int v)

{

element =o;

parent=p;

left=l;

right=r;

level=v;

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public PQEntry element()

{

return element;

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public BTNode getParent()

{

// put your code here

return parent;

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public BTNode getLeft()

{

// put your code here

return left;

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public BTNode getRight()

{

// put your code here

return right;

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public int getLevel()

{

// put your code here

return level;

}

 

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public void setElement(PQEntry o)

{

// put your code here

element = o;

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public void setParent(BTNode p)

{

// put your code here

parent=p;

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public void setLeft(BTNode l)

{

// put your code here

left=l;

left.setLevel(this.getLevel()+1);

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public void setRight(BTNode r)

{

// put your code here

right=r;

left.setLevel(this.getLevel()+1);

}

 

/**

* An example of a method - replace this comment with your own

*

* @param y a sample parameter for a method

* @return the sum of x and y

*/

public void setLevel(int v)

{

// put your code here

level=v;

}

 

}

Αρχειοθετημένο

Αυτό το θέμα έχει αρχειοθετηθεί και είναι κλειστό για περαιτέρω απαντήσεις.

  • Δημιουργία νέου...