Objective: Comparison of Selection Sort and Insertion Sort Task:
- You have to implement Selection Sort and Insertion Sort
- Populate the input array of size n by generating random integers
- Record the time to accomplish the sorting
- The input size can vary from 10 to 100000.
- Generate best case, average case and worst case scenario and record the timing
- Plot running time of both the sorting algorithm against the input array size n (ex:
n=10,100,200,500,1000,2000,5000,10000)
Submission:
- Code in C++
- You have to submit the codes and a report containing complexity analysis, machine
configuration and the plots
Problem 2:
Task:
- You have to implement Power set algorithm
- Populate the input set of n elements by generating random characters or digits {0-9, a-z,
A-Z}
- Record the time to accomplish the set generation
- The number of elements can vary from 5 to 50
- Plot running time of the algorithm against the number of elements in the set
Submission:
- Code in C++
- You have to submit the codes and a report containing complexity analysis, machine
configuration and the plot
Deadline: Will be announced in moodle
Objective: Given a set S, generate all distinct subsets of it i.e., find distinct power set of set S. Print all distinct Subsets of a given Set.



