News for hackers. Stuff that matters.
Re:The Simplest Interesting Algorithm (2019) by randomizedalgs on Monday December 13, 2021 @04:29PM (#29544918)
The randomized version of this algorithm is also fun: repeatedly find an edge that is not yet covered, select one of the two end points at random, and add it to S.

It's a nice exercise to show that the randomized algorithm is also a 2-approximate algorithm, i.e., the size of S is at most twice the size of S_{OPT}, in expectation.

Re:The Simplest Interesting Algorithm (2019) by anikan_vader on Monday December 13, 2021 @04:34PM (#29544969)
I refer you to Bogosort. [1] One of the simplest interesting randomized algorithms.

https://en.wikipedia.org/wiki/Bogosort