/Data-Structures-and-Algorithms-Assignments

This repository contains the assignments completed as a part of the coursework for the course Data Structures and Algorithms. These assignments test the ability to implement algorithms and further analyze them. Numpy and Matplotlib were used for the visualization of the results of these algorithms.

Primary LanguageJupyter Notebook

Data-Structures-and-Algorithms-Assignments

This repository contains the assignments completed as a part of the coursework for the course Data Structures and Algorithms.

Assignment 1

These assignments test the ability to implement algorithms and further analyze them.

Stack Used:

  • The Algorithms have been implemented in Python.
  • Numpy and Matplotlib were used for the visualization of the results of these algorithms.

Assignment 2

This is the implementation of the Huffman encoding algorithm in Python using a Min-heap queue.

Usage:

python hmenencoder.py <input_file>

Ouput:

  • encodedmsg.txt: Contains the encoded message.
  • code.txt: Contains the codes for all the symbols.