Sequential Learning Algorithm In Ai