Each assignment has 10 questions. Each student has to write only one question from each assignment. For every assignment, the student has to write the problem numbered with the last digit of his enrollment number. For example, if your enrollment number is 200160107007, then you have to write 7th question from all listed assignments. If your enrollment number is ending in 0 (for example, 200160107010), then you have to write 10th question from all assignments.

## Assignment – 01:

- Given the function f(n) = 3n
^{3}+ 4n^{2}+ 10, find its upper bound, lower bound and tight bound with necessary constants - Discuss linear search and binary search. Also derive their best case, average case and worst case time complexities.
- Discuss Bubble sort with its algorithm, property, time complexity, pros and cons
- Discuss Selection sort with its algorithm, property, time complexity, pros and cons
- Discuss Insertion sort with its algorithm, property, time complexity, pros and cons
- Discuss Heap sort with its algorithm, property, time complexity, pros and cons
- Discuss Shell sort with its algorithm, property, time complexity, pros and cons
- Discuss Radix sort with its algorithm, property, time complexity, pros and cons
- Discuss Bucket sort with its algorithm, property, time complexity, pros and cons
- Discuss Counting sort with its algorithm, property, time complexity, pros and cons

## Assignment – 02:

- What is an algorithm? What is the need for an algorithm?
- Write an example of equal sets.
- Write the subsets of {1,2,3}.
- If set A = {1, 3, 5}, B = {2, 4, 6} and C = {0, 2, 4, 6, 8}. Then write the universal set for all three sets.
- If A = {3, 5, 7, 9, 11}, B = {7, 9, 11, 13}, C = {11, 13, 15}. Find A ∩ (B ∪ C).
- Identify the range and domain the relation below: {(-2, 3), {4, 5), (6, -5), (-2, 3)}
- Check if the following ordered pairs are functions: W= {(1, 2), (2, 3), (3, 4), (4, 5), Y = {(1, 6), (2, 5), (1, 9), (4, 3)}
- What is a function? How to Determine if a Relation is a Function?
- Solve the following linear equation: 2x+4y=20 and x+3y=30
- Discuss various types of functions

## Assignment – 03:

All questions in this assignment are based on Greedy Algorithms. Write an explanation, algorithm, complexity analysis and suitable example for the first 8 problems.

- Binary knapsack
- Fractional knapsack
- Job scheduling
- Minimum Spanning tree using Prim’s Algorithm
- Minimum Spanning tree using Kruskal’s Algorithm
- Dijkstra’s Algorithm
- Activity Selection Problem
- Huffman Coding
- Compare and contrast: Greedy Algorithm vs. Divide and Conquer
- Compare and contrast: Greedy Algorithm vs. Dynamic Programming

## Assignment – 04:

All questions in this assignment are based on Dynamic Programming. Write an explanation, algorithm, complexity analysis and suitable example for problems 4-10.

- Write a note on dynamic programming. Explain the principle of optimality.
- Compare and contrast: Divide and conquer vs. Dynamic Programming
- Compare and contrast: Branch and Bound vs. Dynamic Programming
- Binomial Coefficient
- Making change problem
- Assembly Line-Scheduling
- Knapsack problem
- All Points Shortest path
- Matrix chain multiplication
- Longest Common Subsequence.