Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Genius sorting algorithm: Sleep sort

Name: Anonymous 2011-01-20 12:22

Man, am I a genius. Check out this sorting algorithm I just invented.


#!/bin/bash
function f() {
    sleep "$1"
    echo "$1"
}
while [ -n "$1" ]
do
    f "$1" &
    shift
done
wait


example usage:
./sleepsort.bash 5 3 6 3 6 3 1 4 7

Name: echo 2011-07-22 5:44

<p><a href="http://www.onepearls.com">wholesale pearl jewelry</a></p>

Name: Over 1000 Thread 2011-07-22 5:44 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 0:16

gdfsg

Name: Over 1000 Thread 2012-01-27 0:16 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 3:51

But I can!

Name: Over 1000 Thread 2012-01-27 3:51 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 3:51

umad moot

Name: Over 1000 Thread 2012-01-27 3:51 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 3:51

umad moot

Name: Over 1000 Thread 2012-01-27 3:51 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 3:51

umad moot

Name: Over 1000 Thread 2012-01-27 3:51 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 3:51

umad moot

Name: Over 1000 Thread 2012-01-27 3:51 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 3:52

umad moot

Name: Over 1000 Thread 2012-01-27 3:52 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 3:52

umad moot

Name: Over 1000 Thread 2012-01-27 3:52 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 4:27

Fick Ja sleep sort

Name: Over 1000 Thread 2012-01-27 4:27 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 8:58

one of the best threads in /prog/ is dying thanks to spammer. long live the mods!

Name: Over 1000 Thread 2012-01-27 8:58 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 9:01

>>1021
They never die.

Name: Over 1000 Thread 2012-01-27 9:01 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-01-27 9:25

>>1021
Yeah. It is a sad day truly.

Name: Over 1000 Thread 2012-01-27 9:25 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Burgeron 2012-01-27 9:47

This is basically bucket sort behind the scenes.

However, it reminded me that my FPGA with nanosecond accurate clock could sort the numbers 0 to 4'294'967'296 in 4.3 seconds... if it had enough RAM...

Name: Over 1000 Thread 2012-01-27 9:47 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: ‪‪‮Anonymous 2012-02-10 7:33

jur

Name: Over 1000 Thread 2012-02-10 7:33 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: TheShadowFog !WuvOsumF7w 2012-02-10 9:11

>>1030
OH YES I CAN

Name: Over 1000 Thread 2012-02-10 9:11 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-02-10 9:20

lolololol

Name: Over 1000 Thread 2012-02-10 9:20 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: Anonymous 2012-02-10 10:26

Huh.

Name: Over 1000 Thread 2012-02-10 10:26 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: TheShadowFog !WuvOsumF7w 2012-02-10 10:35

>>1030
OH YES I CAN

Name: Over 1000 Thread 2012-02-10 10:35 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Name: test 2012-02-10 10:51

test

Name: Over 1000 Thread 2012-02-10 10:51 Over 1000

This thread has over 1000 replies.
You can't reply anymore.

Newer Posts