Samples to learn algorithms