Search:

Type: Posts; User: lahegemon

Search: Search took 0.16 seconds.

  1. Replies
    7
    Views
    1,643

    Re: PriorityQ and MaxHeap

    Precisely what I was thinking. Couldn't I just replace my comparisons for some of my theHeap[index] comparisons with theHeap[index].score comparisons? But then I would ave to write a separate...
  2. Replies
    7
    Views
    1,643

    Re: PriorityQ and MaxHeap

    capacity is set in a separate constructor also, look at my reply below. that's my current program but...well, my questions are in the same post. Thanks
  3. Replies
    7
    Views
    1,643

    Re: PriorityQ and MaxHeap

    public class MyMaxHeap{
    private class jobAd{
    public float salary;
    public float dist;
    public float score;

    public jobAd(float s, float d){
    s = salary;
    d =...
  4. Replies
    7
    Views
    1,643

    Re: PriorityQ and MaxHeap

    public class MyMaxHeap{
    private class jobAd{
    public float salary;
    public float dist;
    public float score;

    public jobAd(float s, float d){
    s = salary;
    d =...
  5. Replies
    7
    Views
    1,643

    PriorityQ and MaxHeap

    Okay, so I have an assign,ent to write a priority queue that implements a max heap. I've only just started the program and this is what I have for my MyMaxHeap class:


    public class MyMaxHeap{
    ...
Results 1 to 5 of 5