Introduction to Algorithms

Introduction to Algorithms

Algorithms are like the instructions of a magical chef in the IT kitchen, orchestrating step by step the preparation of a dish of logic and solutions. In simple terms, an algorithm is a sequence of well-defined instructions designed to solve a problem or perform a specific task. Similar to culinary recipes, algorithms guide the process, dictating the flow of operations necessary to achieve a desired outcome.

Machine Learning with Python - C4.5

The C4.5 Algorithm in Machine Learning with Python

The C4.5 algorithm is a widely used machine learning algorithm for building decision trees. Decision trees are a form of predictive model that can be used for both classification and regression problems. C4.5 is an improved version of the ID3 (Iterative Dichotomiser 3) algorithm developed by Ross Quinlan and was introduced in the 1990s. Here’s how the C4.5 algorithm works and how to use it in Python.

Machine Learning - The CART algorithm

The CART algorithm in Machine Learning with Python

The CART (Classification and Regression Trees) algorithm is a widely used algorithm for building decision trees in machine learning. Decision trees are a form of predictive model that can be used for both classification and regression problems. Here’s how the CART algorithm works and how to use it in Python.

Pattern Recognition

Pattern Recognition is a field of artificial intelligence and computer science that deals with the automatic identification of recurring patterns or structures in data. The main goal of pattern recognition is to extract meaningful information from data by identifying patterns or trends that can be used for classification, prediction, analysis or decision purposes.

Hamilton's quaternions and 3D rotation with Python

Hamilton’s quaternions and 3D rotation with Python

With the Euler angles the foundations for the calculation of the rotation of bodies in three-dimensional spaces were founded. However, it was later discovered that Hamilton’s quaternions are a more efficient tool for studying the rotation mode of bodies. In this article we will see what quaternions are, how they are calculated and how they apply to the rotation of a body, also helping us in this case with some Python code.

3D Rotations and Euler Angles in Python

3D Rotations and Euler angles in Python

The virtual realities we often play with on our PCs are based on 3D engines, i.e. systems capable of performing calculations that simulate the movement and rotation of objects in a three-dimensional system. Also in robotics, in particular with robotic arms, systems are used that are able to calculate a certain movement, establishing how much the individual motors that compose them must rotate. All these systems are based on calculations and mathematical concepts capable of calculating every single movement in three-dimensional space, most of which were developed by the famous mathematician Euler (1707-1784). In this article we will see what Euler angles are, how they are calculated and how the rotational motion of a rigid body in three-dimensional Euclidean space can be calculated. All with step-by-step practical tests developed in Python.

What is if __name__ is __main__ and why use it

What is if __name__ == “__main__” and why use it

For those who program in Python, they will be able to see the following construct within many codes, especially in the final part if __name__ == “__main__”: followed by a series of instructions enclosed in the indentation. What is it for? Why is it so common?