Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

This article features a program in which the user can enter a polynomial equation and it will use GAs to determine the complex roots.

This article describes how you can use genetic algorithms in .NET to determine derivatives of mathematical functions. The program uses an algorithm called Multiple Expression Programming (MEP) inside the genomes to exercise a function tree.

Biology teaches us a set of rules defined by nature that have evolved over millions of years. So, if you want to put intelligence into something simplifying the world around you into basic rules can give you a big head start.

Learn how to use genetic algorithms and Multiple Expression Programming in C# to evolve mathematical formulas that generate abstract color art in Windows Forms.

Rather than reinvent the wheel, I took this code and translated it into C# to demonstrate the swarm behavior in a Windows Form using GDI+. The algorithm is exactly the same and also a fairly simple one.

This tool is useful when you are creating Regular Expression. This tool will help you in checking syntax of the regular expression typed in.

Gene Expression programming (GEP) is a subset of Genetic Algorithms, except it uses genomes whose strings of numbers represent symbols. The string of symbols can further represent equations, grammars, or logical mappings.

Learn how to generate six non-repeating random numbers or adapt the approach for other unique random values.

Learn the basics of Gene Expression Programming, an evolutionary algorithm that represents solutions as symbol-based genomes, and its use in C# and .NET.

This article explains how garbage collector algorithm works in order to clean managed heap.

Author explains how to implement Extended Euclidean Algorithm in C#.

The attached source code is the C# implementation of the Mersenne Twister algorithm, developed by Makoto Matsumoto and Takuji Nishimura in 1996-1997.

C# histogram class maintains a histogram of input data. Input data is sorted into bins and a count is kept of how many data points fall into each bin.

The Equation Editor I created in C# allows you to create a few simple equations using the keyboard. With the editor you can open and save files of your equations.

The attached source code implements trapezoidal rule for numerical integration in C#.

The Basic II Stamp is programmed by the language its named after, Basic. The language is a combination of Basic syntax and built in key words that control the Basic Stamp II chip.

In this article we will explore a well-known AI algorithm for modeling the training of neural networks called back propagation.

The attached source code is a C# normal distribution class. The probability density function (PDF) and cumulative distribution function (CDF) can be computed for a given x-value.

If you ever browsed around the book store, you'll notice these puzzle books or IQ test books and some of the books contain questions asking you to complete a series of numbers.

The attached source code is a class - FormulaGenerator, which is a component that interprets and evaluate a string expression

The PublicKeyTokenGenerator class and a small utility that generates Public Key Token from the Public Key using that class.

This article describes the Compact Genetic Algorithm (cGA) and how it can be used to calculate the square root of a floating point number.
Everything on Algorithms in C#, not only its articles: the Algorithms in C# page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article