Algorithm with Bar and learning curves