Web Page

Searching, Sorting, Hashing, Asymptotic worst case time and Space complexity, Algorithm design techniques: Greedy, Dynamic programming, and Divide‐and‐conquer, Graph search, Minimum spanning trees, Shortest paths.

$$\scriptsize{\overset{{\large{\textbf{Mark Distribution in Previous GATE}}}}{\begin{array}{|c|c|c|c|c|c|c|c|}\hline
\textbf{Year}& \textbf{2022} & \textbf{2021-1}&\textbf{2021-2}&\textbf{2020}&\textbf{2019}&\textbf{2018}&\textbf{2017-1}&\textbf{2017-2}&\textbf{2016-1}&\textbf{2016-2}&\textbf{Minimum}&\textbf{Average}&\textbf{Maximum}
\\\hline\textbf{1 Mark Count} & 2 &3&2&3&2&0&2&2&3&3&0&2.2&3
\\\hline\textbf{2 Marks Count} & 2 &3&4&4&2&4&2&3&2&3&2&2.9&4
\\\hline\textbf{Total Marks} & 6 &9&10&11&6&8&6&8&7&9&\bf{6}&\bf{8}&\bf{11}\\\hline
\end{array}}}$$

Most answered questions in Algorithms

2 votes
1 answer
2161
If a simple undirected graph with positive weighted edges has 10 vertices and 30 edges, such that the cost of the Minimum Spanning tree is 59. Now, if all the edges weigh...
1 votes
1 answer
2162
In a sorted array, every element is repeated more than once except one. what will be the time complexity to find that element in the worst case?
0 votes
1 answer
2163
Consider the statements True/ FalseBellman Ford algorithm reports a shortest path from source to a destination only in a directed graph which has a negative cycle.
2 votes
1 answer
2164
Given a set of sorted files f1,f2,f3,f4,f5 of lengths 99,27,71,199,259 we need to merge these files into a single sorted file Using Optimal Merge Pattern.
0 votes
1 answer
2165
In the context of merge sort, which of the following are true?$1.\ T(n)\ =\ o(n^2)\\ 2.\ T(n)\ =\ O(n^2)\\3.\ T(n)\ =\ \omega(n)\\4.\ T(n)\ =\ \Omega(n) $
0 votes
1 answer
2166
0 votes
1 answer
2170
What is the time complexity of the following code snippet? Assume x is a global variable and “statement” takes O(n) time?
0 votes
1 answer
2171
Can BFS and DFS both work cyclic and acyclic graphs?! Kindly explain for each of 'em. Thank you!
0 votes
1 answer
2173
Consider this array [ 2,2,2,1,1,1,1,1,0,0,0 ].Find the min. no. of swaps needed for this array to be sorted in asc. order using:a) bubble sortb) insertion sort
1 votes
1 answer
2174
3 votes
1 answer
2176
Arrange the following functions in asymptotically increasing orderf1(n) = n0.999999 log nf2(n) = 10000000nf3(n) = 1.000001nf4(n) = n2According to me it should be f2, f1, ...
0 votes
1 answer
2178
Are MST and shortest path tree identical?T/F? with reasoning.
3 votes
1 answer
2179
T(n) = T(n/2) + 2T(n/5) + T(n/10) + 4nWhat is the time complexity for the recursion above?
1 votes
1 answer
2180
Worst case time complexity of following code? Please explain in detail.void function(int n) { int count = 0; for (int i=0; i<n; i++) for (int j=i; j< i*i; j++) if (j%i ==...