Leveraging Learning to Automatically Manage Algorithms