The Great Book Of Algorithms

Code Samples

Machine Learning Algorithms: From Intuition to Code by Dr. Oana Rinaldi, front cover, back cover and interior pages
Machine Learning Algorithms: From Intuition to Code

A Visual Guide to the Core Algorithms of Machine Learning, with Diagrams, Math and Python Implementations from Scratch. Understand machine learning the way programmers learn best: see it, derive it, then build it. The book takes you from linear regression to transformers and reinforcement learning, one algorithm at a time. Each algorithm follows the same clear path: a diagram that shows what the algorithm is trying to do, the math derived in small steps with every symbol explained, pseudocode you can translate into any language, a clean, tested Python and NumPy implementation written from scratch, a worked example with real output, and the complexity, common pitfalls and library tool to use in practice.

Inside you will find linear and logistic regression, gradient descent and regularization; metrics, cross-validation and the bias-variance trade-off; k-nearest neighbors, naive Bayes and decision trees; random forests, AdaBoost and gradient boosting (with notes on XGBoost, LightGBM and CatBoost); support vector machines and the kernel trick; k-means, hierarchical clustering, DBSCAN and Gaussian mixtures; PCA, SVD, kernel PCA and t-SNE; neural networks and backpropagation, including a tiny autograd engine; optimizers, dropout, batch normalization and training deep networks; convolutional networks, RNNs, LSTMs, attention and transformers; value iteration, Q-learning and bandits; anomaly detection, recommender systems and machine learning in practice.

With 130 diagrams and figures, 76 tested code listings, more than 120 exercises, an algorithm cheat sheet and a notation guide, this book is a companion to my books on C++ algorithms and dynamic programming. It is for developers, students and anyone who wants to understand what is really happening inside machine learning models.

The great book of algorithms: Dynamic Programming

The great book of algorithms is a great book for programmers to get familiar with the world of algorithms. The book discusses 35 programming algorithms, with solutions written in the JAVA programming language. The algorithms are solved using dynamic programming.

The Great Book of Algorithms

This is a great book on learning everything you need to know about programming algorithms. This volume focuses on the most used and known algorithms. It contains searching algorithms, sorting algorithms, encryption algorithms, Greedy algorithms and dynamic programming. Every algorithm has a comprehensive description, an accurate visual representation that explains the complete process of thought, and a simple C++ program that integrates the algorithm. You can try out every algorithm in C++ and see in debugger how it works.

Art of Coding blog
Art of Coding

Art of Coding is my programming blog, where I share practical tutorials and deep dives into software development. You will find articles on algorithms and data structures, sorting and search techniques, dynamic programming, API integration, databases, shell scripting, and web development — with working code samples in Python, Java, JavaScript, C++, SQL, and more. Many of the algorithm walkthroughs from my books are expanded here with step-by-step explanations and real-world examples. Visit the blog to explore the latest posts and follow along as new tutorials are published.