Click here to Skip to main content
15,867,756 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 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
by Nicolas DESCARTES
How to implement logistic regression in ML.NET?
by Nicolas DESCARTES
What clustering algorithm should be selected for the clustering task?

All Articles

Sort by Title

Algorithms 

13 Sep 2021 by Mircea Neacsu
Various algorithms for 2D interpolation
14 Jul 2013 by Sudhir Tiwari
8/15 puzzle using A* (A Star) algorithm.
2 Jan 2019 by 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.
11 Dec 2023 by JorgeLuisOrejel
This article describes the implementation of Dijkstra's Smoothsort as a generic sorting algorithm in C#.
6 Sep 2016 by George Swan
An artificial 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 by 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 by Member 9294701
A simple, portable yet efficient Quicksort implementation in C
2 Feb 2011 by George Tryfonas
Assembler and Simulator for Don Knuth's MIX Computer from The Art of Computer Programming.
28 Jul 2014 by Mostafa Eissa
This article explains the concept of graph coloring and how to use graph coloring to solve Sudoku Puzzles.
9 Jul 2022 by captnmac
A Tiger hash Implementation for C#, invocable through dotnet's HashAlgorithm class
24 Feb 2019 by 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)
19 Aug 2020 by MehreenTahir
In this article we create a web app that trains the classifier on the go and recognizes grumpy facial expressions.
24 Apr 2016 by 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 by 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 by 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).
2 Oct 2023 by optiklab1
Playing with graph traversal algorithms in searching for the way of profitable currencies exchange
18 Aug 2014 by José Cintra
Some suggestions of algorithms for solving the Pascal Triangle, addressing iterative, recursive and functional paradigms
21 Jan 2013 by Simeon Sheye
How to manage state and simulate behavior against the system under test.
4 Sep 2013 by Grasshopper.iics
You would never want to use another photo editor in your AIO again
3 Nov 2010 by Dave Midgley
.NET delegates and Generics allow for an elegant implementation of the Command pattern.
25 Nov 2018 by Coding Notes
An introduction to the SVM and the simplified SMO algorithm
16 Sep 2022 by Arthur V. Ratz
Compute the Levenshtein distance of literal strings effectively by using the Wagner-Fischer (two matrix rows-based) algorithm.
18 Feb 2014 by 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 by 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 by Dima Statz
One of the best methods for solving approximate string matching problem
3 Jan 2019 by DataBytzAI
Part one of a series to demystify and democratize the magic (not) of AI
20 Jul 2019 by Arthur V. Ratz
How to perform ARL by using the scalable optimized Apriori algorithm
20 Jul 2019 by Arthur V. Ratz
How to perform ARL by using FPGrowth algorithm
23 Dec 2014 by César de Souza
Demonstration of automatic image stitching by interest point matching using the Accord and AForge.NET Frameworks
4 Mar 2014 by Al-Samman Mahmoud
Basic tool for the translation of DNA
2 Dec 2016 by Tung.Nguyen.2k
How to implement B-Tree's searching, insertion and deletion in Java
28 Aug 2015 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.
2 May 2022 by KristianEkman
How to build an AI which plays Backgammon
14 Jun 2017 by Andy Allinger
Introduces data clustering and the k-means++ algorithm
2 Sep 2021 by Peter Occil
Algorithms to turn biased "coin flips" into biased "coin flips", and how to code them.
7 Aug 2014 by Rakesh Waghulde
This gives the optimal strategy to solve the famous Bridge Crossing Puzzle in generalized way.
6 Feb 2018 by raddevus
Entry in the Artificial Intelligence and Machine Learning Contest. Here's how I learned / guessed how to find spam.
14 Jun 2018 by paolo guccini
How to use the Microsoft Interop/Automation to implement parallel research of a Microsoft Office file password.
2 Dec 2023 by Nicolas DESCARTES
How to implement a content-based recommendation system in C# ?
28 Nov 2010 by Sergii Lavrinenko
Engine in C# which generates Linq Expressions runtime based on simple scripts
9 Aug 2016 by Alberto Montibelli
Application for solving Bin Packing and Cutting Stock problem
25 Dec 2016 by Arthur V. Ratz
In this article we'll demonstrate the implementation of k-means clustering algorithm to produce recommendations.
31 Aug 2015 by Mikhail Semenov
Efficient Quicksort methods for sorting arrays with lots of duplicate elements
31 Mar 2021 by Fedor Naumenko
Find type of distribution and parameters from set of distributed physical values
3 Jan 2022 by Arthur V. Ratz
Optimizing the performance of the large-sized matrices QR factorization and eigendecomposition, using Schwarz-Rutishauser algorithm
30 Sep 2023 by Ujwal Watgule
The Cheetah Optimizer is a nature-inspired metaheuristic algorithm designed to tackle complex optimization problems across multiple dimensions.
26 Apr 2016 by Arthur Minduca
How to choose the right data structure for a collection of elements
21 Jun 2013 by Lipman Roi
An algorithm which automatically generates circular mazes.
22 Apr 2013 by Karl Runmo
Arbitrary precision calculations
7 Jun 2016 by GProssliner
cobj is a preprocessor based generator for interface based polymorphism
10 Jul 2015 by darrellp
A framework for easily solving programming challenges from competitive coding sites
8 Jan 2024 by Nicolas DESCARTES
What clustering algorithm should be selected for the clustering task?
2 Jun 2010 by taheretaheri
Highlights the differences in how you create an XOR network in Neuroph, Encog and JOONE
25 Jan 2016 by 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 by Christophe Gauge
This code performs a fuzzy C-means clustering and segmentation of color images, and can be used for feature extraction.
6 Oct 2021 by Igor Gribanov
An efficient algorithm for assembling sparse matrices in Compressed Sparse Row (CSR) format.
19 Jan 2022 by trekhleb
JavaScript implementation of so-called Seam Carving algorithm for content-aware image resizing
17 Jun 2012 by W. Michael Perkins
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 by Andreas Gieriet
This is an alternative for "Converting Postfix Expressions to Infix"
24 Apr 2022 by Marcus Müller
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.
22 Nov 2012 by Jacob F. W.
A Simple But Surprisingly Effective Random Number Generator
5 Oct 2010 by #realJSOP
One way to create a completely random encryption key, and sharing it with a client application
10 Jun 2019 by 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.
19 Jun 2012 by Dominik Reichl
CSHA1 - A C++ class implementation of the SHA-1 hash algorithm
29 Oct 2013 by Paulo Augusto Kunzel
A tutorial on basic data structures and JavaScript.
15 Aug 2023 by Ujwal Watgule
Credit card fraud detection is an important application of machine learning techniques.
14 May 2012 by Andreas Gieriet
Make floating point equality and relation operators reliable based on a comparison epsilon value.
24 Oct 2017 by 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 by anshulskywalker
Understanding of Example Based Machine Translation (EBMT) system and how to create your own using exisiting tools
13 Nov 2014 by Mark H Bishop
This article presents a Java example application that performs discrete wavelet transforms.
24 Dec 2020 by Tomaž Štih
A tree drawing algorithm, implemented as C#/WinForms/NET Core control, that produces surprisingly good results with minimal effort
16 Feb 2023 by Ayat Rakhishev
A walkthrough of dynamic programming
17 Feb 2015 by 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 by DrABELL
This is an alternative for "Fastest method to trim all whitespace from Strings in .NET"
20 Nov 2014 by 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 by Michael_Jacobsen
Encryption algorithm based on key self-mutation. Complete source code and samples.
16 Dec 2010 by Avi Farah
Overcoming limitations of: Enhanced String Handling
9 Sep 2018 by Philipp Sch
Finding a fundamental Cycle Set forming a complete basis to enumerate all cycles of a given undirected graph
18 Apr 2023 by InvisibleMedia
This article describes how to divide two polynomials and shows the source code to calculate this division. There is also code to add, subtract and multiply two polynomials.
25 May 2016 by Shvetsov Evgeniy
Numbers (positive AND negative integral/fractional) to english/russian words
1 Mar 2018 by Omar Saad (IREQ), Eric Ouellet
Many improvements over a pretty new and unknown very fast 2D Convex Hull algorithm and much more.
20 Dec 2023 by Henrik Vestermark
Durand-Kerner method for Polynomial roots. A fast and reliable simultaneous method
29 Nov 2023 by Henrik Vestermark
Laguerre's method for a stable and efficient polynomial root finder.
11 Oct 2023 by Henrik Vestermark
Practical implementation of a fast, robust and reliable polynomial root finder using Newton's method
8 Jan 2024 by Henrik Vestermark
Ostrowski multi-point method for Polynomial roots
11 Nov 2023 by Henrik Vestermark
Practical implementation of a fast, robust and stable polynomial root finder using Halley's method
17 Oct 2023 by Henrik Vestermark
Fast and Stable Polynomial root finder for Polynomial with real coefficients
21 Oct 2020 by Sanmayce
A fulltext CLI tool reporting number of exact matches, FAST!
21 Apr 2018 by 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 by Nour Helal
Find the first number k divisible by given number n (extended approach)
7 Jun 2012 by AndyUk06
A recursive algorithm to find all paths between communicating network nodes.
27 Jan 2017 by wlf84k
This short article provides a method of calculating nth binary palindrome using some math in C# code.
27 Jul 2011 by Sei Flavius
Solution to Finding Sophie puzzle
4 Oct 2017 by Bhairav Thakkar
A robust framework for complete implementation of Finite Element Analysis in VB.NET
15 Sep 2021 by FranciskaR
Benchmark for 5 flood fill algorithms