We usually want to know the shortest/fastest route between two points. This is a well-known problem in graph theory. There are several algorithms that solve this problem: A*, Dijkstra, etc.
I have implemented in C++ those algorithms and a graph of the roads in California.
Continue reading “Pathfinding Algorithms”
Recurrent algorithms C++ and Python
I have been working on recurrent algorithms. They’re a bunch of examples in which you can implement these algorithms. However, we usually see that they are efficient.
Connect 4 is a simple game that can be easily programmed and solved to win every time. I have made in Python an AI that solves and wins. It is not programmed in C++ because I wanted a GUI.
Continue reading “Connect 4 AI Solver”
Lane line recognition algorithms
The Hough Transform has been broadly used in many fields, including autonomous cars. It is used to detect straight and curved lines with high accuracy.
This is the result of the Lane Line program I have designed to detect edges on the road.
The algorithm used, it is used to detect edges on images. Then, we discard using analytics and probability the ones which overlap each other and the less probable.
It is very efficient and can be used in parallel computing for rather good optimizations. The results are quite astonishing.
Continue reading “Lane Line Recognition”
Navier-Stokes + Incompressible + Finite difference method
Discretization methods for approximating the Partial Differential Equations (PDEs):
- Finite Difference (FD)
- Finite Elements (FE)
- Finite Volume (FV)
Finite Difference (FD)
Continue reading “Computational Fluid Dynamics (CFD)”
Modular Arithmetic Library in C++
This library provides the basics of modular arithmetic operations:
- Great Common Divisor (GCD)
- Least Common Multiple (LCM)
- Bezout solver
- Decomposition number algorithm
- Euler’s totient function
- Primality Test
- Find next Prime
- Inverse function
- Solver for 1 equation
- Solver for multiple equations
Modular Arithmetic Source Code
Modular Arithmetic Article
Continue reading “Modular Arithmetic Library”