BLOG.CSHARPHELPER.COM: Category Archive for algorithms

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#

Find the convex hull of a set of points in C#

Sort and provide custom sorts for standard data types and objects in C#

Format a number of bytes in KB, MB, GB, and so forth in C#

Calculate logarithms in different bases in C#

Convert between Excel-style column numbers and names in C#

Calculate compound interest over time in C#

Randomize the items in an array in C#

Assign people (or anything else) to randomly selected groups in C#

Make an extention method that converts a number into words (as in "one thousand eight hundred twelve") in C#

Evaluate mathematical expressions with code in C#

Draw a Barnsley fern fractal in C#

Draw a Buddhabrot fractal in C#

Draw a Hilbert curve fractal in C#

Calendar

February 2011
SuMoTuWeThFrSa
12345
6789101112
13141516171819
20212223242526
2728

Subscribe


Blog Software
Blog Software