munotes® Sign in

B.Sc. (Computer Science) Sem 2 Design and Analysis of Algorithms May 2022 Question Paper - Mumbai University | munotes

Design And Analysis Of Algorithms Question Paper, May 2022.pdf
SEM 2 · 1 May 2025

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 solutions

SECTION I - Q.1 (Attempt the following, 2 marks each) 40 Marks

  1. 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
  2. ii) ____ notation gives the tight upper bound of the given function. Options: a. Big O, b. Big Theta, c. Big Omega, d. Little omega
    Read the model answer
  3. 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
  4. iv) A ____ is a special format for organizing and storing data. Options: a. Data structure, b. Algorithm, c. Searching, d. Sorting
    Read the model answer
  5. 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. Function
    Read the model answer
  6. 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 list
    Read the model answer
  7. vii) An ____ is the step-by-step unambiguous instructions to solve a given problem. Options: a. Queue, b. Algorithm, c. Searching, d. Program
    Read the model answer
  8. viii) ____ is an algorithm that arranges the elements of a list in a certain order. Options: a. Searching, b. Sorting, c. Finding, d. Shuffling
    Read the model answer
  9. ix) Merge sort uses Options: a. Divide and conquer strategy, b. Backtracking approach, c. Heuristic search, d. Greedy approach
    Read the model answer
  10. x) Which of the following algorithms has lowest worst case complexity. Options: a. Bubble Sort, b. Quick Sort, c. Merge Sort, d. Selection Sort
    Read the model answer
  11. xi) ____ is rearranging pairs of elements which are out of order, until no such pairs remain. Options: a. Insertion, b. Exchange, c. Selection, d. Distribution
    Read the model answer
  12. 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
  13. xiii) ____ is space complexity of Binary Search. Options: a. O(1), b. O(N), c. log(n), d. nlog(N)
    Read the model answer
  14. xiv) ____ stores already computed values in table. Options: a. Hashing, b. Memoization, c. Searching, d. Sorting
    Read the model answer
  15. 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 Tree
    Read the model answer
  16. xvi) ____ algorithms take advantage of computer architectures to process several instructions at a time. Options: a. Serial, b. Parallel, c. Complex, d. Distributed
    Read the model answer
  17. 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
  18. 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 sequentially
    Read the model answer
  19. xix) ____ an optimal solution to a problem contains optimal solutions to sub problems. Options: a. Searching, b. Optimal subproblem, c. Overlapping subproblem, d. Sorting
    Read the model answer
  20. xx) An ADT consists of ____ parts. Options: a. 1, b. 2, c. 3, d. 4 marks
    Read the model answer

SECTION II - Q.2 (Attempt the following, Solve any 02) 10 Marks

  1. i) What is an algorithm? Explain characteristics of algorithms.
    Read the model answer
  2. ii) Explain Big-O notation with proper example.
    Read the model answer
  3. iii) Define data structure and explain its types.
    Read the model answer
  4. 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

  1. i) Write a note on recursion. Enlist application of recursion.
    Read the model answer
  2. 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
  3. iii) What is searching and explain different types of linear search?
    Read the model answer
  4. iv) Explain Brute Force algorithm.
    Read the model answer

SECTION IV - Q.4 (Attempt the following, Solve any 02) 10 Marks

  1. i) Explain different types of classification by design method.
    Read the model answer
  2. ii) Explain greedy strategy and different elements of greedy algorithm.
    Read the model answer
  3. 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
  4. iv) What is a Dynamic Programming Strategy?
    Read the model answer

SECTION V - Q.5 (Attempt the following, Solve any 01) 05 Marks

  1. i) Convert the `(X - Y / (Z + U) * V)` infix expression into postfix expression.
    Read the model answer
  2. ii) Write an algorithm to find the largest element in an array A of size n and do analysis.
    Read the model answer
  3. 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.

Issue

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Done!
Done!