Click here to Skip to main content
15,888,968 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 Igor Ladnik
Automatic generation of optimal control policies for the basic quadcopter flight modes
by Eric Ouellet, Sani Huttunen
Fast implementations of permutation algorithms
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.

Latest Articles

by rtybase
In this article, I am presenting a sorting schema, hugely inspired by the Bucket and Proxmap sorting algorithms.
by Igor Gribanov
C++ iterators and algorithms work well for containers, but can we sort the Structure of Arrays?
by Henrik Vestermark
The steps needed to build an Interval Arithmetic class in C++
by Ștefan-Mihai MOGA
How to solve real-life problems using B-trees

All Articles

Sort by Updated

Algorithms 

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