GATE CS Algorithms Previous Year Questions
5 solved GATE CS questions on Algorithms, drawn from 1 exam year and grouped by year. Every question shows the official answer and a step-by-step solution.
GATE CS 20245 questions
- Set 1 Q17Given an integer array of size , we want to check if the array is sorted (in either ascending or descending order). An algorithm solves this problem by…MCQ · +1 marks · Easy
- Set 1 Q42Consider the following recurrence relation: Which…MCQ · +2 marks · Medium
- Set 1 Q45Let be a directed graph and a depth first search (DFS) spanning tree in that is rooted at a vertex . Suppose is also a breadth first search…MSQ · +2 marks · Hard
- Set 2 Q35Let be an array containing integer values. The distance of is defined as the minimum number of elements in that must be replaced with another…NAT · +1 marks · Medium
- Set 2 Q59The number of distinct minimum-weight spanning trees of the following graph is _________ [figure]NAT · +2 marks · Hard
Other GATE CS topics
Practice Algorithms with adaptive difficulty
Timed practice, skill tracking, and AI explanations — free to start.
Start practicing free