WEEK 6
Greedy - 30th March 2022
-
Prim’s Algorithm
Given a weighted undirected graph. Find the sum of weights of edges of a Minimum Spanning Tree using Prims Algorithm. -
Kruskal’s Algorithm
Given a weighted undirected graph. Find the sum of weights of edges of a Minimum Spanning Tree. -
Huffman Coding
Given a set of n characters and their frequencies. Find out their codes using Huffman encoding. Consider left child = 0, right child = 1