Source: http://ml.informatik.uni-freiburg.de/former/_media/teaching/ss10/cbr1.pdf