← Open Source
mossr

BeautifulAlgorithms.jl

Concise and beautiful algorithms written in Julia.

TutorialsML/AI fundamentalsJulia
Open on GitHub
Momentum
+0stars in 24 hours0.0%
1.43k
Stars
97
Forks
+2
This week
4
Contributors
Created 2020-09-15 · Updated 2026-10-13 · #10358 today
Top developers
mossrMoelfWikunia

mossr/BeautifulAlgorithms.jl is ranked 10,358 with 1,430 stars.

Same-category comparison

mossr/BeautifulAlgorithms.jl is ranked 10,358 among these 8 peers; BilalReffas/EmojiIntelligence is ranked 10,354.

Same-category comparison
NameRankMetrics
GoogleCloudPlatform/data-science-on-gcp10,344
Language:
Jupyter Notebook
Stars:
1,432
Forks:
727
Description:
Source code accompanying book: Data Science on the Google Cloud Platform, Valliappa Lakshmanan, O'Reilly 2017.
tensorflow/workshops10,347
Language:
Jupyter Notebook
Stars:
1,432
Forks:
661
Description:
A few exercises for use at events.
remicnrd/ml_cheatsheet10,351
Stars:
1,431
Forks:
216
Description:
A 5-pages only Machine Learning cheatsheet focusing on the most popular algorithms under the hood.
BilalReffas/EmojiIntelligence10,354
Language:
Swift
Stars:
1,430
Forks:
84
Description:
Neural Network built in Apple Playground using Swift.
ai-builders-foundation/ai-builders-curriculum10,373
Language:
TypeScript
Stars:
1,424
Forks:
130
Description:
Open, vendor-neutral curriculum and hackathon starter kits for learning to build full-stack AI applications end-to-end. MIT-licensed. A project of the AI Builders Foundation (501c3).
fmind/mlops-python-package10,389
Language:
Python
Stars:
1,419
Forks:
199
Description:
Production-shaped MLOps Python package and reference implementation of the MLOps Coding Course: MLflow, scikit-learn, Pydantic, Pandera, uv, and mise.
musikalkemist/AudioSignalProcessingForML10,390
Language:
Jupyter Notebook
Stars:
1,419
Forks:
458
Description:
Code and slides of my YouTube series called "Audio Signal Proessing for Machine Learning".
datawhalechina/hugging-multi-agent10,391
Language:
CSS
Stars:
1,418
Forks:
160
Description:
A tutorial based on MetaGPT to quickly help you understand the concept of agent and muti-agent and get started with coding development.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJulia
CategoryTutorials
SubcategoryML/AI fundamentals
Stars1,430
Forks97
Contributors4
Created date2020-09-15
Updated date2026-10-13
Stars in 1 day0
Stars in 7 days2
Rank10,358
Previous rank10,359
Rank change1
7-day stars rank8,059
Previous 7-day stars rank8,102
7-day stars rank change43
Total stars rank8,410
Previous total stars rank8,398
Total stars rank change-12
CountryUSA
README summary

jl Concise algorithms written in Julia and formatted with Carbon. Algorithms for machine learning, optimization, reinforcement learning, online planning, decision making under uncertainty, and sorting. All implementations are working and self-contained; refer to the test cases. _Note, these are primarily for academic purposes and are not designed for real-world usage. There are many other Julia packages that implement more sound versions of these algorithms. _ Gradient descent Stochastic gradient descent Two-layer neural network Multi-layer neural network Loss

functions Distance functions Nearest neighbor K-nearest neighbors K-means clustering The EM algorithm Linear regression Ridge regression Basis regression Radial basis regression Logistic regression Cross-entropy method Finite difference methods Simulated annealing Twiddle Newton's method Gaussian process Thompson sampling Particle filter Value iteration Branch and bound Monte Carlo tree search Huffman coding Hailstone sequence (Collatz conjecture) Bubble sort Merge sort Insertion sort Bogo sort Quine *Note: Algorithms are modified from their original sources. * Gradient descent Percy Liang and Dorsa

Sadigh, *Artificial Intelligence: Principles and Techniques*, Stanford University, 2019. Stochastic gradient descent Percy Liang and Dorsa Sadigh, *Artificial Intelligence: Principles and Techniques*, Stanford University, 2019. Two-layer neural network Two-layer neural network (one-liner) Multi-layer neural network Loss functions Distance functions Nearest neighbor K-nearest neighbors K-means clustering Percy Liang and Dorsa Sadigh, *Artificial Intelligence: Principles and Techniques*, Stanford University, 2019. The EM algorithm Andrew Ng, *Mixtures of Gaussians and the EM algorithm*, Stanford University, 2020. Wheeler

, *Algorithms for Optimization*, MIT Press, 2019. (Credit @HenriDeh for use of ) Linear regression (one-liner) Ridge regression Basis regression Mykel J. Wheeler, *Algorithms for Optimization*, MIT Press, 2019. Wheeler, *Algorithms for Optimization*, MIT Press, 2019. Logistic regression Cross-entropy method Mykel J. Wheeler, *Algorithms for Optimization*, MIT Press, 2019. Wheeler, *Algorithms for Optimization*, MIT Press, 2019. Wheeler, *Algorithms for Optimization*, MIT Press, 2019. Twiddle Sebatian Thrun, *Artificial Intelligence for Robotics*, Udacity, 2012. Newton's method John Wallis, *A Treatise of Algebra

both Historical and Practical*, 1685. Wheeler, *Algorithms for Optimization*, MIT Press, 2019. Gaussian process kernels Thompson sampling Daniel J. Russo, Benjamin Van Roy, Abbas Kazerouni, Ian Osband, and Zheng Wen, *A Tutorial on Thompson Sampling*, arXiv:1707. Wray, *Algorithms for Decision Making*, Preprint. Wray, *Algorithms for Decision Making*, Preprint. Wray, *Algorithms for Decision Making*, Preprint. Wray, *Algorithms for Decision Making*, Preprint. Huffman, *A Method for the Construction of Minimum-Redundancy Codes*, IEEE, 1952. Hailstone sequence (Collatz conjecture) Bubble sort Karey

Shi, *Design and Analysis of Algorithms*, Stanford University, 2020. Merge sort Karey Shi, *Design and Analysis of Algorithms*, Stanford University, 2020. Insertion sort Karey Shi, *Design and Analysis of Algorithms*, Stanford University, 2020. Bogo sort Bogo sort (one-liner) Quine Nathan Daly, *Julia Discord*, 2019.

Frequently asked questions

How many stars and forks are recorded?

mossr/BeautifulAlgorithms.jl has 1,430 stars and 97 forks.

What is the repository rank?

mossr/BeautifulAlgorithms.jl is ranked 10,358.

What language and category are recorded?

mossr/BeautifulAlgorithms.jl has 1,430 stars, uses Julia and belongs to Tutorials.

Which repository is closest in rank?

mossr/BeautifulAlgorithms.jl is compared with BilalReffas/EmojiIntelligence, ranked 10,354 with 1,430 stars.

README

BeautifulAlgorithms.jl

Concise algorithms written in Julia and formatted with Carbon.

Algorithms for machine learning, optimization, reinforcement learning, online planning, decision making under uncertainty, and sorting. All implementations are working and self-contained; refer to the test cases.

Note, these are primarily for academic purposes and are not designed for real-world usage. There are many other Julia packages that implement more sound versions of these algorithms.

] add http://github.com/mossr/BeautifulAlgorithms.jl

Note: Algorithms are modified from their original sources.

Gradient descent

Percy Liang and Dorsa Sadigh, Artificial Intelligence: Principles and Techniques, Stanford University, 2019.

Stochastic gradient descent

Percy Liang and Dorsa Sadigh, Artificial Intelligence: Principles and Techniques, Stanford University, 2019.

Two-layer neural network

Two-layer neural network (one-liner)

Multi-layer neural network

Loss functions

Distance functions

Nearest neighbor

K-nearest neighbors

K-means clustering

Percy Liang and Dorsa Sadigh, Artificial Intelligence: Principles and Techniques, Stanford University, 2019.

The EM algorithm

Andrew Ng, Mixtures of Gaussians and the EM algorithm, Stanford University, 2020.1

Linear regression

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019. (Credit @HenriDeh for use of ones)

Linear regression (one-liner)

Ridge regression

Basis regression

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

Radial basis regression

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

Logistic regression

Cross-entropy method

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

Finite difference methods

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

Simulated annealing

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

Twiddle

Sebatian Thrun, Artificial Intelligence for Robotics, Udacity, 2012.

Newton's method

John Wallis, A Treatise of Algebra both Historical and Practical, 1685.

Gaussian process

Mykel J. Kochenderfer and Tim A. Wheeler, Algorithms for Optimization, MIT Press, 2019.

Gaussian process kernels

Thompson sampling

Daniel J. Russo, Benjamin Van Roy, Abbas Kazerouni, Ian Osband, and Zheng Wen, A Tutorial on Thompson Sampling, arXiv:1707.02038, 2020.

Particle filter

Mykel J. Kochenderfer, Tim A. Wheeler, and Kyle H. Wray, Algorithms for Decision Making, Preprint.

Value iteration

Mykel J. Kochenderfer, Tim A. Wheeler, and Kyle H. Wray, Algorithms for Decision Making, Preprint.

Branch and bound

Mykel J. Kochenderfer, Tim A. Wheeler, and Kyle H. Wray, Algorithms for Decision Making, Preprint.

Monte Carlo tree search

Mykel J. Kochenderfer, Tim A. Wheeler, and Kyle H. Wray, Algorithms for Decision Making, Preprint.

Huffman coding

David A. Huffman, A Method for the Construction of Minimum-Redundancy Codes, IEEE, 1952.

Hailstone sequence (Collatz conjecture)

Bubble sort

Karey Shi, Design and Analysis of Algorithms, Stanford University, 2020.

Merge sort

Karey Shi, Design and Analysis of Algorithms, Stanford University, 2020.

Insertion sort

Karey Shi, Design and Analysis of Algorithms, Stanford University, 2020.

Bogo sort

Bogo sort (one-liner)

Quine

Nathan Daly, Julia Discord, 2019.2


Written by Robert Moss.

Nearby in the ranking
Similar items