Click here to Skip to main content
14,607,837 members

algorithms

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 Mahsa Hassankashi
Best Practice For Opinion and Text Mining Based on Naïve Bayesian Classifier. This article will explain complete and describe detail by detail and step by step computational matters.

Latest Articles

by Mohammad Nasirifar
My status report while trying to understand why the exact same code Runs 1000s (not kidding) of times slower in Python
by Jonas Vago
Application to show how to zigzag order a matrix
by Arthur V. Ratz
I will discuss how to deliver the modern code, using Intel C++ Compiler and OpenMP 4.5 library, that implements the parallel "stable" three-way quicksort, based on the parallel code that has already been discussed in the previous article.

All Articles

Sort by Title

algorithms 

14 Jul 2013
Sudhir Tiwari
8/15 puzzle using A* (A Star) algorithm.
14 Nov 2016
Mehedi Shams
An eye-teaser to tease your eyes, see if you can beat it!
2 Jan 2019
Octavio Loyola-González, Miguel Angel Medina-Pérez, Andres Eduardo Gutierrez Rodriguez, Milton García Borroto
In this article, we introduce a framework in C# for fingerprint verification, we briefly explain how to perform fingerprint verification experiments and how to integrate your algorithms to the framework.
6 Sep 2016
George Swan
An articial life algorithm that attempts to solve a problem by flying a swarm of entities through a range of possible solutions where each entity is guided by the performance of other members of the swarm
30 Jan 2012
Dirk Bahle
UI and code-behind is executed in different threads. Long running processes need asynchronous execution. This artice shows a way of doing this in a ViewModel approach.
13 Oct 2013
Member 9294701
A simple, portable yet efficient Quicksort implementation in C
2 Feb 2011
George Tryfonas
Assembler and Simulator for Don Knuth's MIX Computer from The Art of Computer Programming.
28 Jul 2014
Mostafa Eissa
This article explains the concept of graph coloring and how to use graph coloring to solve Sudoku Puzzles.
24 Feb 2019
WhiskeyBeforeWater
An unbalanced basic recursive Binary Search Tree for Excel VBA with functions (insert, search, delete, in order, pre-order, post-order, minimum, and maximum)
24 Apr 2016
raddevus
Step by step walk-through with progressive versions of code downloads will take you from the basics of drawing on HTML5 Canvas while studying an interesting point-connecting algorithm.
26 Apr 2016
raddevus
Adding more methods (select points, draw triangles, etc) which allow us to do some specialized drawing on the HTML5 Canvas so we can investigate the Calc Convex Hull algorithm.
27 Apr 2016
raddevus
We learn how to generate random points (easy) and we enable functionality which allows the user to grab any point on the grid and move it around in real-time (see animated gif).
18 Aug 2014
José Cintra
Some suggestions of algorithms for solving the Pascal Triangle, addressing iterative, recursive and functional paradigms
21 Jan 2013
Simeon Sheye
How to manage state and simulate behavior against the system under test.
4 Sep 2013
Grasshopper.iics
You would never want to use another photo editor in your AIO again
3 Nov 2010
Dave Midgley
.NET delegates and Generics allow for an elegant implementation of the Command pattern.
25 Nov 2018
Coding Notes
An introduction to the SVM and the simplified SMO algorithm
18 Feb 2014
Paul Lawitzki
This article presents one approach to increase the quality of rotation information gathered from different sensor sources using a simple sensor fusion algorithm, specifically on an Android device.
5 Jul 2016
T. Herselman
2 years ago I went OCD on memcpy/memmove; and wrote over 140 variations (80,000 lines of code) of memmove; testing, disassembling, optimizing and benchmarking them on multiple machines. I never released the article or the code; until now! So I need to do it before I loose my mind!
14 Nov 2010
Dima Statz
One of the best methods for solving approximate string matching problem
20 Jul 2019
Arthur V. Ratz
The audience of this article's readers will find out how to perform association rules learning (ARL) by using the scalable optimized Apriori algorithm, discussed.
20 Jul 2019
Arthur V. Ratz
The audience of this article's readers will find out how to perform association rules learning (ARL) by using FPGrowth algorithm, that serves as an alternative to the famous Apriori and ECLAT algorithms.
23 Dec 2014
César de Souza
Demonstration of automatic image stitching by interest point matching using the Accord and AForge.NET Frameworks
28 May 2018
John M. Dlugosz
Using swap etc. from generic code must be done properly. Here’s how to fix it for good.
4 Mar 2014
Al-Samman Mahmoud
Basic tool for the translation of DNA
28 Aug 2015
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.
14 Jun 2017
Andy Allinger
Introduces data clustering and the k-means++ algorithm
7 Aug 2014
Rakesh Waghulde
This gives the optimal strategy to solve the famous Bridge Crossing Puzzle in generalized way.
6 Feb 2018
raddevus
Entry in the Artificial Intelligence and Machine Learning Contest. Here's how I learned / guessed how to find spam.
14 Jun 2018
paolo guccini
How to use the Microsoft Interop/Automation to implement parallel research of a Microsoft Office file password.
2 Dec 2016
Tung.Nguyen.2k
How to implement B-Tree's searching, insertion and deletion in Java
28 Nov 2010
Sergii Lavrinenko
Engine in C# which generates Linq Expressions runtime based on simple scripts
9 Aug 2016
Alberto Montibelli
Application for solving Bin Packing and Cutting Stock problem
25 Dec 2016
Arthur V. Ratz
In this article we'll demonstrate the implementation of k-means clustering algorithm to produce recommendations.
31 Aug 2015
Mikhail Semenov
Efficient Quicksort methods for sorting arrays with lots of duplicate elements
26 Apr 2016
Arthur Minduca
How to choose the right data structure for a collection of elements
21 Jun 2013
Lipman Roi
An algorithm which automatically generates circular mazes.
22 Apr 2013
Karl Runmo
Arbitrary precision calculations
7 Jun 2016
GProssliner
cobj is a preprocessor based generator for interface based polymorphism
10 Jul 2015
darrellp
A framework for easily solving programming challenges from competitive coding sites
2 Jun 2010
taheretaheri
Highlights the differences in how you create an XOR network in Neuroph, Encog and JOONE
25 Jan 2016
Vadim Stadnik
This article explains fast sequential summation algorithms through the comparison of two representations of a binary tree: a linked structure of nodes and an array.
9 Mar 2011
Christophe Gauge
This code performs a fuzzy C-means clustering and segmentation of color images, and can be used for feature extraction.
17 Jun 2012
W. Michael Perkins
1 alternative  
This article provides a general algorithm and a C# implementation for converting expressions written in postfix or reverse Polish notation to infix.
20 Jun 2012
Andreas Gieriet
This is an alternative for "Converting Postfix Expressions to Infix"
5 Oct 2010
#realJSOP
One way to create a completely random encryption key, and sharing it with a client application
10 Jun 2019
Viral Surani
This article is a first article of a series called Keep It Simple. This article is about How we can create reusable component of partially common operation (method) using Strategy Design Pattern. We will see the need of Strategy Design Pattern.
22 Nov 2012
Jacob F. W.
A Simple But Surprisingly Effective Random Number Generator
29 Oct 2013
Paulo Augusto Kunzel
A tutorial on basic data structures and JavaScript.
14 May 2012
Andreas Gieriet
Make floating point equality and relation operators reliable based on a comparison epsilon value.
24 Oct 2017
Satprem Pamudurthy
This article examines some of the use cases for memoization and shows that a tightly-coupled implementation does not scale well to new applications. It then presents a modular design for a C++ memoization framework that is generic, efficient and extensible to new applications.
10 Aug 2010
anshulskywalker
Understanding of Example Based Machine Translation (EBMT) system and how to create your own using exisiting tools
13 Nov 2014
Mark H Bishop
This article presents a Java example application that performs discrete wavelet transforms.
17 Feb 2015
DrABELL
Educational software package for Microsoft Windows® 7/8 contains “5-in-1” School Math Calculators and Equation Solvers intended for students and educators
14 Aug 2015
DrABELL
This is an alternative for "Fastest method to trim all whitespace from Strings in .NET"
20 Nov 2014
Vadim Stadnik
Generality and efficiency of a semigroup in C++ are achieved by using an augmented B+ tree. Basic and advanced applications of such a semigroup are discussed.
21 Jan 2017
Michael_Jacobsen
Encryption algorithm based on key self-mutation. Complete source code and samples.
16 Dec 2010
Avi Farah
Overcoming limitations of: Enhanced String Handling
9 Sep 2018
Philipp Sch
Finding a fundamental Cycle Set forming a complete basis to enumerate all cycles of a given undirected graph
25 May 2016
Shvetsov Evgeniy
Numbers (positive AND negative integral/fractional) to english/russian words
1 Mar 2018
Omar Saad (IREQ), Eric Ouellet
Many improvements over a pretty new and unknown very fast 2D Convex Hull algorithm and much more.
21 Apr 2018
Wade Harvey
This article shows how to use Winforms, WPF and C# to create a File Explorer Clone with Tabs and an extremely fast parallel file search utility.
15 Jul 2018
Nour Helal
Find the first number k divisible by given number n (extended approach)
7 Jun 2012
AndyUk06
A recursive algorithm to find all paths between communicating network nodes.
27 Jan 2017
wlf84k
This short article provides a method of calculating nth binary palindrome using some math in C# code.
27 Jul 2011
Sei Flavius
Solution to Finding Sophie puzzle
4 Oct 2017
Bhairav Thakkar
A robust framework for complete implementation of Finite Element Analysis in VB.Net
10 May 2012
PIEBALDconsult
This is an alternative for "From one number system to another"
10 Jul 2016
Perić Željko
1 alternative  
Developing and implementation of algorithm for converting number from one to another positional number system
10 Jan 2017
Jakub Szymanowski
The article presents idea and implementation of fundamental algorithms in image processing.
7 May 2010
Sarang Date
The following article describes C# implementation of various basic and advanced operations including some of the programming problems involving singly linked list
4 Mar 2016
JorgeLuisOrejel
This article is based on Chapter 2 of my unpublished textbook “Applied Algorithms and Data Structures.”
8 Feb 2015
Emiliano Musso
How to apply GA techniques fo solving problems in VB.NET. The example shows how to create solutions for a 2D maze, which will evolve to find the shortest path between two points.
9 Apr 2015
Thomas Daniels
An algorithm to classify whether text is gibberish or not, and an implementation in C# and Python.
7 Oct 2018
Mojtaba Hosseini
A graphical binary tree. Features: add, remove, or search for a node. Recursive algorithm has been used
2 Dec 2014
César de Souza
In a previous article, we discussed how to perform the recognition of handwritten digits using Kernel Discriminant Analysis. In this article, we will discuss some techniques to do it using Kernel Support Vector Machines.
21 Feb 2016
Shvetsov Evgeniy
String class with the auto. managed memory pool and performance tweaks + support modules
5 Nov 2012
Jacob F. W.
Learn the Secrets of the Universe
7 May 2020
Arthur V. Ratz
I will discuss how to deliver the modern code, using Intel C++ Compiler and OpenMP 4.5 library, that implements the parallel "stable" three-way quicksort, based on the parallel code that has already been discussed in the previous article.
21 Jan 2014
Abdelrahman Elzedy
A brief overview on mathematical implementations with programming language
3 Apr 2016
sureshkon
Leverage probabilistic data structures when dealing with large datasets
1 Jul 2015
Woong Gyu La
This article explains 10 rules (steps) for replacing the recursive functions using stack and while-loop to avoid the stack-overflow.
20 Nov 2018
Apriorit Inc, Artem K.
Find out approaches which you can use to improve runtime algorithms for zero-day threat detection
1 Feb 2012
Mohammad A Rahman
ID3 Decision Tree Algorithm - Part 1 (Attribute Selection Basic Information)
23 Apr 2013
HoshiKata
How to teach a program to recognize something within a video stream.
7 Sep 2010
Colin Vella
This article presents an algorithm and data structures to implement auto-tiling as seen in RPG Maker, the Starcraft level editor, etc.
20 Jul 2015
Ashkan Pourghasem
Hands on tutorial of implementing batch gradient descent to solve a linear regression problem in Matlab
29 Aug 2017
Arthur V. Ratz
This article demonstrates the development of code in C# implementing famous k-means clustering algorithm to perform graphical raster image segmentation.
6 Nov 2014
Jakub Szymanowski
Article presents the problem of the detection and cancelation of impulse noise in acoustic signals using an Exponentially Weighted Least Squares (EWLS) and next step error prediction analysis.
3 Aug 2016
Vyacheslav Chernykh
F#-implementation of algorithm for incremental construction of minimal deterministic finite automata through adding and removing strings.
11 Aug 2011
hosein fereidooni
Informed search algorithms to solve Sudoku Samurai
30 May 2019
Patrice T
Integer factorization: Optimizing small factors checking
29 May 2019
Patrice T
A little review of Trial Division algorithm
6 Jul 2016
Victor Soldatov
A coarse approach to operate huge integers.
10 Jul 2016
Ramneekkalra
This article will surely give an idea how to develop a self-controlled, self-connected smart home/building.
27 Oct 2015
Daniel Pfeffer
A faster method for performing interval arithmetic
24 Feb 2012
HoshiKata
An introduction to numerical solver algorithms with general purpose demonstration code.
30 Dec 2010
yonken
Yet another implementation to enumerate files
10 Jul 2014
Ricardo Lynch
Using JavaScript for oAuth with three major identity providers: Facebook, Google, and Twitter.
3 Jul 2012
Charles Wiebe and John Hansen
Maintaining code with complex permissions tends to be difficult, because the code can be distributed across multiple classes. By embedding permissions directly on methods and properties within a class, code is reduced and maintainability is simplified.
14 Mar 2017
Thomas Daniels
This article is a solution to CodeProject's Weekly Challenge: "A knight on a chess board".
13 Feb 2017
Alibaba Cloud
In this post, we learn about algorithms that help implement ML functions.
6 Feb 2019
Mark H Bishop
Computational classes and a GUI interface to illustrate usage
10 Dec 2015
Daniel Miller
This article describes the C# implementation for a high-performance role-based access control list.
3 Nov 2016
Intel Corporation
Get Results with the Intel® Data Analytics Acceleration Library and the Latest Intel® Xeon Phi™ Processor
29 Jan 2017
Miguel Diaz Kusztrich
Demonstrate or refute a conclusion automatically from a series of premises
26 Apr 2018
Mahsa Hassankashi
Best Practice For Opinion and Text Mining Based on Naïve Bayesian Classifier. This article will explain complete and describe detail by detail and step by step computational matters.
3 Apr 2014
Chris Copeland
Using call stacks, rather than Regular Expression, to deconstruct mathematical formulae and calculate values.
20 Sep 2015
Shibasis Sengupta
A software which provides user the option to create and send meeting minutes using template, mark attendees, create next followup meeting , assign tasks to people - all from a single consolidated screen.
14 Nov 2012
Livio Francescucci
A clean version of merge sort algorithm, implemented with classes and objects instead of the usual, unreadable big function.
21 Jun 2017
Alexander Chernosvitov
Implementation of a polynomial time algorithm searching Hamilton cycles in an undirected graph
1 Dec 2010
Aron Weiler
A standard in-memory generic .NET queue that, when the configurable overflow limit is reached, will start using MSMQ as a backend to mitigate the issues with memory usage.
26 Nov 2018
Jonas Selling
Clarifying the use of multi-pass filter cutoff correction
22 Jan 2012
milansolanki
Implementation of Wikipedia’s “Naive Bayes classifier Algorithm”.
15 Apr 2014
Mark Harker
In this article I would like to discuss how you can find all non-simple paths from a starting node to an end node in a directed graph.
21 Aug 2012
KjellKod.cc
Most programming resources are wrong when comparing linked-list to vector. Here you can read and understand how they are wrong and why linked-list is (mostly) to be avoided.
2 Dec 2017
Alvaro Carballo Garcia
Library extending the .NET numeric support
24 Nov 2014
Darko Jurić
Pyramidal Kanade Lucas optical flow tracker
7 Jun 2016
Andreas Michael Kreuzer
This article is about collision detection for convex polytopes using the simplex method.
21 Feb 2018
Charles Oder
To optimize, or not to optimize, that is the question...
6 Jan 2011
John Paul Walker
Some things we can do to make QuickSort more efficient
30 Dec 2015
D Sarthi Maheshwari
A look at possible parallel-producer-consumer patterns. (Final Part)
26 Sep 2010
Andreas Gieriet
.NET 4 finally allows to define polymorphic extension visitors
28 Aug 2015
InvisibleMedia
Defining innovation beyond the limits of Chomsky
25 Sep 2012
gbenussi
This article show how we optimize a Primality Test for know if a number is prime or not, and also presents an algorithms (Sieve of Eratosthenes) for calculating the prime numbers for a numbers less than or equal a given numbers efficiently.
20 Jun 2013
DigitalInBlue
This article discusses the implementation and use of a fast alternative to dynamic_cast, Priori.
11 Feb 2014
Uzi Granot
This project will give you the tools needed to compress and decompress files using the Deflate method of compression, and to read and write standard Zip files.
19 May 2014
databaseobjectmodel
3 Apr 2019
Mahsa Hassankashi
This article provides python code for random forest, one of the popular machine learning algorithms in an easy and simple way.
29 Nov 2016
Miguel Diaz Kusztrich
Adding tools to help estimate the correct delay and embedding dimension
23 Apr 2013
Shahin Khorshidnia
For beginners, Recursive introduction, Examples, Benefits and Defects. A part of Data structure.
28 Aug 2016
Halit Yurttaş
Repository Pattern sample over Multiple Datasource or Resource on Domain Object Model
17 Nov 2015
Chris_Riley
My deep dive into Rogue Wave’s CodeDynamics product was to address a challenge I had been facing since my college days: the debugging of a genetic algorithms (GA) application.
3 Apr 2019
Mahsa Hassankashi
Best approach for having more secure channel to transfer user information throughout the web
20 Oct 2019
Lance A. Endres
The algorithm presented by Radhakrishnan, et al., originally used to segment well logs for the oil industry, has been ported to C and C#.
12 Mar 2012
Mahmoud Hesham El-Magdoub
Simo Sort a New Sorting algorithm C++ Binary Value Numbers Sort Elements with Low Variance
14 Dec 2018
Philipp_Engelmann
Simple Linear Regression from scratch in Rust
19 Nov 2017
Ivan Yakimov
In this article, I'd like to show a simple algorithm for approximate pattern matching.
30 Dec 2018
Arthur V. Ratz
In this article, we will demonstrate how to compute full SVD of a given matrix A and discuss about the code in C++11 implementing the full SVD computation by using simple iteration and Jordan-Gaussian methods.
24 Jan 2012
Karl Sanford
Removing noise from the Kinect Depth Frames in real-time using pixel filters and weighted moving average techniques.
24 Jul 2011
hosein fereidooni
This article solves a maze problem with Informed Search
25 Jun 2011
Ravimal Bandara
A C# code for solving eight queens puzzle using genetic algorithm
3 Jan 2011
Ziad Elmalki
Finds the least common ancestor in a tree
12 Aug 2012
Sergey Vystoropskiy
Steiner problem solution.
22 Jul 2017
InvisibleMedia
An algorithm for sorting integers with a complexity less than O(n log (n))
18 May 2010
Muhammad Jibran Khan
This article has the code of QuickSort, MergeSort, BubbleSort, HeapSort
7 Nov 2012
Roger Doss
The algorithm described herein is designed to implement sorting of variable length strings in O(n) time.
31 Jul 2012
Kenneth Haugland
How to calculate a reverbration time in a room
13 Oct 2013
ASP.NET Community
StrategyThe Strategy design pattern allows you to use multiple algorithms interchangeably.  One reason you might use a Strategy Pattern is to
29 Sep 2013
Amit Bezalel
Transfering subtitle synchronization from one subtitle file to another
25 Nov 2018
Bartlomiej Filipek
What performance can we get from C++17 parallel algorithms?
27 Nov 2017
Miguel Diaz Kusztrich
An infinite set of biological shape fractals in the complex plain
22 Mar 2015
Artem Los
The aim of this post is to give a short overview of the subject, summarizing basic concepts.
27 Apr 2018
Arthur V. Ratz
In this article, we will formulate and discuss CLOPE data mining clustering algorithm that allows to drastically increase the quality and efficiency of categorized data clustering and can be easily used for recommendation-specific purposes
14 Jul 2016
dcmuggins
Bubble Sort is great...and terrible at the same time.
30 Nov 2016
Dino Konstantopoulos
Running Theano with an Nvidia 1070 GPU on Windows 10, with CUDA 8 and Visual Studio 2015
18 Jun 2012
Petr Ivankov
Applications of abstract math theories to practice
30 Apr 2020
Mosi_62
Logistic regression, back propagation and support vector machine in comparison on the Iris data set
13 Mar 2019
Oana Mancu
Any deterministic game can be broken down to its core functionalities. By understanding them, one can implement fundamental algorithms such as Minimax (with alpha beta pruning), thus paving the way towards a better AI opponent.
26 May 2014
Atalia Beukes
Solution of the Towers of Hanoi problem.
30 Sep 2011
Rob Lyndon
Using parallel implementations of SqlBulkCopy to achieve fast data transfer from a single XML source into multiple tables.
11 May 2011
gaps96
Draws sets of tree nodes in a vertical way. Allows to Export an Image to SVG.
1 Jun 2018
Alvaro Carballo Garcia
Comprehensive unit parsing library
23 Dec 2015
Shvetsov Evgeniy
Helper functions to deal with the individual bits & digits, hashing and other
27 May 2014
Emre Ataseven
This article is written to demonstrate how could we use genetic algorithm to solve a NP-Complete problem, I used fixture generation problem as sample.
30 Oct 2019
Wayne Applebaum
Discussion of the issues of identifying adverse drug effects and how machine learn and big data techniques can solve for them.
18 May 2010
Sarang Date
Code illustrations of various string reversal algorithms in C#
21 Sep 2017
Andy Bantly
Visualizing the Mandelbrot set using multiple threads of execution.
9 May 2016
Alexandr Surkov
Principles of video analysis
21 Jun 2016
Dave “DWC” Curry
This tutorial will show you a good starting point for a WPF style framework which aims to make creating and maintaining Excel-worksheet-forms easier.
7 Dec 2010
CodingBruce
Build better schema for rapid data model prototyping.
31 Jul 2015
Faustino Frechilla
A circular array based lock-free queue with no memory allocation on the heap and no ABA problem
28 Nov 2014
Omar Gameel Salem
Reliable transmission of bulk data over lossy connection without worrying about packets loss
4 Sep 2015
Mr.PoorEnglish
Usage of Linq and anonymous Methods help keep code briefly