Types of Algorithms

Algorithms are a set of logical steps you run to compute something on a given data set. Depending on the Data Structures that are used, some algorithms may be more efficient than others. It is vital to understand the relationships between the Data Structures and the Algorithms you need to solve complex problems.

Read more about the different types of algorithms and how/when they are used

Simple Recursive Algorithms

Simple Recursive Algorithms

T.T.SJun 11, 20223 min read

Introduction Imagine a Russian nesting doll, where each doll opens to reveal a smaller one inside, similar to the structure of a family tree tracing back generations. This concept of something repeating within itself is the essence of simple recursive…

Backtracking Algorithms

Backtracking Algorithms

T.T.SMay 7, 20223 min read

Introduction Picture yourself in a maze, taking a path, hitting a dead end, and then retracing your steps to try a new route. This process of trial, error, and retry is the core of backtracking algorithms in computing. Backtracking is…

random

Randomization Algorithms 

T.T.SMar 22, 20223 min read

What Are Randomization Algorithms Randomization Algorithms, RAs for short, seem counterintuitive to what an algorithm should be. When we think of algorithms, we think of following the same steps over and over and getting the same output for a given…

Brute Force Algorithms

Brute Force Algorithms

T.T.SMar 13, 20223 min read

Introduction Imagine trying to crack a safe by trying every possible combination. That’s essentially what brute force algorithms do in the computing world. They are the trial-and-error champions of the algorithm family. Let’s break down this concept in a simple,…

Branch and Bound Algorithms

Branch and Bound Algorithms

T.T.SMar 13, 20223 min read

Introduction Imagine solving a complex jigsaw puzzle, not by randomly trying pieces but by methodically following clues to find the right place for each piece. This approach mirrors the essence of Branch and Bound algorithms in computing. These algorithms are…

Greedy Algorithms 

Greedy Algorithms 

T.T.SMar 13, 20223 min read

Introduction Imagine you’re at a buffet and you decide to fill your plate with the most appealing items first, without worrying about what comes next. This “grab the best now” approach is similar to how greedy algorithms work in computer…

Dynamic Programming Algorithms

Dynamic Programming Algorithms

T.T.SMar 13, 20223 min read

Introduction Picture building a complex Lego structure. Instead of starting from scratch each time, you save and reuse parts of your creation as you go. This approach is akin to how dynamic programming algorithms work in computing. They break down…

Divide and Conquer Algorithms

Divide and Conquer Algorithms

T.T.SMar 13, 20223 min read

Introduction Picture building a complex Lego structure. Instead of starting from scratch each time, you save and reuse parts of your creation as you go. This approach is akin to how dynamic programming algorithms work in computing. They break down…