On 02/04/2016 03:30 PM, Timon Gehr wrote:
At most 6 comparisons, <=3 swaps, idempotent (optimal number of swaps):
What is the minimum number of comparisons? Thx! -- Andrei P.S. The sythesized searcher is genius.
Andrei Alexandrescu via Digitalmars-d Fri, 05 Feb 2016 17:41:33 -0800
On 02/04/2016 03:30 PM, Timon Gehr wrote:
At most 6 comparisons, <=3 swaps, idempotent (optimal number of swaps):
What is the minimum number of comparisons? Thx! -- Andrei P.S. The sythesized searcher is genius.