GATE CSE Concept Authority Hub

Algorithms Solved GATE Questions

Analyze greedy selections, dynamic programming, recurrence relations, graph search, and worst-case sorting comparisons.

Indexed Doubts 11 Questions
Core Syllabus Focus GATE & ISRO CS

Practice Questions (11)

NQuestions1010

Bellman-Ford Relaxations Count

Consider a directed graph $G=(V,E)$ with negative edge weights, but no negative weight cycles. Let $|V| = 100$ and $|E| = 1000$. What is the maximum n...

Asked by NileshNama Votes: 20 | Views: 131
NQuestions1008

Huffman Coding Average Bits Per Character

Consider a set of 5 symbols $\{A, B, C, D, E\}$ with probabilities $0.35$, $0.25$, $0.20$, $0.15$, and $0.05$ respectively. If we construct an optimal...

Asked by Ananya_Sharma Votes: 19 | Views: 128
NQuestions1009

NP-Completeness and Polynomial Time Reductions

Let $L_1$ and $L_2$ be two languages such that $L_1 \le_p L_2$ (that is, $L_1$ is polynomial-time reducible to $L_2$). Which of the following statemen...

Asked by Rahul_Mehta Votes: 19 | Views: 131
NQuestions1007

Asymptotic Upper Bounds for Logarithmic Functions

Let $f(n) = \log(n!)$ and $g(n) = n \log n$. Which of the following relations is **TRUE**?...

Asked by Kiran_Kumar Votes: 18 | Views: 116
NQuestions1006

Matrix Chain Multiplication Optimal Calculations

We want to compute the optimal parenthesization of a matrix chain product $A_1 A_2 A_3 A_4$ with dimensions $10 \times 20$, $20 \times 30$, $30 \times...

Asked by Pradyumna_Rao Votes: 16 | Views: 106
NQuestions1005

Minimum Spanning Tree Edge Inclusion

Let $G=(V,E)$ be a connected, undirected graph with distinct edge weights. Let $e$ be the edge with the minimum weight in $G$. Which of the following ...

Asked by NileshNama Votes: 15 | Views: 102
NQuestions1004

Dijkstra's Algorithm and Negative Edge Weights

Suppose Dijkstra's single-source shortest path algorithm is run on a directed graph $G=(V,E)$ with source $s$. If some edge weights are negative, whic...

Asked by Rahul_Mehta Votes: 15 | Views: 101
NQuestions1003

Worst-Case Comparisons in Heap Sort vs Quick Sort

Let $N$ be the number of elements in an array. What is the worst-case number of comparisons required to sort this array using Heap Sort and Quick Sort...

Asked by Ananya_Sharma Votes: 13 | Views: 137
NQuestions1002

Optimal Substructure in Floyd-Warshall Algorithm

In the Floyd-Warshall all-pairs shortest paths algorithm, let $d_{ij}^{(k)}$ be the weight of the shortest path from vertex $i$ to vertex $v_j$ for wh...

Asked by Kiran_Kumar Votes: 12 | Views: 68
NQuestions1001

Master Theorem and Recurrence Relations

Consider the recurrence relation: $T(n) = 3T(n/4) + n \log n$ Which of the following describes the tight asymptotic complexity of $T(n)$?...

Asked by Pradyumna_Rao Votes: 11 | Views: 59
NQuery1780110217080

Heloooooooooooooooooooooooooooooooooooooooooooooooooooooo

Heloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo...

Asked by Veb_Glitch Votes: 3 | Views: 59

Explore Other GATE CSE Subjects

Theory of ComputationOperating SystemsComputer NetworksDatabase Management SystemsEngineering MathematicsComputer Organization and ArchitectureDigital LogicData StructuresCompiler Design