Introduction to Algorithms
Algorithms are essential for programming, so you won't get far without understanding them. Learn what algorithms are and see a few examples with this introduction.

Francesco
· Developer Advocate at @dailydotdev · Docker Captain · Public Speaker · Building a 1 Million Community 23% · All the links ➞ https://t.co/2DLpQ5cNoa

-
Algorithms scare every new developer.
— Francesco (@FrancescoCiull4) March 30, 2023
But they are crucial for programming, so you won't get far without understanding them.
Here is an introduction to algorithms and a few examples you must know.
A thread: pic.twitter.com/vkaRurGdxp -
If you want to dive deep into algorithms (without getting bored), I recommend checking out this Intro to Algorithms course by @brilliantorg
— Francesco (@FrancescoCiull4) March 30, 2023
They teach all the topics I discuss here with engaging & interactive lessons. More on them at the endhttps://t.co/xaHSNNArQQ pic.twitter.com/LCkhaMGI3W -
Algorithms are step-by-step procedures to solve a problem or accomplish a task.
— Francesco (@FrancescoCiull4) March 30, 2023
They're like recipes, guiding computers through instructions to achieve a specific outcome.
So what is an algorithm?? -
The pasta example 🍝
— Francesco (@FrancescoCiull4) March 30, 2023
The usual example I make to explain what an algorithm is is the procedure of cooking pasta:
A simple one would be:
- Gather ingredients and utensils
- Boil water
- Add pasta
- Cook the pasta
- Add seasoning
- Taste test
- Put it on the plate -
Of course, this is a minimalistic example, but it's just to get the idea.
— Francesco (@FrancescoCiull4) March 30, 2023
Also, depending on the seasoning, you might need some different and additional steps, but let's keep it simple for now. -
Algorithms are crucial in making software efficient and reliable.
— Francesco (@FrancescoCiull4) March 30, 2023
They help optimize resource usage, reduce execution time, and minimize errors.
This is especially important as our world becomes more data-driven and interconnected. -
Google's famous PageRank algorithm.
— Francesco (@FrancescoCiull4) March 30, 2023
It's named after web pages, but also because of its creator Larry Page!
It transformed web searches by ranking pages on importance, assessing website quality and relevance for precise results. -
There are many sorting algorithms, like:
— Francesco (@FrancescoCiull4) March 30, 2023
- Bubble sort
- QuickSort
- MergeSort
They are commonly used to arrange data in a specific order.
They are essential in many applications like database management, machine learning, and e-commerce. -
Dijkstra is one of my favorite algorithms.
— Francesco (@FrancescoCiull4) March 30, 2023
It aims to find the shortest route between two points in a graph.
It's used in:
- GPS navigation systems
- video games
- network routing -
If you are into Machine learning,
— Francesco (@FrancescoCiull4) March 30, 2023
Algorithms play a key role, like:
- Linear Regression
- Decision Trees
- Neural Networks analyze data to make predictions or decisions.
As they power AI systems to recognize speech, images, and patterns. -
Speaking of neural networks, @brilliantorg has an awesome lesson where you can learn how neurons and biases work in an ANN (artificial neural network). These are the must-know fundamentals if you want to build your own. pic.twitter.com/d4YygKLqUV
— Francesco (@FrancescoCiull4) March 30, 2023 -
Algorithms are highly used in the blockchain world.
— Francesco (@FrancescoCiull4) March 30, 2023
Examples:
- Cryptographic Hash Functions (like SHA-256):
- Consensus algorithms
- Elliptic Curve Digital Signature Algorithm (ECDSA) -
The word "algorithm" can scare new devs, but it just describes a series of steps.
— Francesco (@FrancescoCiull4) March 30, 2023
They’re crucial for programming, and Brilliant will teach you many of their core concepts.
Since I’m partnering with them, you can get 30 days free + 20% off here: https://t.co/xaHSNNArQQ