There is no particular book or website. Decision trees and perceptrons are standard AI algorithms, you can find them on Wikipedia. The pattern detector uses a function that compares sets of variables and then simplifies the generated expression for storing it as C code.