# Algorithms

## Applying algorithms for beginners

Applying algorithms is the goal when you want to use a programming language to solve problems. In the last unit of this course we studied how to create simple algorithms. This one, is about how to apply those algorithms using a programming language. If you missed the first unit, you can find it here. Notice …

## Where do I start to learn programming/coding?

You will find many answers to the question where do I start to learn programming. I’ve been teaching programming for more than 20 years. So, here I’ll show you where do I think it is better to start according to my experience. According to my experience and the feedback I get every year from my …

## Lesson 4: Recap and algorithm examples

In this lesson I’ll make a recap of the unit. You will see two algorithm examples of everything we studied in this unit together. I will focus on how to use algorithms, with conditionals and repetitions, to solve problems. Also, at the end of the lesson I will give a problem for you to solve …

## Lesson 3: Algorithms with repetitions

In this lesson you will learn an important topic: algorithms with repetitions (a.k.a. loops). You will see how to solve problems creating algorithms with repetitions. During the lesson you will see some examples. The approximate time to complete this lesson is 20 minutes. Transcription Welcome back. So far, we studied algorithms, conditionals relational and logical …

## Lesson 2: Algorithms with conditionals

This lesson explores the use of conditionals to construct algorithms. You will see some examples on how to use conditionals to solve certain type of problems. The approximate time to complete this lesson is 15 minutes. Transcription Welcome back. In this lesson we are going to keep studying algorithms. In this case we are going …

## Lesson 1: Algorithm definition and representation

Algorithms is a main topic in programming and Computer Science. In this lesson you will learn the definition of algorithm, how to represent them using natural language, pseudo-code and flow diagrams. You will also see some examples. The approximate time to complete this lesson is 15 minutes. Transcription In this lesson, we are going to …

## Algorithms for complete beginners

Algorithms is a very important topic in programming. In this unit you will learn the basics of algorithms. This course* is intended for beginners, so you learn the foundations needed to start coding. Algorithm example. Pseudo-code for an algorithm that prints the greatest of two numbers I divided this Unit in four lessons as described …

## Python tutorial: create a multiplication table

In this tutorial, you will learn how to create a multiplication table in python. It is one of the many examples that helps you to practice how to work with loops in any programming language.  See below a picture of what we are going to create in this tutorial. As you can see in the …

## The sequence 1 4 9 17 in python: a tricky pattern

Sequences are a powerful tool in mathematics and in programming. In this post, you will learn how to print a pattern with two sequences in python: the sequence 1 4 9 17 and an easier sequence that just add 2 to the previous value. If you want yo read more about sequences in mathematics, you …

## The definitive example to learn recursion and backtracking: the maze problem

Recursion is a very important tool in programming. It is also difficult to understand. In this post, I want to show an example of a problem that can be solved with recursion and will help you understand how to use backtracking. Backtracking is a useful technique we can use to verify all the possible solutions …