Selection Sort Method + Comparison

Thread Solved

Join Date: Aug 2006
Posts: 137
Reputation: PoovenM is on a distinguished road 
Solved Threads: 11
PoovenM PoovenM is offline Offline
Junior Poster

Re: Selection Sort Method + Comparison

 
0
  #11
Dec 17th, 2008
Oh! So that's what that was hehe it shouldn't be in an if statement though.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 11
Reputation: javafrustrated is an unknown quantity at this point 
Solved Threads: 0
javafrustrated javafrustrated is offline Offline
Newbie Poster

Re: Selection Sort Method + Comparison

 
0
  #12
Dec 17th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,439
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: Selection Sort Method + Comparison

 
0
  #13
Dec 17th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 11
Reputation: javafrustrated is an unknown quantity at this point 
Solved Threads: 0
javafrustrated javafrustrated is offline Offline
Newbie Poster

Re: Selection Sort Method + Comparison

 
0
  #14
Dec 18th, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC