Assign - 1 Tut - 1
Assign - 1 Tut - 1
Unit # 1
Tutorial sheet 1
Sec-A
(3x2=06marks)
1) [CO1] -Explain the concept of amortized analysis and how it is used to analyze the time and
space complexity of algorithms with varying costs for individual operations.
2) [CO1] - The minimum number of comparisons required to find the minimum and the
maximum of 100 numbers is :
3) [CO1] - Provide examples of real-world problems or applications where divide and conquer
algorithms are commonly used.
4) [CO1] Define the Divide and Conquer algorithm paradigm in computer science.
5) [CO1] Explain the three main steps involved in a Divide and Conquer algorithm.
Sec-B
/* Note: Each question may have one or two parts */ (3x7=21 marks)
9) [CO1]Find the maximum and minimum no from given list using D&C approach-
15,89,53,78,45,6,9,36,72,19,66,49
10) [CO1] You are given two algorithms, Algorithm A and Algorithm B. Algorithm A has a time
complexity of O(n2 ), while Algorithm B has a time complexity of O(n log n). If you have to process an input
of size 1000, which algorithm would you choose, and why?
11) [CO1] You are tasked with sorting a list of n integers using the Selection Sort and Insertion Sort
algorithm. As part of the task, you need to perform a step-by-step analysis of the algorithm on a given list of
numbers.
Given the list of integers: [38, 27, 43, 3, 9, 82, 10].