Skip to main content
GATE CSE

Algorithms PYQs (GATE CSE Algorithms previous year questions)

Practise real GATE CSE Algorithms previous year questions from 1987–2026. Attempt questions, check your answers and learn with the stored explanations.

  • 255GATE CSE PYQs in archive
  • 1987–202639 exam years
  • 6 chapters45 analysed topics
  • Allhave a verified solution

Practice Questions

Question 1 of 5
GATE CSE 2026AlgorithmsGraph Algorithms2 marks

Let G(V,E)G(V, E) be an undirected, edge-weighted graph with integer weights. The weight of a path is the sum of the weights of the edges in that path. The length of a path is the number of edges in that path.

Let s∈Vs \in V be a vertex in GG. For every u∈Vu \in V and for every k≥0k \geq 0, let dk(u)d_{k}(u) denote the weight of a shortest path (in terms of weight) from ss to uu of length at most kk. If there is no path from ss to uu of length at most kk, then dk(u)=∞d_{k}(u)=\infty.

Consider the statements:

S1: For every k≥0k \geq 0 and u∈V,dk+1(u)≤dk(u)u \in V, d_{k+1}(u) \leq d_{k}(u).

S2: For every (u,v)∈E(u, v) \in E, if (u,v)(u, v) is part of a shortest path (in terms of weight) from ss to vv, then for every k≥0,dk(u)≤dk(v)k \geq 0, d_{k}(u) \leq d_{k}(v).

Which one of the following options is correct?

Choose one option

Answer at least one question to submit.

Help us improve: tell us what to fix or add

Sign in to send feedback (it takes under a minute), or create a free account.

About Algorithms

Algorithms has 17 analysed topics in the GateIQ archive. The ones that have appeared most often in GATE CSE are Minimum Spanning Tree, Identify Function, Recurrence Relation.

15 of them are rated high or very high value by the same transparent frequency, recurrence, recentness and solvability weighting used across the archive.

The practice set draws on 255 GATE CSE questions from 39 papers between 1987–2026. 255 of them carry a verified worked solution, shown after you submit.

Topics (45)

Year-wise PYQs

Number of GATE CSE Algorithms questions in each paper.

  • 202611
  • 20259
  • 20249
  • 20233
  • 20223
  • 202114
  • 20205
  • 20194
  • 20186
  • 20177
  • 201611
  • 201515
  • 201417
  • 20134
  • 20124
  • 20117
  • 20105
  • 20098
  • 200815
  • 200711
  • 200612
  • 200510
  • 20048
  • 200313
  • 20023
  • 20013
  • 20005
  • 19996
  • 19982
  • 19971
  • 19964
  • 19955
  • 19945
  • 19932
  • 19922
  • 19913
  • 19901
  • 19881
  • 19871