Divide and Conquer: GATE CS Previous Year Questions

Divide and Conquer · Algorithms

6 questions · asked in 5 of 27 years (2000–2026)

MCQ 4 · NAT 21-mark 4 · 2-mark 2

2000Questions per year2026

Questions 1–5 of 6

Q1GATE 20191 markNAT
Consider a sequence of 14 elements: A = [-5, -10, 6, 3, -1, -2, 13, 4, -9, -1, 4, 12, -3, 0]. The sequence sum S(i,j)=∑k=ijA[k]S(i,j)=\sum_{k=i}^{j}A[k]. Determine the maximum of S(i,j), where 0≤i≤j<140 \leq i \leq j \lt 14. (Divide and conquer approach may be used). Answer:______

Q2GATE 2017 (Session 1)1 markMCQ−0.33 if wrong
Consider the following table:
Algorithms Design Paradigms (P) Kruskal(i) Divide and Conquer (Q) Quicksort(ii) Greedy (R) Floyd-Warshall(iii) Dynamic Programming
Match the algorithms to the design paradigms they are based on.

Q3GATE 2015 (Session 1)1 markMCQ−0.33 if wrong
Match the following:
(P) Prim’s algorithm for minimum spanning tree (Q) Floyd-Warshall algorithm for all pairs shortest paths (R) Mergesort (S) Hamiltonian circuit (i) Backtracking (ii) Greedy method (iii) Dynamic programming (iv) Divide and conquer

Q4GATE 2015 (Session 2)2 marksMCQ−0.67 if wrong
Given below are some algorithms, and some algorithm design paradigms.
1. Dijkstra’s Shortest Path 2. Floyd-Warshall algorithm to compute all pairs shortest path 3. Binary search on a sorted array 4. Backtracking search on a graph i. Divide and Conquer ii. Dynamic Programming iii. Greedy design iv. Depth-first search v. Breadth-first search
Match the above algorithms on the left to the corresponding design paradigm they follow.

Q5GATE 2014 (Session 1)2 marksNAT
The minimum number of comparisons required to find the minimum and the maximum of 100 numbers is _________________.

Keep practising

Topics in Algorithms

All CS topics ›