## Master Kruskal’s Algorithm in 5 Steps with Python

What will we cover in this tutorial? In this tutorial we will show how the Kruskal’s algorithm works. First, we will just give an example of what it does. Consider the following a undirected edge-weighted graph. The vertices (or nodes) are numbered from 0 to 7 to make it simpler later. It contains edges, which … Read more

## How-To Solve the Edit Distance Problem with Dynamic Programming

What will we cover in this tutorial? In this tutorial we will make a dynamic programming solution to the Edit Distance Problem. Consider the following problem. Given a string u = “abbabc” and v = “ababac”, and the operations to insert, remove or change a character in string u. What is the minimum amount of … Read more

## The Greedy Approximation Algorithm for the Knapsack Problem

What will we cover in this tutorial? The Knapsack Problem is defined as follows. Given a set of items, each with a weight and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to a given limit and the total value … Read more