SkillAgentSearch skills...

Algorithms

Free hands-on course with the implementation (in Python) and description of several computational, mathematical and statistical algorithms.

Install / Use

/learn @ansegura7/Algorithms

README

Python Algorithms Course

version release language last-update last-update

Free hands-on course with the implementation (in Python) and description of several computational, mathematical and statistical algorithms.

Although it is not intended to have the formal rigor of a book, we tried to be as faithful as possible to the original algorithms and methods, only adding variants, when these were necessary for didactic purposes.

Quick Start

The best way to get the most out of this course is to carefully read each selected problem, try to think of a possible solution (language independent) and then look at the proposed Python code and try to reproduce it in your favorite IDE. If you already have knowledge of the Python language, then you can go directly to programming your solution and then compare it with the one proposed in the course.

If you want to play with these notebooks online without having to install any library or configure hardware, you can use the following service:

  • <a href="https://colab.research.google.com/github/ansegura7/Algorithms/blob/main/" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

What is an algorithm?

In mathematics and computer science, an algorithm is a finite sequence of well-defined, computer-implementable instructions, typically to solve a class of problems or to perform a computation.

Contents

<details open> <summary>1. <a href="https://ansegura7.github.io/Algorithms/basics/AlgorithmsBasics.html" >Algorithm's Basics</a></summary> <ul> <li>Greatest Common Divisor</li> <li>Fibonacci Serie</li> <li>Integer Factorization</li> <li>Tower of Hanoi</li> <li>Sorting Algorithm</li> <li>Convex Hull - Greedy</li> <li>Changing Distribution</li> </ul> </details> <details open> <summary>2. <a href="https://ansegura7.github.io/Algorithms/divide-and-conquer/DivideAndConquer.html" >Divide and Conquer</a></summary> <ul> <li>Binary Search</li> <li>Quick Sort</li> <li>Merge Sort</li> <li>Convex Hull - Recursive</li> </ul> </details> <details open> <summary>3. <a href="https://ansegura7.github.io/Algorithms/graphs/Graphs.html" >Graphs</a></summary> <ul> <li>Graph or Undirected Simple Graph</li> <li>Graph Traversal</li> <li>Minimum Spanning Tree</li> <li>Eulerian Circuit and Path</li> <li>Shortest Path</li> <li>All-Pairs Shortest Path</li> <li>Graph Coloring</li> </ul> </details> <details open> <summary>4. <a href="https://ansegura7.github.io/Algorithms/dynamic-programming/DynamicProgramming.html" >Dynamic Programming</a></summary> <ul> <li>Binomial Coefficient</li> <li>World Championship problem</li> <li>Coin Change problem</li> <li>The Knapsack problem</li> <li>Longest Common Subsequence problem</li> <li>Sequence Alignment problem</li> </ul> </details> <details open> <summary>5. <a href="https://ansegura7.github.io/Algorithms/probabilistic-algorithms/ProbabilisticAlgorithms.html" >Probabilistic Algorithms</a></summary> <ul> <li>Pseudo-Random Number Generator</li> <li>Primality Test</li> <li>Monte Carlo Simulation</li> <li>Metropolis-Hastings Algorithm</li> <li>Las Vegas Algorithm</li> <li>Law of Large Numbers</li> </ul> </details> <details open> <summary>6. <a href="https://ansegura7.github.io/Algorithms/similarity-functions/SimilarityFunctions.html" >Similarity Functions</a></summary> <ul> <li>Common Similarity functions</li> <li>Manual examples</li> <li>Sklearn examples</li> </ul> </details> <details open> <summary>7. <a href="https://ansegura7.github.io/Algorithms/chaotic-systems/ChaoticSystems.html" >Chaotic Systems</a></summary> <ul> <li>Chaotic Systems intro</li> <li>Fractals</li> </ul> </details> <details open> <summary>8. <a href="https://ansegura7.github.io/Algorithms/cellular-automata/CellularAutomata.html" >Cellular Automata</a></summary> <ul> <li>Linear Cellular Automata (LCA)</li> <li>Reversible Linear Cellular Automata (RLCA)</li> </ul> </details>

Python Dependencies

  conda install -c anaconda numpy
  conda install -c anaconda pymc
  conda install -c anaconda networkx

Bibliography

  • G. Brassard, P. Bratley. (2006). Fundamentals of Algorithmics. Englewood Cliffs, New Jersey: Prentice-Hall, Inc.
  • R.C.T. Lee, S.S. Tseng, R.C. Chang, Y.T.Tsai. (2005). Introduction to the Design and Analysis of Algorithms. A Strategic Approach. Asia: McGraw-Hill Education.
  • K. Rosen. (2012). Discrete Mathematics and Its Applications. NewYork, NY: McGraw-Hill Education; Edición: 7th.

Contributing and Feedback

Any kind of feedback/suggestions would be greatly appreciated (algorithm design, documentation, improvement ideas, spelling mistakes, etc...). If you want to make a contribution to the course you can do it through a PR.

Documentation

Please read the contributing and code of conduct documentation.

Author

  • Created by Andrés Segura-Tinoco
  • Created on May 17, 2019

License

This project is licensed under the terms of the <a href="https://github.com/ansegura7/Algorithms/blob/main/LICENSE">MIT license</a>.

View on GitHub
GitHub Stars133
CategoryDevelopment
Updated2mo ago
Forks22

Languages

HTML

Security Score

100/100

Audited on Jan 21, 2026

No findings