14,970,219 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

25 Dec 2016
In this article we'll demonstrate the implementation of k-means clustering algorithm to produce recommendations.
28 Aug 2015
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.
7 Apr 2014
A small simulator for a 6 axis articulated robot
29 Aug 2017
This article demonstrates the development of code in C# implementing famous k-means clustering algorithm to perform graphical raster image segmentation.
26 Apr 2018
Best practice for opinion and Text Mining based on Naïve Bayesian Classifier.
7 Sep 2010
This article presents an algorithm and data structures to implement auto-tiling as seen in RPG Maker, the Starcraft level editor, etc.
17 Feb 2015
Educational software package for Microsoft Windows® 7/8 contains “5-in-1” School Math Calculators and Equation Solvers intended for students and educators
6 Sep 2016
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
1 Jun 2018
Comprehensive unit parsing library
27 Nov 2017
An infinite set of biological shape fractals in the complex plain
13 Oct 2013
A simple, portable yet efficient Quicksort implementation in C
9 Sep 2018
Finding a fundamental Cycle Set forming a complete basis to enumerate all cycles of a given undirected graph
30 Dec 2018
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.
27 Jun 2021
How to build an AI which plays Backgammon
27 Oct 2015
A faster method for performing interval arithmetic
13 Mar 2019
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.
7 Jun 2016
cobj is a preprocessor based generator for interface based polymorphism
4 Sep 2020
Logistic regression, back propagation and support vector machine in comparison on the Iris data set
26 Oct 2014
A 2D/3D force directed graph algorithm in C#
20 Jun 2021
Pandemic SEIR and SEIRV modelling software and infrastructure for the Corona SARS-COV-2 COVID-19 disease with data from Johns-Hopkins-University CSSE, Robert Koch-Institute and vaccination data from Our World In Data.
29 Sep 2013
Transfering subtitle synchronization from one subtitle file to another
18 Aug 2014
Some suggestions of algorithms for solving the Pascal Triangle, addressing iterative, recursive and functional paradigms
26 Nov 2018
Clarifying the use of multi-pass filter cutoff correction
25 Nov 2018
What performance can we get from C++17 parallel algorithms?
30 Apr 2021
An alternative method to Catmull-Rom, Chaikin or Bezier curve smoothing methods
31 Jul 2012
How to calculate a reverbration time in a room
4 Mar 2016
27 Apr 2018
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
11 Apr 2019
Word-making game!
13 Mar 2021
Algorithms to turn biased "coin flips" into biased "coin flips", and how to code them.
19 May 2014
8 Feb 2015
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.
26 Apr 2021
How well does the Interpolation of Colors match the Colors produced by Microsoft's Linear Gradient Brush?
14 Jun 2021
This article revises an earlier revision of the Gradient Color Picker (V2). The incentive for the revision was a reader request for a larger number of initial color choices.
10 Aug 2010
Understanding of Example Based Machine Translation (EBMT) system and how to create your own using exisiting tools
20 Jun 2012
This is an alternative for "Converting Postfix Expressions to Infix"
2 Dec 2017
Library extending the .NET numeric support
20 Jul 2019
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.
19 Aug 2020
In this article we create a web app that trains the classifier on the go and recognizes grumpy facial expressions.
11 Apr 2021
Python code for partially-sampled random numbers for accurate arbitrary-precision sampling
4 Sep 2013
You would never want to use another photo editor in your AIO again
14 Aug 2015
15 Sep 2015
Smart pointers implementation in C
14 Dec 2016
Graph intersection using map reduce and Akka
29 Nov 2016
Adding tools to help estimate the correct delay and embedding dimension
6 Feb 2019
Computational classes and a GUI interface to illustrate usage
26 Apr 2016
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.
14 Dec 2018
Simple Linear Regression from scratch in Rust
31 Mar 2021
Find type of distribution and parameters from set of distributed physical values
3 Aug 2016
F#-implementation of algorithm for incremental construction of minimal deterministic finite automata through adding and removing strings.
27 Dec 2017
28 Jun 2021
A new method for 2D polyline simplification and also smoothing that alternative to Douglas-Peucker and curvature-based simplification algorithms
7 Nov 2012
The algorithm described herein is designed to implement sorting of variable length strings in O(n) time.
24 Apr 2016
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.
21 Jun 2016
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.
15 Jul 2018
Find the first number k divisible by given number n (extended approach)
16 Jan 2021
How to optimize small factors checking
17 Aug 2014
Multi Variate Gaussian Distribution - Part 1
17 Nov 2015
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.
20 Nov 2018
Find out approaches which you can use to improve runtime algorithms for zero-day threat detection
18 Aug 2020
An often neglected — but ultimately fundamental — driver of financial markets is liquidity. Combining data science skills and techniques, the Refinitiv Labs Liquidity Discovery project provides in-depth market liquidity insights to enable more informed trading decisions.
3 Nov 2016
Get Results with the Intel® Data Analytics Acceleration Library and the Latest Intel® Xeon Phi™ Processor
30 Oct 2019
Discussion of the issues of identifying adverse drug effects and how machine learn and big data techniques can solve for them.
7 May 2020
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.
14 Mar 2017
3 Apr 2019
Best approach for having more secure channel to transfer user information throughout the web
18 Feb 2014
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.
14 Aug 2015
This is an alternative for "Fastest method to trim all whitespace from Strings in .NET"
1 Mar 2018
Many improvements over a pretty new and unknown very fast 2D Convex Hull algorithm and much more.
23 Apr 2013
How to teach a program to recognize something within a video stream.
29 Jan 2017
Demonstrate or refute a conclusion automatically from a series of premises
23 Dec 2014
Demonstration of automatic image stitching by interest point matching using the Accord and AForge.NET Frameworks
5 Jul 2016
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!
7 Jun 2016
14 May 2012
Make floating point equality and relation operators reliable based on a comparison epsilon value.
10 Dec 2015
This article describes the C# implementation for a high-performance role-based access control list.
28 Nov 2014
Reliable transmission of bulk data over lossy connection without worrying about packets loss
10 Jul 2014
31 Jul 2015
A circular array based lock-free queue with no memory allocation on the heap and no ABA problem
10 Jan 2017
The article presents idea and implementation of fundamental algorithms in image processing.
3 Apr 2014
Using call stacks, rather than Regular Expression, to deconstruct mathematical formulae and calculate values.
3 Apr 2019
This article provides python code for random forest, one of the popular machine learning algorithms in an easy and simple way.
27 May 2014
20 Jun 2013
This article discusses the implementation and use of a fast alternative to dynamic_cast, Priori.
9 Aug 2016
Application for solving Bin Packing and Cutting Stock problem
14 Jun 2017
Introduces data clustering and the k-means++ algorithm
25 Aug 2018
An Introduction to Logistic Regression
1 May 2021
A data structure for finding best rational approximations
20 Oct 2019
The algorithm presented by Radhakrishnan, et al., originally used to segment well logs for the oil industry, has been ported to C and C#.
13 Nov 2014
This article presents a Java example application that performs discrete wavelet transforms.
3 Jul 2012
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.
2 Jan 2019
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.
20 Jul 2019
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.
1 Jul 2015
This article explains 10 rules (steps) for replacing the recursive functions using stack and while-loop to avoid the stack-overflow.
30 Jan 2012
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.
21 Jun 2013
An algorithm which automatically generates circular mazes.
7 Oct 2018
A graphical binary tree. Features: add, remove, or search for a node. Recursive algorithm has been used
20 Nov 2011
A C# implementation of the BLAKE hash algorithm.
21 Sep 2017
Visualizing the Mandelbrot set using multiple threads of execution
21 Jan 2013
How to manage state and simulate behavior against the system under test.
4 Oct 2017
A robust framework for complete implementation of Finite Element Analysis in VB.Net
7 Dec 2010
Build better schema for rapid data model prototyping.
5 Oct 2010
One way to create a completely random encryption key, and sharing it with a client application
3 May 2016
A simple image binarization
9 Apr 2015
An algorithm to classify whether text is gibberish or not, and an implementation in C# and Python.
29 Oct 2013
A tutorial on basic data structures and JavaScript.
2 Feb 2011
Assembler and Simulator for Don Knuth's MIX Computer from The Art of Computer Programming.
24 Jan 2012
Removing noise from the Kinect Depth Frames in real-time using pixel filters and weighted moving average techniques.
2 Oct 2010
A simple framework to perform morphology operations on binary images.
2 Apr 2021
Using a large list of primes with Trial Division algorithm and how to handle the list
2 Dec 2014
Techniques to perform recognition of handwritten digits using Kernel Support Vector Machines
11 May 2011
Draws sets of tree nodes in a vertical way. Allows to Export an Image to SVG.
30 Jan 2021
Small review of Trial Division algorithm
22 Jan 2012
Implementation of Wikipedia’s “Naive Bayes classifier Algorithm”.
26 Apr 2016
How to choose the right data structure for a collection of elements
24 Feb 2012
An introduction to numerical solver algorithms with general purpose demonstration code.
11 Feb 2014
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.
20 Oct 2012
Applying oil painting effect on an image.
6 Nov 2014
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.
9 May 2016
Principles of video analysis
19 Jun 2012
CSHA1 - A C++ class implementation of the SHA-1 hash algorithm
28 Jul 2014
This article explains the concept of graph coloring and how to use graph coloring to solve Sudoku Puzzles.
20 Jul 2021U
Has many ways applications can sample using an underlying (pseudo-)random number generator and includes pseudocode for many of them.
24 Oct 2017
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.
9 Mar 2011
This code performs a fuzzy C-means clustering and segmentation of color images, and can be used for feature extraction.
12 Aug 2012
Steiner problem solution.
20 Jul 2015
Hands on tutorial of implementing batch gradient descent to solve a linear regression problem in Matlab
21 Aug 2012
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.
18 Jun 2012
Applications of abstract math theories to practice
22 Jan 2014
10 Jun 2019
24 Nov 2014
Pyramidal Kanade Lucas optical flow tracker
21 Apr 2018
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.
19 Oct 2010
Simple parsing of VS_VERSIONINFO version information strings displayed in an XP-style file-properties "Version" tab
25 Jun 2011
A C# code for solving eight queens puzzle using genetic algorithm
26 May 2014
Solution of the Towers of Hanoi problem.
31 Aug 2015
Efficient Quicksort methods for sorting arrays with lots of duplicate elements
27 Jul 2011
Solution to Finding Sophie puzzle
27 Dec 2010
Pupil extraction from eye image using C#.
23 Dec 2015
Helper functions to deal with the individual bits & digits, hashing and other
7 Jun 2012
A recursive algorithm to find all paths between communicating network nodes.
28 Nov 2010
Engine in C# which generates Linq Expressions runtime based on simple scripts
10 May 2012
This is an alternative for "From one number system to another"
17 Jun 2012
This article provides a general algorithm and a C# implementation for converting expressions written in postfix or reverse Polish notation to infix.
30 Dec 2015
A look at possible parallel-producer-consumer patterns. (Final Part)
6 Jul 2016
A coarse approach to operate huge integers.
20 Nov 2014
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.
13 Feb 2017
In this post, we learn about algorithms that help implement ML functions.
30 Nov 2016
Running Theano with an Nvidia 1070 GPU on Windows 10, with CUDA 8 and Visual Studio 2015
1 Feb 2012
ID3 Decision Tree Algorithm - Part 1 (Attribute Selection Basic Information)
30 Sep 2011
Using parallel implementations of SqlBulkCopy to achieve fast data transfer from a single XML source into multiple tables.
22 Apr 2013
Arbitrary precision calculations
31 Jan 2021
Another approach to Optimize Trial Division Algorithm
27 Apr 2016
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).
4 Sep 2015
Usage of Linq and anonymous Methods help keep code briefly
10 Jul 2016
Developing and implementation of algorithm for converting number from one to another positional number system
3 Nov 2010
.NET delegates and Generics allow for an elegant implementation of the Command pattern.
28 Aug 2016
Repository Pattern sample over Multiple Datasource or Resource on Domain Object Model
3 Jan 2011
Finds the least common ancestor in a tree
21 Jan 2017
Encryption algorithm based on key self-mutation. Complete source code and samples.
22 Mar 2015
The aim of this post is to give a short overview of the subject, summarizing basic concepts.
27 Jan 2017
This short article provides a method of calculating nth binary palindrome using some math in C# code.
18 May 2010
14 Nov 2010
One of the best methods for solving approximate string matching problem
20 Jul 2021N
In this article I’ll explain how to perform the alignment based on the face landmarks the detector has found.
21 Feb 2016
String class with the auto. managed memory pool and performance tweaks + support modules
14 Jul 2013
8/15 puzzle using A* (A Star) algorithm.
11 Aug 2011
Informed search algorithms to solve Sudoku Samurai
30 Dec 2010
Yet another implementation to enumerate files
5 Sep 2015
Specify grammatical contexts
21 Jan 2014
A brief overview on mathematical implementations with programming language
12 Mar 2012
Simo Sort a New Sorting algorithm C++ Binary Value Numbers Sort Elements with Low Variance
20 Sep 2015
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.
24 Jul 2011
14 Nov 2012
A clean version of merge sort algorithm, implemented with classes and objects instead of the usual, unreadable big function.
5 Nov 2012
Learn the Secrets of the Universe
1 Dec 2010
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.
6 Feb 2018
Entry in the Artificial Intelligence and Machine Learning Contest. Here's how I learned / guessed how to find spam.
15 Apr 2014
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.
26 Sep 2010
.NET 4 finally allows to define polymorphic extension visitors
14 Oct 2015
Project Scheduling Engine with recursive SQL common table expression
23 Apr 2013
For beginners, Recursive introduction, Examples, Benefits and Defects. A part of Data structure.
10 Jul 2015
A framework for easily solving programming challenges from competitive coding sites
7 May 2010
The following article describes C# implementation of various basic and advanced operations including some of the programming problems involving singly linked list
21 Oct 2020
A fulltext CLI tool reporting number of exact matches, FAST!
13 Oct 2013
StrategyThe Strategy design pattern allows you to use multiple algorithms interchangeably.  One reason you might use a Strategy Pattern is to
2 Dec 2016
How to implement B-Tree's searching, insertion and deletion in Java
2 Jun 2010
Highlights the differences in how you create an XOR network in Neuroph, Encog and JOONE
25 Sep 2012
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.
4 Mar 2014
Basic tool for the translation of DNA
3 Apr 2016
Leverage probabilistic data structures when dealing with large datasets
28 Aug 2015
Defining innovation beyond the limits of Chomsky
24 Dec 2020
A tree drawing algorithm, implemented as C#/WinForms/NET Core control, that produces surprisingly good results with minimal effort
7 Aug 2014
This gives the optimal strategy to solve the famous Bridge Crossing Puzzle in generalized way.
21 Feb 2018
To optimize, or not to optimize, that is the question...
22 Nov 2012
A Simple But Surprisingly Effective Random Number Generator
1 Jan 2021
Designing infinitely scalable JSON: JSON (C++)
15 Jun 2011
Sorting during data acquisition
25 Jan 2016
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.
16 Dec 2010
Overcoming limitations of: Enhanced String Handling
26 Nov 2018
Clarifying the use of multi-pass filter cutoff correction
25 Nov 2018
What performance can we get from C++17 parallel algorithms?
30 Apr 2021
An alternative method to Catmull-Rom, Chaikin or Bezier curve smoothing methods
31 Jul 2012
How to calculate a reverbration time in a room
4 Mar 2016