Karel’s learning curve can be observed by watching the green and red markers grow on the eastern wall of Karel’s world
This program has 5 main components:
P(today’s weather condition|sea weed state)
by finding the largest value of
P(sea weed condition|today’s weather condition) * P(today’s weather condition|yesterday’s condition)
eg, if sea weed is dry and it was cloudy yesterday, Karel finds the maximum value of:
P(sunny|dry) = P(dry|sunny) * P(sunny|cloudy)
P(cloudy|dry) = P(dry|cloudy) * P(cloudy|cloudy)
P(rainy|dry) = P(dry|rainy) * P(rainy|cloudy)