Click here to Skip to main content
14,971,215 members
Everything / General Programming / Algorithms

Algorithms

algorithm

Great Reads

by Arthur V. Ratz
In this article we'll demonstrate the implementation of k-means clustering algorithm to produce recommendations.
by Dmitriy Gakh
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 jurhas
A small simulator for a 6 axis articulated robot
by Arthur V. Ratz
This article demonstrates the development of code in C# implementing famous k-means clustering algorithm to perform graphical raster image segmentation.

Latest Articles

by aroman
In this post I implement a Density Matrix Renormalization Group program.
by Peter Occil
Has many ways applications can sample using an underlying (pseudo-)random number generator and includes pseudocode for many of them.
by Sergey L. Gladkiy
In this article I’ll explain how to perform the alignment based on the face landmarks the detector has found.
by The Sun God
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

Sort by Score

Algorithms 

Please Sign up or sign in to vote.
8 Apr 2020
Gunnar S
Implementation of the Poisson Cumulative Distribution function for large Lambdas
Please Sign up or sign in to vote.
22 Apr 2016
Darryl Bryk
1 alternative  
C# code for a low-pass Butterworth filter is presented
Please Sign up or sign in to vote.
10 Nov 2014
Cryptonite
This is how to use the bisection method to calculate the nth root of a positive real number.
Please Sign up or sign in to vote.
26 Mar 2015
BrainlessLabs.com
This tip describes a n ary tree structure.
Please Sign up or sign in to vote.
16 Dec 2015
Jesús Utrera
Using text retrieval TF-IDF technique to rank tokens in a text document
Please Sign up or sign in to vote.
24 May 2020
Jonas Vago
Application to show how to zigzag order a matrix
Please Sign up or sign in to vote.
18 May 2010
xprog
Algorithm to convert Arabic Numbers to Arabic Text using C#
Please Sign up or sign in to vote.
20 Feb 2012
ZC123456
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...
Please Sign up or sign in to vote.
19 Jul 2011
Anil Dhandar
Convert an input value to an output value in a proportional range - requires tricky calculations.
Please Sign up or sign in to vote.
23 Jun 2015
DrABELL
Computational algorithms pertinent to finding the great-circle distance between 2 points on Earth
Please Sign up or sign in to vote.
26 Oct 2018
José Cintra
Generic algorithm to generate mathematical sequences
Please Sign up or sign in to vote.
15 Feb 2011
DrABELL
The computational efficiency of the Euclid's algorithm is much higher that the alternatives
Please Sign up or sign in to vote.
26 Mar 2012
Søren Gullach
A Shunting yard algorithm in C#
Please Sign up or sign in to vote.
2 Dec 2013
ExcelledProducts CEO
Closest latitude and longitude to a referenced latitude and longitude.
Please Sign up or sign in to vote.
17 Oct 2015
José Cintra
Tips for creating mathematical cross-platform applications in JavaScript and display formulas and other content with MathJax and JQuery Mobile.
Please Sign up or sign in to vote.
12 Feb 2014
charles henington
This is an alternative for "Send Mail With Attachment File"
Please Sign up or sign in to vote.
18 Sep 2012
Grant Curell
IP checksum implementation in python
Please Sign up or sign in to vote.
14 Nov 2019
Bloody Chicken
Algorithm for printing an bitmap image with textwrapping and alignment in ESC/POS thermal printer.
Please Sign up or sign in to vote.
26 Mar 2011
jc3po
How generics can be used to sort lists easily and efficiently.
Please Sign up or sign in to vote.
5 Feb 2012
saboor awan
WP7 FloodFill in Texture2D using Scan line Stack Algo
Please Sign up or sign in to vote.
17 May 2013
computermagic
Generating sequential GUIDs in C++ and Qt 5
Please Sign up or sign in to vote.
4 Sep 2015
Gerardo Recinto
A Tracer API, simply. :)
Please Sign up or sign in to vote.
25 Oct 2015
juwikuang
Weighted Quick Union Find in C#, VB.NET and F#
Please Sign up or sign in to vote.
15 Jan 2013
Tharaka MTR
Article provides details about Mod 10 algorithm and how to validate a credit card number with mod 10 algorithm using C#.
Please Sign up or sign in to vote.
12 Sep 2015
Shvetsov Evgeniy
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!
Please Sign up or sign in to vote.
7 Feb 2013
J.F. Sebastian
A WSQ to BMP converter.
Please Sign up or sign in to vote.
15 Jul 2014
Burhan Joukhadar
Fortune Voronoi Diagram in C#
Please Sign up or sign in to vote.
7 Jul 2015
Mustafa Sezgi Güneş
In this tip, we will learn how to summarize text files with HTML tags on server-side.
Please Sign up or sign in to vote.
13 Sep 2019
honey the codewitch
A B-tree, an AVL tree, and a Splay tree in C#
Please Sign up or sign in to vote.
3 Mar 2014
CPallini
Simple approach to heap data structure and heapsort, using C and Lua
Please Sign up or sign in to vote.
5 Mar 2011
DrABELL
Algorithms extending the System.Globalization.TextInfo.ToTitleCase Method
Please Sign up or sign in to vote.
3 Jul 2015
DrABELL
Serial and Parallel implementation of efficient Prime Factoriing algorithms
Please Sign up or sign in to vote.
16 Jan 2016
Mathew_wwx
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.
Please Sign up or sign in to vote.
12 Jun 2014
Jacob F. W.
Adding and subtracting a 128 Bit Unsigned Integer
Please Sign up or sign in to vote.
4 Nov 2014
Dariush Tasdighi
A very powerful and customizable source code that converts the Infix to Postfix expression.
Please Sign up or sign in to vote.
11 Sep 2015
PIEBALDconsult
This is an alternative for "Split Any Delimited String in SQL"
Please Sign up or sign in to vote.
12 Apr 2021
GuildOfCalamity
This is an unscramble class that can be used to decypher any word.
Please Sign up or sign in to vote.
1 Oct 2015
DP17000
A rudimentary expert system in VBA/ Excel 2013
Please Sign up or sign in to vote.
17 Sep 2016
Rajesh Londhe
Face alignment rotation to improve face recognization
Please Sign up or sign in to vote.
26 Oct 2018
José Cintra
Simple algorithm to determine the type of a triangle, being informed its sides
Please Sign up or sign in to vote.
29 Jul 2013
Ravimal Bandara
An implementation of ray-casting algorithm to check if a given point is inside or outside the polygon.
Please Sign up or sign in to vote.
5 Nov 2018
José Cintra
Calculating some mathematical sequences and series with the Haskell programming language
Please Sign up or sign in to vote.
19 Apr 2011
DrABELL
.NET/C# managed code implementation of 2 core algorithms of integer arithmetic: GCD and LCM (used in "3 Fraction Calculator", best on Google)
Please Sign up or sign in to vote.
17 Jul 2012
Jacob F. W.
Here I present an improved version of the Circular Shift Operations
Please Sign up or sign in to vote.
26 Jun 2015
Yuriy Magurdumov
This example shows how to iterate over an unknown number of nested loops.
Please Sign up or sign in to vote.
5 May 2012
Jonathan Lima
A simple key value-pair hashtable written in C
Please Sign up or sign in to vote.
7 Jun 2013
Lutosław
Calcution of a standard deviation and filtering outliers in a LINQ-style.
Please Sign up or sign in to vote.
24 Dec 2013
YvesDaoust
Yet another home-made implementation of the floor function
Please Sign up or sign in to vote.
31 Mar 2015
BrainlessLabs.com
This tip describes a n ary tree structure. We will see how traversal works.
Please Sign up or sign in to vote.
20 Dec 2015
shijo joseph
An easy to implement yet powerful logging library which requires absolute zero learning curve
Please Sign up or sign in to vote.
3 Jan 2015
Emiliano Musso
How to calculate the distance between two strings according to Levenshtein algorithm
Please Sign up or sign in to vote.
7 Sep 2015
XyedBilal
Convert tree data structure to a list or array
Please Sign up or sign in to vote.
29 Sep 2015
HP2M
This tip covers handling two Excel lists using Interop.
Please Sign up or sign in to vote.
18 Sep 2012
vivekshankars
Program to calculate the IRR value using C/C++ similar to the one available in Excel
Please Sign up or sign in to vote.
7 Jun 2013
Hamed Naeemaei
In this article, we describe a solution for solving the 8-queen problem.
Please Sign up or sign in to vote.
11 Feb 2011
ZamirF
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
Please Sign up or sign in to vote.
15 Sep 2015
Shvetsov Evgeniy
How to generate a random sequence of chars with the specified parameters (e.g., length, char sets, char count per set, etc.)
Please Sign up or sign in to vote.
1 Jan 2015
Benjamin Lifshitz
With this code, you can print images quickly and efficiently, using the largest part of the A4 page for your image.
Please Sign up or sign in to vote.
2 Aug 2015
Reader Man San
Plug-in Architecture To Work in WinForms MVC + WPF MVVM + ASP.NET MVC + Mobile (Xamarin MVC/PhoneGap MVC) + Win 10 Universal App MVC
Please Sign up or sign in to vote.
9 Jun 2019
User 14454194
Implementations of lowpass, highpass, and bandpass nth-order Butterworth filters in C#, with design documentation.
Please Sign up or sign in to vote.
12 Jan 2016
shijo joseph
An ADO.NET Layer for SQL Server and Oracle which makes it easier for interfacing with database
Please Sign up or sign in to vote.
6 Aug 2014
Grasshopper.iics
Most inefficient yet easy Devanagari Transliteration
Please Sign up or sign in to vote.
2 Nov 2012
Saad Mousliki
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.
Please Sign up or sign in to vote.
3 Mar 2016
The Zakies
Tutorial 2 (how to interactively add multiple shapes GDI using linked lists)
Please Sign up or sign in to vote.
14 Feb 2011
jfriedman
/// /// Find the Greatest Common Divisor /// /// Number a /// Number b /// The greatest common Divisor public static long GCD(long a, long b) ...
Please Sign up or sign in to vote.
18 Feb 2011
Mauro Leggieri
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.
Please Sign up or sign in to vote.
5 Aug 2015
sreeyush sudhakaran
VB.NET code for Base64 Encoding and Decoding of Image files
Please Sign up or sign in to vote.
24 Feb 2019
WhiskeyBeforeWater
This article instructs on how to implement a basic binary search tree using Excel VBA with insert, delete, search, traversal, minimum, and maximum. For a recursive answer please go to https://www.codeproject.com/Tips/1277790/A-Recursive-Binary-Search-Tree-For-VBA