![]() |
Re: 320.2! 301.5, 311.3, 65.4
In school I wrote little programs to demonstrate bubble sort, insert sort, and quick sort, but I don't remember anything about radix sort. I do recall that quick sort was way faster than bubble sort.
|
Re: 320.2! 301.5, 311.3, 65.4
The following link has been rated Sure, Why Not for mild content.
|
Re: 320.2! 301.5, 311.3, 65.4
Gratuitous Double Post
major |
Re: 320.2! 301.5, 311.3, 65.4
Quote:
Radix sort is a different beast entierly - it isn't based on comparisons, it is based on indexing. You need to know certain things about the data you are sorting to make it work (type, bit significance order, data length), but given those, it does the sort in O(k*n) (k is the maximum data element length). How it works: You make a set of stacks based on how many chunks you want to cut your sort key up into, and label them by the value that particular chunk represents (e.g., if you were sorting byte arrays, you might go with 256 stacks, numbered 0-255 - you may want an additional stack if your list elements aren't all the same length - a 'beyond bounds' stack). You then take each list element, and put it on the stack representing that list element's least significant chunk. When you are finished stacking the list, you put those stacks back into the list in a particular order, and stack them from the list again, using the next least significant chunk of your sort key. You continue this process until you have gone through the entire sort key, and gather them up; the list will then be sorted. It is a totally bizzare sorting algorythm, but it works. |
Re: 320.2! 301.5, 311.3, 65.4
Wha?
|
Re: 320.2! 301.5, 311.3, 65.4
that's not nonsense.
Quick, check these out. http://www.washingtonpost.com/ac2/wp...nguage=printer and then http://www.darpa.mil/DARPATech2002/p...EISENSTADT.pdf but before all this http://www.wireheading.com/roborats/ratbot.html |
Re: 320.2! 301.5, 311.3, 65.4
I see the "Name Changing Thread" is still alive! http://forum.shrapnelgames.com/images/icons/icon6.gif
|
Re: 320.2! 301.5, 311.3, 65.4
Only barely.
It could use a name change, too. |
Re: 320.2! 301.5, 311.3, 65.4
*pulls out a complete life-support system*
comon, people! this is a great thread! |
Re: 320.2! 301.5, 311.3, 65.4
*quietly replaces the oxygen bottle from the life support system with one with a small amount of laughing gas mixed in*
|
All times are GMT -4. The time now is 12:59 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.