Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / programming / algorithm

Algorithm

algorithm

Great Reads

by Mircea Neacsu
Various algorithms for 2D interpolation
by Sudhir Tiwari
8/15 puzzle using A* (A Star) algorithm.
by DP17000
A rudimentary expert system in VBA/ Excel 2013
by Darryl Bryk
C# code for a low-pass Butterworth filter is presented

Latest Articles

by Mircea Neacsu
Various algorithms for 2D interpolation
by Sudhir Tiwari
8/15 puzzle using A* (A Star) algorithm.
by DP17000
A rudimentary expert system in VBA/ Excel 2013
by Darryl Bryk
C# code for a low-pass Butterworth filter is presented

All Articles

Sort by Score

algorithm 

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