Came across this sort read in a blog.The author called it sleep sort...A
very funny implementation of radix sort I think.?
#!/bin/bash
function f() {
sleep $(echo "$1 / 10" |bc -l)
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
done
wait
--
Saurabh Singh
B.Tech (Computer Science)
MNNIT ALLAHABAD
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.