??? 05/13/08 21:29 Read: times |
#154741 - Sort array data elements? |
I've done some searching here, I don't really see any return, I'm looking to see the fastest and most effective way to sort an array data set.
I was thinking of a counting for loop, but not sure how to handle the exchange....can C do that? Or would a multi dimensional array work for the data swapping? I was thinking of parsing the array by index and then swap based on greater or less than.....but I get stuck if they are equal?..... I want to sample some data from the onboard ADC, put the sample data into the array and then sort them by ascension. I've looked through a few of my C books like C and the 8051 and a few that deal with projects.....but nothing covers this topic....google wasn't much help. Any thoughts? Thank you |
Topic | Author | Date |
Sort array data elements? | 01/01/70 00:00 | |
Sort and Search? | 01/01/70 00:00 | |
Neil..... | 01/01/70 00:00 | |
64 samples is big for a median filter ... | 01/01/70 00:00 | |
No I haven't.....only because | 01/01/70 00:00 | |
Google for "sorting algorithms" | 01/01/70 00:00 | |
Ok, first things first then. | 01/01/70 00:00 | |
The MPU and LDO are all in order | 01/01/70 00:00 | |
Quantization error ? | 01/01/70 00:00 | |
the step size dependacy makes its problematic | 01/01/70 00:00 | |
Sorts![]() | 01/01/70 00:00 | |
??? | 01/01/70 00:00 | |
Couldn't sort it... | 01/01/70 00:00 |