Course Data Structures Essentials
Computational Complexity
Hello! Welcome to the first theoretical class of the Data Structures course ๐
In this class, you will learn how to analyze the complexity (speed) of your code. This class is divided into 3 parts, which are:
- What is complexity analysis;
- Big-O notation;
- Complexity groups.
So, without further ado, let's get started!
Introduction
To introduce computational complexity, let's understand why we need it. For this, let's look at the Tower problem. Think about it a bit before proceeding with the class.
A possible solution is to calculate for each cell
#include<iostream>
using namespace std;