Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    31
    Views
    3,831

    Re: Program Optimization

    Is it important which candidate is beaten?

    I don't understand the rules.
    You said:
    1 is the winner because he beats 0 twice and 2 twice.

    Is it important who is beaten?
  2. Replies
    31
    Views
    3,831

    Re: Program Optimization

    So the count of the number of candidates that are beaten is not important?
    The fact that candidate 1 has beaten 7 other candidates is not useful.
  3. Replies
    31
    Views
    3,831

    Re: Program Optimization

    1 2 3 4 5 6 7 8
    Then is this correct:
    7 beats 1 other cand.
    6 beats 2 other cand.
    5 beats 3 other cand.
    4 beats 4 other cand.
    3 beats 5 other cand.
    2 beats 6 other cand.
    1 beats 7 other...
  4. Replies
    31
    Views
    3,831

    Re: Program Optimization

    Sorry, I asked two questions again. I'll have to remember to only ask one at a time.

    1 2 3 4 5 6 7 8
    With the above voting, would 7 have beaten 1 other cand.?
  5. Replies
    31
    Views
    3,831

    Re: Program Optimization

    Is the placement important? Or is the number of other cand.s that a cand. beats important?
    1 2 3 4 5 6 7 8
    With the above voting, would 7 have beaten 1 other cand.?
  6. Replies
    31
    Views
    3,831

    Re: Program Optimization

    The candidate the beats the most is the winner. So the position in a row of the array determines the number of others that a cand. beats. In a row with 3 columns, the first cand. beats 2, the second...
  7. Replies
    31
    Views
    3,831

    Re: Program Optimization

    Have you worked out the algorithm currently being used?
    Can you post pseudo code to describe what it is doing?


    That doesn't make sense to me.
    Can you explain?

    How many winners can there be...
  8. Replies
    31
    Views
    3,831

    Re: Program Optimization

    You seem to miss questions when I ask more than one at a time, so I'll ask them one at a time: From post#14

    Have you defined the contents of the data file?

    Can you define what goes on each row...
  9. Replies
    31
    Views
    3,831

    Re: Program Optimization

    It looks like the last 4 "elections" are the ones to test with.

    Have you worked out the algorithm currently being used?
    Can you post pseudo code to describe what it is doing?

    Have you defined...
  10. Replies
    31
    Views
    3,831

    Re: Program Optimization

    What about the other questions and issues in my last post?
  11. Replies
    31
    Views
    3,831

    Re: Program Optimization

    Did you test the program with that data in a file?
    I get this error:
    Exception in thread "main" java.util.NoSuchElementException


    How many "elections" worth of data are in the complete file?...
  12. Replies
    31
    Views
    3,831

    Re: Program Optimization

    Where is the definition for the missing class?

    What does the profiling report look like?

    Is that a valid and complete file for testing?
    I get this error when I use it:
  13. Replies
    31
    Views
    3,831

    Re: Program Optimization

    There is no way to test the code without the contents of the file it reads.
    Also the code does not compile because of a missing class.
    When I removed the usage of the missing class and fed the...
  14. Replies
    31
    Views
    3,831

    Re: Program Optimization

    Please Edit your post and wrap your code with


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.


    what's in the file it reads?
Results 1 to 14 of 14