Zero-based learning algorithm