Let 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 be a vertex in . For every and for every , let denote the weight of a shortest path (in terms of weight) from to of length at most . If there is no path from to of length at most , then .
Consider the statements:
S1: For every and .
S2: For every , if is part of a shortest path (in terms of weight) from to , then for every .
Which one of the following options is correct?
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
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)
- Minimum Spanning Tree1991–2026 · 23 practice questions · very high
- Identify Function1989–2021 · very high
- Recurrence Relation1987–2026 · 17 practice questions · very high
- Time Complexity1988–2026 · 28 practice questions · very high
- Asymptotic Notations1994–2026 · 3 practice questions · very high
- Graph Search1989–2025 · very high
- Sorting1988–2025 · very high
- Graph Algorithms1994–2026 · high
- Quick Sort1987–2019 · high
- Algorithm Design1992–2024 · high
- Recursion1995–2026 · high
- Directed Acyclic Graph2021–2026 · 2 practice questions · high
- Double Hashing2020–2025 · high
- Dynamic Programming2008–2026 · 2 practice questions · high
- Binary Search Tree2026–2026 · high
- Hashing1990–2026 · high
- Binary Heap2026–2026 · high
- Binary Search2021–2021 · 3 practice questions · high
- Binary Tree2026–2026 · high
- Breadth First Search2025–2025 · 5 practice questions · high
- Depth First Search2026–2026 · 3 practice questions · high
- Linear Probing2026–2026 · high
- Number of Swap2025–2025 · 1 practice question · high
- Uniform Hashing2022–2022 · high
- Shortest Path2002–2025 · 6 practice questions · high
- Searching1996–2025 · high
- Matrix Chain Ordering2011–2018 · high
- Algorithm Design Techniques1990–2017 · high
- Huffman Code2007–2021 · 2 practice questions · medium
- Merge Sort1999–2026 · 3 practice questions · medium
- Greedy Algorithms1999–2018 · medium
- Heap Sort2013–2024 · 1 practice question · medium
- Strongly Connected Components2008–2018 · medium
- Topological Sort2007–2016 · 2 practice questions · medium
- Dijkstras Algorithm1996–2008 · medium
- Bellman Ford2009–2013 · low
- Merging1995–2014 · low
- Selection Sort2009–2013 · low
- Insertion Sort2003–2003 · low
- Inversion2003–2003 · low
- Maximum Minimum2014–2014 · low
- Space Complexity2005–2005 · 1 practice question · low
- Prims Algorithmanalysed topic · low
- Tree Traversalanalysed topic · low
- Bubble Sort1995–1995 · low
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
Your preparation can be even smarter
Create a free account to keep your practice history, see where you are weak and continue where you left off.
- Save your practice history
- Track accuracy and weak topics
- Try the first 10 questions of every chapter free
- Practise every subject and topic
