943,645 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 3063
  • Java RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Dec 17th, 2008
0

Re: Selection Sort Method + Comparison

Oh! So that's what that was hehe it shouldn't be in an if statement though.
Reputation Points: 56
Solved Threads: 11
Junior Poster
PoovenM is offline Offline
147 posts
since Aug 2006
Dec 17th, 2008
0

Re: Selection Sort Method + Comparison

I know I should be getting, I am as frustrated with myself as I'm sure you guys are with me, but I have tried different things in my calculations and I am still getting the same results. The numbers in the array printing out not the number of comparisons.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
javafrustrated is offline Offline
11 posts
since Dec 2008
Dec 17th, 2008
0

Re: Selection Sort Method + Comparison

Well, that does seem to be the point of a "printValues()" method, yes? The calculation for the number of comparisons has nothing to do with that method and nothing to do with a loop. It is one calculation that only requires the number of elements being sorted.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,756 posts
since May 2007
Dec 18th, 2008
0

Re: Selection Sort Method + Comparison

I walked away from this and when I came back it all made sense. I had my calculation on the wrong line. I should have walked away earlier since I wasn't even making sense in my asking questions.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
javafrustrated is offline Offline
11 posts
since Dec 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: JavaMail Security
Next Thread in Java Forum Timeline: textfiles





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC