Tricky SQL Server decimal math
When performing math using SQL Server decimals, the precision may change and cause implicit conversions. Learn how to predict and avoid this situation.
Evolution of the simple genetic algorithm
Based on my previous post on how to implement a simple genetic algorithm, I got some great comments pointing out that the algorithm might not be the most pure form of a genetic algorithm. I won't disagree, though I will point out that evolution also does occur due to mutation alone, so genetic algorithms may come in different forms. Making it more "genetic" The basic point is that I was only mutating my chromosomes, I wasn't actually pairing them up and reproducing via a crossover function. I've changed my GeneticAlgorithm class slightly to give more control to...