B.Sc. (Computer Science) Sem 2 Design and Analysis of Algorithms May 2022 Question Paper - Mumbai University | munotes
This paper is solved: read the model answers.
Loading PDF...
Questions asked in this paper
Solved paper All 35 questions answered in full Exam-ready answers, the reasoning behind each one, and what the examiner is looking for. Open the solutionsSECTION I - Q.1 (Attempt the following, 2 marks each) 40 Marks
-
i) Sigma over 1 <= k <= n of O(n), where O(n) stands for order n is Options: a. O(n), b. O(n2), c. O(n3), d. O(3n2)Read the model answer
-
ii) ____ notation gives the tight upper bound of the given function. Options: a. Big O, b. Big Theta, c. Big Omega, d. Little omegaRead the model answer
-
iii) Suppose T(n) = 2T(n/2) + n, T(0) = T(1) = 1. Which one of is the following false? Options: a. T(n) = O(n2), b. T(n) = Θ(n log n), c. T(n) = Q(n2), d. T(n) = O(n log n)Read the model answer
-
iv) A ____ is a special format for organizing and storing data. Options: a. Data structure, b. Algorithm, c. Searching, d. SortingRead the model answer
-
v) A ____ solves a problem by calling a copy of itself to work on a smaller problem. Options: a. Method, b. Searching, c. Recursive method, d. FunctionRead the model answer
-
vi) A ____ is an ordered list in which insertion and deletion are done at one end. Options: a. Stack, b. List, c. Queue, d. Linked listRead the model answer
-
vii) An ____ is the step-by-step unambiguous instructions to solve a given problem. Options: a. Queue, b. Algorithm, c. Searching, d. ProgramRead the model answer
-
viii) ____ is an algorithm that arranges the elements of a list in a certain order. Options: a. Searching, b. Sorting, c. Finding, d. ShufflingRead the model answer
-
ix) Merge sort uses Options: a. Divide and conquer strategy, b. Backtracking approach, c. Heuristic search, d. Greedy approachRead the model answer
-
x) Which of the following algorithms has lowest worst case complexity. Options: a. Bubble Sort, b. Quick Sort, c. Merge Sort, d. Selection SortRead the model answer
-
xi) ____ is rearranging pairs of elements which are out of order, until no such pairs remain. Options: a. Insertion, b. Exchange, c. Selection, d. DistributionRead the model answer
-
xii) ____ order is the best possible for array sorting algorithm which sorts n item. Options: a. O(n logn), b. O(n2), c. O(n+logn), d. O(logn)Read the model answer
-
xiii) ____ is space complexity of Binary Search. Options: a. O(1), b. O(N), c. log(n), d. nlog(N)Read the model answer
-
xiv) ____ stores already computed values in table. Options: a. Hashing, b. Memoization, c. Searching, d. SortingRead the model answer
-
xv) Which of the following standard algorithms is not Dynamic Programming based. Options: a. Bellman-Ford Algorithm for single source shortest path, b. Floyd Warshall Algorithm for all pairs shortest paths, c. 0-1 Knapsack problem, d. Prim's Minimum Spanning TreeRead the model answer
-
xvi) ____ algorithms take advantage of computer architectures to process several instructions at a time. Options: a. Serial, b. Parallel, c. Complex, d. DistributedRead the model answer
-
xvii) Which of these is a postfix expression? Options: a. a+b-c, b. +ab, c. abc*+de-+, d. a*b(c+d)Read the model answer
-
xviii) Which of the following is the disadvantage of the array? Options: a. Stack and Queue data structures can be implemented through an array, b. Index of the first element in an array can be negative, c. Wastage of memory if the elements inserted in an array are lesser than the allocated size, d. Elements can be accessed sequentiallyRead the model answer
-
xix) ____ an optimal solution to a problem contains optimal solutions to sub problems. Options: a. Searching, b. Optimal subproblem, c. Overlapping subproblem, d. SortingRead the model answer
-
xx) An ADT consists of ____ parts. Options: a. 1, b. 2, c. 3, d. 4 marksRead the model answer
SECTION II - Q.2 (Attempt the following, Solve any 02) 10 Marks
-
i) What is an algorithm? Explain characteristics of algorithms.Read the model answer
-
ii) Explain Big-O notation with proper example.Read the model answer
-
iii) Define data structure and explain its types.Read the model answer
-
iv) Explain stack data structure and its operations in detail.Read the model answer
SECTION III - Q.3 (Attempt the following, Solve any 02) 10 Marks
-
i) Write a note on recursion. Enlist application of recursion.Read the model answer
-
ii) Given an array: 6 8 1 4 5 3 7 2. Sort using insertion sort algorithm and state the performance.Read the model answer
-
iii) What is searching and explain different types of linear search?Read the model answer
-
iv) Explain Brute Force algorithm.Read the model answer
SECTION IV - Q.4 (Attempt the following, Solve any 02) 10 Marks
-
i) Explain different types of classification by design method.Read the model answer
-
ii) Explain greedy strategy and different elements of greedy algorithm.Read the model answer
-
iii) Let us consider an algorithm A which solves problems by dividing them into five subproblems of half the size, recursively solving each subproblem, and then combining the solutions in linear time. What is the complexity of this algorithm?Read the model answer
-
iv) What is a Dynamic Programming Strategy?Read the model answer
SECTION V - Q.5 (Attempt the following, Solve any 01) 05 Marks
-
i) Convert the `(X - Y / (Z + U) * V)` infix expression into postfix expression.Read the model answer
-
ii) Write an algorithm to find the largest element in an array A of size n and do analysis.Read the model answer
-
iii) What is Backtracking?Read the model answer
Read from the scan above, so a character or two may differ. The scan is the original.
What do you need?
Tap one.
The answers are on this page
You can read the first answer here. The box further down shows how to read all of them.
Read it here, any time
We keep checking and updating our papers and notes, and adding more. A saved copy would be an old version. Reading on munotes.in always gives you the latest one.
I paid, but I can't open it
Please type an email, or a 10-digit phone number.
Done
If we find your payment, we send a link to the email you paid with. Open it to read.
Check your email in 2 minutes. Also check Spam.
No email after 10 minutes?
Something else
Please write a little more, so we can help.
Your email app opens with this. You can add more there. We reply by email.
Something wrong on this page? Report it and we will check it against the scan.
Quick Help
Related Resources
Something wrong with this paper? Report it.