Posts

BST - BINARY SEARCH TREE - PYTHON

Python - Double Linked List

Python - Single Linked List

Write a python program to implement Queues.

Write a program to implement Stacks in python.

Selection Sort - Python

Merge sort - Python

Quick Sort - Python

Python - Bubble Sort

Python - Binary Search

write a program for linear search in python.

Write a Python program to generate the combinations of n distinct objects taken from the elements of a given list. Example: Original list: [1, 2, 3, 4, 5, 6, 7, 8, 9] Combinations of 2 distinct objects: [1, 2] [1, 3] [1, 4] [1, 5] .... [7, 8] [7, 9] [8, 9]

Write a Python program to illustrate the following comprehensions: a) List Comprehensions b) Dictionary Comprehensions c) Set Comprehensions d) Generator Comprehensions

Write a python program to implement Method Overriding.

Write a python program to implement Method Overloading.

Python - Develop an inheritance hierarchy based upon a Polygon class that has abstract methods area( ) and perimeter( ). Implement classes Triangle, Quadrilateral, Pentagon, that extend this base class, with the obvious meanings for the area( ) and perimeter( ) methods. Write a simple program that allows users to create polygons of the various types and input their geometric dimensions, and the program then outputs their area and perimeter.

Write a Python program for class, Flower, that has three instance variables of type str, int, and float that respectively represent the name of the flower, its number of petals, and its price. Your class must include a constructor method that initializes each variable to an appropriate value, and your class should include methods for setting the value of each type, and retrieving the value of each type.

Develop a program to simulate a simple printer queue system in C

Implement Travelling Sales Person problem using Branch and Bound approach.

Use Backtracking strategy to solve 0/1 Knapsack problem.