Exam Details

Subject Design and Analysis of Algorithms
Paper
Exam / Course Master's in Mathematics with Applications in Computer Science
Department School of Sciences (SOS)
Organization indira gandhi national open university
Position
Exam Date December, 2016
City, State new delhi,


Question Paper

Sort the following numbers using the Quick.Sort algorithm:

35,23,38,22,11,47

Consider the following binary search tree

<img src='./qimages/10172-1b.jpg'>

illustrate the steps of the algorithm BUILD-MAX-HEAP for the following data:

16, 14, 10, 18, 7

Also compute the running time of the BUILD-MAX-HEAP algorithm.

Explain, with steps, the algorithm for finding the longest common subsequence of the sequences X C and y using Dynamic programming.

Illustrate, with all the steps, the operation of COUNTING-SORT on the array

A

Find the minimum spanning tree for the following graph using Prim's algorithm,explaining all the steps

<img src='./qimages/10172-3b.jpg'>

illustrate the steps of the Rabin-Karp matcher algorithm on the text

3141592653589783

for the pattern P 26. Assume you are working with q 11. Indicate all the spurious hits.

Consider the knapsack instance with n with the cost array

P2, p3) 100, weight array
w2, w3) 20, 30).

The knapsack can hold a weight of 50 units..Solve the 0 knapsack problem and the fractional knapsack problem for
the data above with the most efficient algorithm.

You should also explain why your choice of algorithm is most efficient.

Compute the Discrete Fourier Transform.(DFT) of the vector 3).

Run the Bellman-Ford algorithm on the directed graph given below, using the vertex s as the source. Explain all your steps.

<img src='./qimages/10172-5b.jpg'>

6. Which of the following statements are True, and which are False? Justify your answers.

Merge Sort algorithm is a stable sorting algorithm.

Every binary heap is a B-tree.

In the dynamic programming approach, the value of an optimal solution of an optimisation problem is determined in a bottom-up fashion.

In any directed graph with negative weights, Dijkstra's algorithm can be used to find the shortest path.

For any integer k if a b bEN, and b Fk the call EUCLID makes fewer than k recursive calls, where Fk is the 1)th Fibonacci number.


Departments

  • Centre for Corporate Education, Training & Consultancy (CCETC)
  • Centre for Corporate Education, Training & Consultancy (CCETC)
  • National Centre for Disability Studies (NCDS)
  • School of Agriculture (SOA)
  • School of Computer and Information Sciences (SOCIS)
  • School of Continuing Education (SOCE)
  • School of Education (SOE)
  • School of Engineering & Technology (SOET)
  • School of Extension and Development Studies (SOEDS)
  • School of Foreign Languages (SOFL)
  • School of Gender Development Studies(SOGDS)
  • School of Health Science (SOHS)
  • School of Humanities (SOH)
  • School of Interdisciplinary and Trans-Disciplinary Studies (SOITDS)
  • School of Journalism and New Media Studies (SOJNMS)
  • School of Law (SOL)
  • School of Management Studies (SOMS)
  • School of Performing Arts and Visual Arts (SOPVA)
  • School of Performing Arts and Visual Arts(SOPVA)
  • School of Sciences (SOS)
  • School of Social Sciences (SOSS)
  • School of Social Work (SOSW)
  • School of Tourism & Hospitality Service Sectoral SOMS (SOTHSM)
  • School of Tourism &Hospitality Service Sectoral SOMS (SOTHSSM)
  • School of Translation Studies and Training (SOTST)
  • School of Vocational Education and Training (SOVET)
  • Staff Training & Research in Distance Education (STRIDE)

Subjects

  • Algebra
  • Coding Theory
  • Complex Analysis
  • Computer Graphics
  • Cryptography
  • Design and Analysis of Algorithms
  • Differential Equations And Numerical Solutions
  • Functional Analysis
  • Graph Theory
  • Linear Algebra
  • Mathematical Modelling
  • Pattern Recognition and Image Processing
  • Probability And Statistics
  • Programming and Data Structures
  • Real Analysis
  • Soft Computing and its Applications