Reminds me of a German statistics professor that taught me the basics of contemporary statistics. This guy would often say "final solution" with a thick German accent, which was kinda funny to hear. But after a couple of lectures I did discreetly tell him about the cultural annotations behind this term. Afterwards he was a bit more modest in its usage.
How can someone say "final solution" with a thick German accent? I'm German myself and when I try to pronounce it with deliberately thick accent, it doesn't change all that much.
I'd guess something like 'ze final zolution'. With the second z a lot less pronounced than the first. Mostly the pronunciation of 'the' by Germans is easy to notice.
The most obvious giveaways are pronouncing "the" like "s" and "w" like "v". Also, consonants in general are pronounced too hard, making the pronunciation less "flowing".
Sleep sort is still my favourite - if you're sorting numbers, just spawn a new thread for each number, make it sleep that number of milliseconds and print out the number after waking up. After the largest number of milliseconds elapse, you have the sorted list of numbers nicely printed out.
Figuring out which threads to wake up when is an equivalent problem to sorting. The kernel has to maintain a queue of threads sorted on their sleep times in order to implement the sleep syscall in the first place
Surely that's not true. You can keep a list of threads not sorted by their sleep time and just iterate through them and see if they are due to be woken up or not.
I think it may be another factor of n slower than that
Edit: wow nevermind, I just read the paper linked to bozo sort in wikipedia. They conjecture that it's O(n!) whereas bogosort is Omega(n*n!). Wow, that's surprising!
This still feels like ... cheating to me, if that's not too strong a word. If your algorithm for sorting a list involves generating a bigger list and then sorting that, then it's obvious that by recursion, you can make your sort function take forever.
Not seeing that in either the definition and essentially all control algorithms, like say PID control, are meant to run "forever" (meaning longer than you can foresee in the code, they need an infinite loop)
You could consider that in PID control the actual algorithm is the single iteration, after which the output is sent out and a new set of inputs comes in, thus restarting the algorithm. In an endless iteration, you never give out any outputs
You can't run PID in a single iteration. The integration and differentiation parts would be 0 in any single iteration, and so it's quite PID control if you look at it that way.
The description of the algorithm doesn't make much sense in a single iteration either.
31 comments
[ 4.2 ms ] story [ 65.3 ms ] threadhttps://byorgey.wordpress.com/2019/02/16/worstsort/
Reminds me of a German statistics professor that taught me the basics of contemporary statistics. This guy would often say "final solution" with a thick German accent, which was kinda funny to hear. But after a couple of lectures I did discreetly tell him about the cultural annotations behind this term. Afterwards he was a bit more modest in its usage.
[1] https://en.wikipedia.org/wiki/Bogosort
Edit: wow nevermind, I just read the paper linked to bozo sort in wikipedia. They conjecture that it's O(n!) whereas bogosort is Omega(n*n!). Wow, that's surprising!
The description of the algorithm doesn't make much sense in a single iteration either.