14,971,215 members
Everything / General Programming / Algorithms

Algorithms

algorithm

by
In this article we'll demonstrate the implementation of k-means clustering algorithm to produce recommendations.
by
Development in C# without care of resource consumption can lead to overloading the system. This article describes a case with large waste of memory and CPU time and how to avoid it.
by
A small simulator for a 6 axis articulated robot
by
This article demonstrates the development of code in C# implementing famous k-means clustering algorithm to perform graphical raster image segmentation.

Latest Articles

by
In this post I implement a Density Matrix Renormalization Group program.
by
Has many ways applications can sample using an underlying (pseudo-)random number generator and includes pseudocode for many of them.
by
In this article I’ll explain how to perform the alignment based on the face landmarks the detector has found.
by
Welcome to our Comparison on Sorting Algorithms Article. Here, we'll be comparing the various sorting Algorithms out there on the basic of several factors.

All Articles

Algorithms

8 Apr 2020
Implementation of the Poisson Cumulative Distribution function for large Lambdas
22 Apr 2016
C# code for a low-pass Butterworth filter is presented
10 Nov 2014
This is how to use the bisection method to calculate the nth root of a positive real number.
26 Mar 2015
This tip describes a n ary tree structure.
16 Dec 2015
Using text retrieval TF-IDF technique to rank tokens in a text document
24 May 2020
Application to show how to zigzag order a matrix
18 May 2010
Algorithm to convert Arabic Numbers to Arabic Text using C#
20 Feb 2012
As a developer who has spent a fair amount of time tweaking code for performance optimization, I'm having some issues with this article.First of all, who has generally accepted 10M iterations to test the performance? Unless your native code happens to be calling a function thousands or...
19 Jul 2011
Convert an input value to an output value in a proportional range - requires tricky calculations.
21 Feb 2014
Sudoku Generator
23 Jun 2015
Computational algorithms pertinent to finding the great-circle distance between 2 points on Earth
26 Oct 2018
Generic algorithm to generate mathematical sequences
15 Feb 2011
The computational efficiency of the Euclid's algorithm is much higher that the alternatives
26 Mar 2012
A Shunting yard algorithm in C#
2 Dec 2013
Closest latitude and longitude to a referenced latitude and longitude.
17 Oct 2015
Tips for creating mathematical cross-platform applications in JavaScript and display formulas and other content with MathJax and JQuery Mobile.
12 Feb 2014
This is an alternative for "Send Mail With Attachment File"
18 Sep 2012
IP checksum implementation in python
14 Nov 2019
Algorithm for printing an bitmap image with textwrapping and alignment in ESC/POS thermal printer.
26 Mar 2011
How generics can be used to sort lists easily and efficiently.
5 Feb 2012
WP7 FloodFill in Texture2D using Scan line Stack Algo
17 May 2013
Generating sequential GUIDs in C++ and Qt 5
4 Sep 2015
A Tracer API, simply. :)
25 Oct 2015
Weighted Quick Union Find in C#, VB.NET and F#
15 Jan 2013
Article provides details about Mod 10 algorithm and how to validate a credit card number with mod 10 algorithm using C#.
12 Sep 2015
Using C++ templates? Wish your template algorithm will be versatile and ready to work with the classes, which do not fully support the required interface? Want more functional programming with C++? Get it now!
7 Feb 2013
A WSQ to BMP converter.
15 Jul 2014
Fortune Voronoi Diagram in C#
7 Jul 2015
In this tip, we will learn how to summarize text files with HTML tags on server-side.
13 Sep 2019
A B-tree, an AVL tree, and a Splay tree in C#
3 Mar 2014
Simple approach to heap data structure and heapsort, using C and Lua
15 Sep 2011
5 Mar 2011
Algorithms extending the System.Globalization.TextInfo.ToTitleCase Method
3 Jul 2015
Serial and Parallel implementation of efficient Prime Factoriing algorithms
16 Jan 2016
This tip will introduce a library written in C++ that wraps up a 2d polygon triangulation algorithm with time complexity of O(N*logN), the algorithm works on both self-intersected and non self-intersected polygons.
12 Jun 2014
Adding and subtracting a 128 Bit Unsigned Integer
4 Nov 2014
A very powerful and customizable source code that converts the Infix to Postfix expression.
11 Sep 2015
This is an alternative for "Split Any Delimited String in SQL"
12 Apr 2021
This is an unscramble class that can be used to decypher any word.
1 Oct 2015
A rudimentary expert system in VBA/ Excel 2013
17 Sep 2016
Face alignment rotation to improve face recognization
26 Oct 2018
Simple algorithm to determine the type of a triangle, being informed its sides
29 Jul 2013
An implementation of ray-casting algorithm to check if a given point is inside or outside the polygon.
5 Nov 2018
Calculating some mathematical sequences and series with the Haskell programming language
19 Apr 2011
.NET/C# managed code implementation of 2 core algorithms of integer arithmetic: GCD and LCM (used in "3 Fraction Calculator", best on Google)
17 Jul 2012
Here I present an improved version of the Circular Shift Operations
26 Jun 2015
This example shows how to iterate over an unknown number of nested loops.
5 May 2012
A simple key value-pair hashtable written in C
7 Jun 2013
Calcution of a standard deviation and filtering outliers in a LINQ-style.
24 Dec 2013
Yet another home-made implementation of the floor function
31 Mar 2015
This tip describes a n ary tree structure. We will see how traversal works.
20 Dec 2015
An easy to implement yet powerful logging library which requires absolute zero learning curve
3 Jan 2015
How to calculate the distance between two strings according to Levenshtein algorithm
7 Sep 2015
Convert tree data structure to a list or array
29 Sep 2015
This tip covers handling two Excel lists using Interop.
18 Sep 2012
Program to calculate the IRR value using C/C++ similar to the one available in Excel
7 Jun 2013
In this article, we describe a solution for solving the 8-queen problem.
11 Feb 2011
Can we simplify it by: (This essentially passes only two numbers). public int GCD(int value1, int value2){ int max = 0; bool gcdFound = false; int counter = 1; //Make sure both numbers are atleast 2 or above if (( value1
15 Sep 2015
How to generate a random sequence of chars with the specified parameters (e.g., length, char sets, char count per set, etc.)
1 Jan 2015
With this code, you can print images quickly and efficiently, using the largest part of the A4 page for your image.
2 Aug 2015
Plug-in Architecture To Work in WinForms MVC + WPF MVVM + ASP.NET MVC + Mobile (Xamarin MVC/PhoneGap MVC) + Win 10 Universal App MVC
9 Jun 2019
Implementations of lowpass, highpass, and bandpass nth-order Butterworth filters in C#, with design documentation.
12 Jan 2016
An ADO.NET Layer for SQL Server and Oracle which makes it easier for interfacing with database
6 Aug 2014
Most inefficient yet easy Devanagari Transliteration
2 Nov 2012
In this tip, I will describe how to implement a cursor controller in your project that use the Kinect to control the mouse of your PC.
3 Mar 2016
Tutorial 2 (how to interactively add multiple shapes GDI using linked lists)
14 Feb 2011
/// /// Find the Greatest Common Divisor /// /// Number a /// Number b /// The greatest common Divisor public static long GCD(long a, long b) ...
18 Feb 2011
It is better to do this:public static long LCM(long a, long b){ return (a / GCD(a,b)) * b;}To avoid overflow on big numbers.
5 Aug 2015
VB.NET code for Base64 Encoding and Decoding of Image files
31 Jul 2015