The Simplest Interesting Algorithm (2019)(algorithmsoup.wordpress.com)
algorithmsoup.wordpress.com
The Simplest Interesting Algorithm (2019)
https://algorithmsoup.wordpress.com/2019/10/25/the-worlds-simplest-interesting-algorithm/
2 comments
I refer you to Bogosort. [1] One of the simplest interesting randomized algorithms.
https://en.wikipedia.org/wiki/Bogosort
https://en.wikipedia.org/wiki/Bogosort
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.