Click here to Skip to main content
15,881,588 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 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
by Nicolas DESCARTES
How to implement logistic regression in ML.NET?

All Articles

Sort by Updated

Algorithms 

2 Apr 2024 by Igor Gribanov
C++ iterators and algorithms work well for containers, but can we sort the Structure of Arrays?
16 Mar 2024 by Henrik Vestermark
The steps needed to build an Interval Arithmetic class in C++
20 Jan 2024 by Ștefan-Mihai MOGA
How to solve real-life problems using B-trees
12 Jan 2024 by Nicolas DESCARTES
How to implement logistic regression in ML.NET?
8 Jan 2024 by Nicolas DESCARTES
What clustering algorithm should be selected for the clustering task?
8 Jan 2024 by Henrik Vestermark
Ostrowski multi-point method for Polynomial roots
20 Dec 2023 by Henrik Vestermark
Durand-Kerner method for Polynomial roots. A fast and reliable simultaneous method
18 Dec 2023 by Intel
This article will take a closer look at the advantages and disadvantages of the Fortran DO CONCURRENT statement and the OpenMP target constructs with respect to accelerator offload.
15 Dec 2023 by Patrice T
Small review of Trial Division algorithm
11 Dec 2023 by Nicolas DESCARTES
What is naive Bayes and how to implement it?
11 Dec 2023 by JorgeLuisOrejel
This article describes the implementation of Dijkstra's Smoothsort as a generic sorting algorithm in C#.
2 Dec 2023 by Nicolas DESCARTES
How to implement a content-based recommendation system in C# ?
29 Nov 2023 by Henrik Vestermark
Laguerre's method for a stable and efficient polynomial root finder.
25 Nov 2023 by Nicolas DESCARTES
What is time complexity in computer science and how do you determine it for a given algorithm?
11 Nov 2023 by Henrik Vestermark
Practical implementation of a fast, robust and stable polynomial root finder using Halley's method
21 Oct 2023 by Code Artist
Implementation of DynamicX-Largest-Triangle-Three-Bucket for chart data plotting
17 Oct 2023 by Henrik Vestermark
Fast and Stable Polynomial root finder for Polynomial with real coefficients
11 Oct 2023 by Henrik Vestermark
Practical implementation of a fast, robust and reliable polynomial root finder using Newton's method
2 Oct 2023 by optiklab1
Playing with graph traversal algorithms in searching for the way of profitable currencies exchange
30 Sep 2023 by Ujwal Watgule
The Cheetah Optimizer is a nature-inspired metaheuristic algorithm designed to tackle complex optimization problems across multiple dimensions.
29 Sep 2023 by Patrice T
Another approach to Optimize Trial Division Algorithm
21 Sep 2023 by Member 4201813
How to calculate transition matrix for linear pseudo-random number generator manipulating its internal state
15 Sep 2023 by optiklab1
I demonstrate with an actual implementation that well-known algorithms BFS, DFS, Dijkstra, and A-Star are essentially variations of the same algorithm.
15 Aug 2023 by Ujwal Watgule
Credit card fraud detection is an important application of machine learning techniques.
2 Aug 2023 by Patrice T
How to use bitwise operations on Bitfields as primitive SIMD
21 Jul 2023 by Patrice T
Tree Graphs used as support for Top-Down Analyze method
30 Jun 2023 by altomaltes
This algorithm uses very simple integer math (add and multiply) to render arcs, lines, etc. to CNC machines or a computer surface.
4 Jun 2023 by GeorgeDS
An anecdotal report describing issues encountered in coding a minimal perceptual hash capability, in plain old C, in to 35 year old rolling development, with the goal of running on a noob Win 10/11 installation.
21 May 2023 by Shun Huang
Basics of ML and Perception learning algorithm
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.
17 Apr 2023 by Mark H Bishop
Computational classes and a GUI interface to illustrate usage
16 Feb 2023 by Ayat Rakhishev
A walkthrough of dynamic programming
9 Feb 2023 by Kenneth Haugland
How to speed up convergence of mathematical series
11 Jan 2023 by Andrea Simonassi
A simple yet powerful multiplication algorithm
10 Jan 2023 by FormerBIOSGuy
This article describes a set of batch, AWK, and PostScript files that together allow you to create personalized, 12-page PDF calendars for some year.
29 Dec 2022 by Peter Occil
Has many ways applications can sample using an underlying (pseudo-)random number generator and includes pseudocode for many of them.
11 Oct 2022 by Eric Ouellet, Sani Huttunen
Fast implementations of permutation algorithms
18 Sep 2022 by Mikhail Semenov
This article proposes a mapping algorithm, called Segmented Map, which is almost as fast as Flat Map is random access and enumeration of elements and close to std::map in insertion of elements.
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.
20 Aug 2022 by Patrice T
Using a large list of primes with Trial Division algorithm and how to handle the list
6 Aug 2022 by ADMGNS
A new method for 2D polyline simplification and also smoothing that alternative to Douglas-Peucker and curvature-based simplification algorithms
9 Jul 2022 by captnmac
A Tiger hash Implementation for C#, invocable through dotnet's HashAlgorithm class
20 Jun 2022 by Igor Ladnik
Automatic generation of optimal control policies for the basic quadcopter flight modes
2 May 2022 by KristianEkman
How to build an AI which plays Backgammon
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.
16 Apr 2022 by Patrice T
RLE (Run Length Encoding): The Human Friendly Compression
16 Apr 2022 by tugrulGtx
A walkthrough for a grid implementation of "particle in cell" problem to improve performance of axis-aligned bounding-box (AABB) collision checking in various scenarios
13 Apr 2022 by Steve Hageman
A Python Library to help make properly scaled Fourier Transforms including utility functions
16 Mar 2022 by Peter Occil
Python code for partially-sampled random numbers for accurate arbitrary-precision sampling
14 Mar 2022 by Andy Bantly
Visualizing the Mandelbrot set using multiple threads of execution
19 Jan 2022 by trekhleb
JavaScript implementation of so-called Seam Carving algorithm for content-aware image resizing
3 Jan 2022 by Arthur V. Ratz
Optimizing the performance of the large-sized matrices QR factorization and eigendecomposition, using Schwarz-Rutishauser algorithm
6 Oct 2021 by Igor Gribanov
An efficient algorithm for assembling sparse matrices in Compressed Sparse Row (CSR) format.
15 Sep 2021 by FranciskaR
Benchmark for 5 flood fill algorithms
13 Sep 2021 by Mircea Neacsu
Various algorithms for 2D interpolation
9 Sep 2021 by Mladen Janković
Improved algorithm for reconstructing game world map from captured game play
2 Sep 2021 by Peter Occil
Algorithms to turn biased "coin flips" into biased "coin flips", and how to code them.
28 Jul 2021 by Sergey L. Gladkiy
In this article, we focus on developing and testing a face identification algorithm along with the face detection module.
20 Jul 2021 by Sergey L. Gladkiy
In this article I’ll explain how to perform the alignment based on the face landmarks the detector has found.
14 Jun 2021 by gggustafson
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.
1 May 2021 by Mircea Neacsu
A data structure for finding best rational approximations
30 Apr 2021 by ADMGNS
An alternative method to Catmull-Rom, Chaikin or Bezier curve smoothing methods
26 Apr 2021 by gggustafson
How well does the Interpolation of Colors match the Colors produced by Microsoft's Linear Gradient Brush?
31 Mar 2021 by Fedor Naumenko
Find type of distribution and parameters from set of distributed physical values
28 Mar 2021 by gggustafson
Revises an earlier implementation of the Gradient Color Picker
16 Jan 2021 by Patrice T
How to optimize small factors checking
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
21 Oct 2020 by Sanmayce
A fulltext CLI tool reporting number of exact matches, FAST!
6 Oct 2020 by Christ Kennedy
A graphically bouncy and colorful version of the popular numbers tile-sliding game
4 Sep 2020 by Mosi_62
Logistic regression, back propagation and support vector machine in comparison on the Iris data set
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.
7 May 2020 by Intel, Arthur V. Ratz
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.
30 Oct 2019 by Wayne Applebaum
Discussion of the issues of identifying adverse drug effects and how machine learn and big data techniques can solve for them.
20 Oct 2019 by 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#.
20 Jul 2019 by Arthur V. Ratz
How to perform ARL by using FPGrowth algorithm
20 Jul 2019 by Arthur V. Ratz
How to perform ARL by using the scalable optimized Apriori algorithm
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.
3 Apr 2019 by Mahsa Hassankashi
Best approach for having more secure channel to transfer user information throughout the web
3 Apr 2019 by Mahsa Hassankashi
This article provides python code for random forest, one of the popular machine learning algorithms in an easy and simple way.
13 Mar 2019 by 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.
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)
3 Jan 2019 by DataBytzAI
Part one of a series to demystify and democratize the magic (not) of AI
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.
30 Dec 2018 by Arthur V. Ratz
SVD in C++11 explained with an example
14 Dec 2018 by Philipp_Engelmann
Simple Linear Regression from scratch in Rust
26 Nov 2018 by Jonas Selling
Clarifying the use of multi-pass filter cutoff correction
25 Nov 2018 by Bartlomiej Filipek
What performance can we get from C++17 parallel algorithms?
25 Nov 2018 by Coding Notes
An introduction to the SVM and the simplified SMO algorithm
20 Nov 2018 by Apriorit Inc, Artem K.
Find out approaches which you can use to improve runtime algorithms for zero-day threat detection
7 Oct 2018 by Mojtaba Hosseini
A graphical binary tree. Features: add, remove, or search for a node. Recursive algorithm has been used
9 Sep 2018 by Philipp Sch
Finding a fundamental Cycle Set forming a complete basis to enumerate all cycles of a given undirected graph
15 Jul 2018 by Nour Helal
Find the first number k divisible by given number n (extended approach)
14 Jun 2018 by paolo guccini
How to use the Microsoft Interop/Automation to implement parallel research of a Microsoft Office file password.
1 Jun 2018 by User 6679439
27 Apr 2018 by 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
26 Apr 2018 by Mahsa Hassankashi
Best practice for opinion and Text Mining based on Naïve Bayesian Classifier.