BLOG.CSHARPHELPER.COM: Category Archive for algorithms

Draw a simple robot arm with a hand in C#

Draw a simple robot arm in C#

Calculate how long it will take to pay off a credit card by making minimum payments in C#

Calculate the future value of a monthly investment with interest in C#

Draw a colored Pickover popcorn fractal in C#

Draw a Pickover popcorn fractal in C#

Graph savings from a normal bank account, a 401(k), and a Roth IRA account in C#

List your next 10 birthdays and their days of the week in C#

Roughly compare the savings a normal bank account would give versus a 401(k) (a US tax thing) in C#

Control serialization and deserialization with attributes in C#

Serialize and deserialize objects in C#

Draw text that follows a curve in C#

Draw text that sits above or below a line segment in C#

Use the Array class's Sort and BinarySearch methods in C#

Generate a schedule for a round robin tournament in C#

Make an extension method that calculates standard deviation in C#

Draw an animated epitrochoid in C#

Write a graphical floodfill method in C#

Draw an animated hypotrochoid (Spirograph curve) in C#

Langton's Ant contest winners

Contest: Langton's Ant Simulation

Use animation to show how the recursive solution to the Tower of Hanoi problem works in C#

Recursively draw a binary tree in C#

Pixelate areas on an image in C#

Plot a simple heart-shaped function in C#

Find Egyptian fractions in C#

Make a Fraction class in C#

Use a label setting algorithm to find shortest paths through a network in C#

Draw a variety of fractal strange attractors in C#

Use steganography to hide encrypted messages in an image in C#

Make a Set class that inherits from HashSet and that support operators such as union and intersection in C#

Use the HashSet class to represent sets and perform set operations in C#

Find a least squares Weibull curve fit for a set of points in C#

Find an exponential least squares fit for a set of points in C#

Find a smallest enclosing rectangle for a polygon in C#

Use branch and bound with an initial heuristic to solve the partitioning problem in C#

Solve the partitioning problem by using an exhaustive search in C#

Use branch and bound to solve the partitioning problem more quickly than an exhaustive search in C#

Find a polynomial least squares fit for a set of points in C#

Find a linear least squares fit for a set of points in C#

Draw a vortex fractal with smoothly shaded colors in C#

Draw a Mandelbrot set with smoothly shaded colors in C#

Pick N random items from an array of M items in C#

Select a random object from an array or other collection in C#

See if a number is expressible as a sum of two cubes (and calculate Taxicab numbers) in C#

Draw a vortex fractal in C#

Draw a Phoenix set fractal in C#

Use a Complex number class to draw Mandelbrot sets easily in C#

Draw a Bézier curve "by hand" that matches the one drawn by the Graphics object's DrawBezier method in C#

Improve the picture tiles jigsaw game in C#

Make a picture tiles jigsaw game in C#

Draw lines with arrowheads in C#

Partition an area with circles and draw each region's count in C#

Find a Region's centroid in C#

Find the area where two or more circles overlap in C#

Find the tangent lines between two circles in C#

Find the tangent lines between a point and a circle in C#

Use transformations to map points from one coordinate system to another when drawing in C#

Use Newton's method to draw fractals for equations of the form F(z) = z^N + z^(N-1) + ... + z + 1 in C#

Use Newton's method to draw fractals for equations of the form F(z) = z^C - C^z in C#

Use Newton's method to draw a fractal in C#

Use Newton's method to find the roots of equations in C#

Solve a system of equations with Gaussian elimination in C#

Scale a drawing so it fits a target area in C#

Draw a colored butterfly curve in C#

Draw an epitrochoid in C#

Draw level curves for an array of z values corresponding to points (x, y) in C#

Draw level curves for functions of two variables z = F(x, y) in C#

Plot a heart-shaped function in C#

Plot a smiley face function in C#

Use delegates to pass a method's address to another method in C#

Plot the equation of a function of two variables in C#

Draw a skewed Sierpinski gasket with any number of corners in C#

Draw a Sierpinski gasket in C#

Determine where two circles intersect in C#

Determine where a line intersects a circle in C#

Find the shortest distance between two line segments in C#

Find the shortest distance between a point and a line segment in C#

Determine where the lines defined by two segments intersect in C#

Draw a fractal Pickover strange attractor in C#

Apply filters to images to perform edge detection, smoothing, embossing, and more in C#

Draw a curlicue fractal in C#

Draw a hypotrochoid (Spirograph curve) in C#

Calculate the greatest common divisor (GCD) and least common multiple (LCM) of two integers in C#

Generate all of the selections of K items from a set of N items in C#

Calculate the binomial coefficient "N choose K" efficiently in C#

Calculate factorials (and use Debug.Assert) in in C#

Generate all of the permutations of a set of objects in C#

Find a number's prime factors in C#

Make a list of prime numbers in C#

Triangulate a polygon in C#

Reverse a polygon's orientation in C#

Determine whether a polygon's points are oriented clockwise in C#

Find a polygon's centroid in C#

Calculate a polygon's area in C#

Determine whether a point is inside a polygon in C#

Determine whether a polygon is convex in C#

Perform geometric operations on polygons in C#

Draw a Sierpinski fractal curve in C#

Draw a strange attractor fractal in C#

Calendar

September 2011
SuMoTuWeThFrSa
123
45678910
11121314151617
18192021222324
252627282930

Subscribe


Blog Software
Blog Software