Ask HN: Would ML algorithms be able to generate newithbetter sorting algorithms?
I am feeling curious about the impact of ML in discovering new knowledge. I know ML learns from tons of training data and then later can come up with much better solutions. Would it be possible to design ML that looks into some training data of how sorting happens and then later come up by itself with with all the sorting algorithms like Bubble Sort, Quick Sort and may be even new ones that humans have not thought of? Is anything of that sort possible?
2 comments
[ 3.1 ms ] story [ 14.9 ms ] threadI'd be somewhat doubtful that it could improve on the current state-of-the-art for sorting, though. There's a theoretical result that no comparison-based sort can achieve better than O(N log N) runtime, and mergesort/quicksort/heapsort are already there. You could perhaps get better real-world performance (the way TimSort can beat quicksort/mergesort on nearly-sorted data), but TimSort is already very tightly tuned, and it's likely you would improve performance on some datasets but reduce it on others.
[1] http://www.joelonsoftware.com/items/2005/10/17.html
Good luck.