Thread: ordering arrays
View Single Post
Join Date: Oct 2008
Posts: 32
Reputation: emotionalone is an unknown quantity at this point 
Solved Threads: 4
emotionalone emotionalone is offline Offline
Light Poster

Re: ordering arrays

 
0
  #8
Nov 20th, 2008
I think I understand your first post now and the logic would go something like this.
  1. I have a multidimensional array of 16 rows and 60 columns per row called 'weights'.
  2. I have an array of 16 rows called 'error'.
  3. I assume the first element in the 'error' array has the lowest error and I'll call that element 'lowest' (no variable)
  4. While the number of the row is less than 16
  5. if the next element of 'error is less than 'lowest'
  6. Switch values of 'lowest' and current element
  7. While X is 0 and X is less than 60
  8. Switch values of rows of same index as 'lowest' and the current element in the 'weights' array
  9. X increases by 1
Something like that

If you need more help say so and I'll try to help if I can.

Good luck
Last edited by emotionalone; Nov 20th, 2008 at 10:47 pm.
Reply With Quote