BP algorithm, C# implementation, training, generalization.