Strategies and runtime detection/choice of best algorithm