Taylor Emma

A senior editor for The Mars that left the company to join the team of SenseCentral as a news editor and content creator. An artist by nature who enjoys video games, guitars, action figures, cooking, painting, drawing and good music.
2363 Articles

Huffman Trees and Codes

Suppose we have to encode a text that comprises symbols from some n-symbol…

Taylor Emma

Dijkstra’s Algorithm

In this section, we consider the single-source shortest-paths problem: for a given vertex…

Taylor Emma

Kruskal’s Algorithm

In the previous section, we considered the greedy algorithm that “grows” a…

Taylor Emma

Prim’s Algorithm

The following problem arises naturally in many practical situations: given n points, connect them…

Taylor Emma

Greedy Technique

Let us revisit the change-making problem faced, at least subconsciously, by millions of cashiers…

Taylor Emma

The Knapsack Problem and Memory Functions

We start this section with designing a dynamic programming algorithm for the…

Taylor Emma

Warshall’s and Floyd’s Algorithms

In this section, we look at two well-known algorithms: Warshall’s algorithm for…

Taylor Emma

Greedy approach vs Dynamic programming

A Greedy algorithm is an algorithmic paradigm that builds up a solution piece by…

Taylor Emma

Knapsack Problem

Here is another well-known problem in algorithmics. Given n items of known weights w1, w2,…

Taylor Emma

Exhaustive Search

Exhaustive Search: 1. Traveling Salesman Problem 2. Knapsack Problem 3. Assignment Problem…

Taylor Emma