.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1721  
Old October 10th, 2003, 07:53 AM
Kamog's Avatar

Kamog Kamog is offline
Lieutenant General
 
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
Kamog is on a distinguished road
Default 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.
Reply With Quote
  #1722  
Old October 10th, 2003, 02:47 PM

Loser Loser is offline
Colonel
 
Join Date: Mar 2002
Location: Colorado
Posts: 1,727
Thanks: 0
Thanked 0 Times in 0 Posts
Loser is on a distinguished road
Default Re: 320.2! 301.5, 311.3, 65.4

The following link has been rated Sure, Why Not for mild content.
Reply With Quote
  #1723  
Old October 10th, 2003, 05:02 PM

Loser Loser is offline
Colonel
 
Join Date: Mar 2002
Location: Colorado
Posts: 1,727
Thanks: 0
Thanked 0 Times in 0 Posts
Loser is on a distinguished road
Default Re: 320.2! 301.5, 311.3, 65.4

Gratuitous Double Post
major
Reply With Quote
  #1724  
Old October 10th, 2003, 07:01 PM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default Re: 320.2! 301.5, 311.3, 65.4

Quote:
Originally posted by Kamog:
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.
Which sort is best depends on a lot of things; bubble sort is O(n^2) (n: number of data elements to be sorted) for its worst case - the element that is supposed to be first is in the Last position. Its best case, an already sorted list, allows it to have a trapdoor and do the "sort" in O(n). Insertion and selection sort are also O(n^2) in the worst case. Quicksort is, in the average case, O(n*lg(n)), but O(n^2) in its worst case. Mergesort is always O(n*lg(n)), as is Heapsort. All of the above sorts are based on comparisons.

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.
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote
  #1725  
Old October 14th, 2003, 09:59 PM

Member 4148 Member 4148 is offline
Private
 
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Member 4148 is on a distinguished road
Default Re: 320.2! 301.5, 311.3, 65.4

Wha?
__________________
<img src=http://www.danasoft.com/sig/ alt= - /]
Reply With Quote
  #1726  
Old October 14th, 2003, 11:30 PM

Loser Loser is offline
Colonel
 
Join Date: Mar 2002
Location: Colorado
Posts: 1,727
Thanks: 0
Thanked 0 Times in 0 Posts
Loser is on a distinguished road
Default 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
Reply With Quote
  #1727  
Old October 14th, 2003, 11:44 PM
mottlee's Avatar

mottlee mottlee is offline
Colonel
 
Join Date: Feb 2001
Location: B.F.E. USA
Posts: 1,500
Thanks: 0
Thanked 0 Times in 0 Posts
mottlee is on a distinguished road
Default Re: 320.2! 301.5, 311.3, 65.4

I see the "Name Changing Thread" is still alive!
__________________
Kill em all let God sort em out
Reply With Quote
  #1728  
Old October 15th, 2003, 12:52 AM

Loser Loser is offline
Colonel
 
Join Date: Mar 2002
Location: Colorado
Posts: 1,727
Thanks: 0
Thanked 0 Times in 0 Posts
Loser is on a distinguished road
Default Re: 320.2! 301.5, 311.3, 65.4

Only barely.
It could use a name change, too.
Reply With Quote
  #1729  
Old October 15th, 2003, 01:47 AM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default Re: 320.2! 301.5, 311.3, 65.4

*pulls out a complete life-support system*

comon, people! this is a great thread!
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
Reply With Quote
  #1730  
Old October 15th, 2003, 02:57 AM
Jack Simth's Avatar

Jack Simth Jack Simth is offline
Major General
 
Join Date: Oct 2002
Posts: 2,174
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Simth is on a distinguished road
Default 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*
__________________
Of course, by the time I finish this post, it will already be obsolete. C'est la vie.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:41 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.