american flag sort
Author |
Message |
Nyrd
![](http://compsci.ca/v3/uploads/user_avatars/207771298547f591dbe38ad.png)
|
Posted: Mon Oct 11, 2004 8:17 pm Post subject: american flag sort |
|
|
Hello Everybody !
In class, the teacher put up a challange to beat his sorting algorithim with our own, incidently his is a quick sort algoritim. I heard that a quicker algorithim is the American Flag Sort, unfortunatly all i can find is that it is fast. I'd really appreciate it if someone could give me an example and how to of this algoritim. ![Confused Confused](http://compsci.ca/v3/images/smiles/icon_confused.gif) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Mon Oct 11, 2004 8:46 pm Post subject: (No subject) |
|
|
I don't know how, but I do know that
a.) this doesn't belong in turing source code and
b.) posting the same thing in two different forums will not get you your answer faster. |
|
|
|
|
![](images/spacer.gif) |
Genesis
![](http://syrus.fxpscene.com/mike/captainplanet.png)
|
Posted: Mon Oct 11, 2004 8:47 pm Post subject: (No subject) |
|
|
EDIT: Like Cervantes said.
But if you could post your teacher's algorithm, I'm sure that someone here will be able to beat it. Although they probably won't give you the answer, I'm sure they will help you on your way to finding it.
Here's a definition of it for you. |
|
|
|
|
![](images/spacer.gif) |
Nyrd
![](http://compsci.ca/v3/uploads/user_avatars/207771298547f591dbe38ad.png)
|
Posted: Wed Oct 13, 2004 9:30 pm Post subject: (No subject) |
|
|
What my teacher has is an unmodified quick -sort, since he wont give me the code that's all i can say. Hoefully it will help you help me ![Rolling Eyes Rolling Eyes](http://compsci.ca/v3/images/smiles/icon_rolleyes.gif) |
|
|
|
|
![](images/spacer.gif) |
Nyrd
![](http://compsci.ca/v3/uploads/user_avatars/207771298547f591dbe38ad.png)
|
Posted: Wed Oct 13, 2004 9:31 pm Post subject: (No subject) |
|
|
i'm a newb at turing, so nothing too complex ![Very Happy Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
|
|