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|c|c|c|c|c|c|}\hline \textbf{Year}& \textbf{2026 - 1}& \textbf{2026 - 2}& \textbf{2025 - 1}& \textbf{2025 - 2}& \textbf{2024 - 1}& \textbf{2024 - 2}& \textbf{2023}& \textbf{2022}& \textbf{2021 - 1}& \textbf{2021 - 2}&\textbf{Minimum}&\textbf{Average}&\textbf{Maximum}\\\hline \textbf{1 Mark Count}&4&4&2&2&1&2&2&2&3&2&1&2.4&4\\\hline \textbf{2 Marks Count}&6&4&3&3&4&2&2&2&3&4&2&3.3&6\\\hline \textbf{Total Marks}&16&12&8&8&9&6&6&6&9&10&\bf{6}&\bf{9}&\bf{16}\\\hline \end{array}}}$$

Questions without answers in Algorithms

0 0 votes
0 0 answers
69
69 views
Q.${Solve}$ ${Recurrence}$.$T(n) = T\left(\frac{n}{15}\right) + T\left(\frac{n}{10}\right) + 2T\left(\frac{n}{6}\right) + \sqrt{n}$ 
0 0 votes
0 0 answers
101
101 views
0 0 votes
0 0 answers
121
121 views
Arrange the following algorithms from the most efficient to least efficient based on their time complexity.Kruskal's AlgorithmBreadth first search AlgorithmBellman-Ford A...
0 0 votes
0 0 answers
346
346 views
In dynamic programming,$\verb|A[i][j]|$ is a term, for $1 \leq \verb|i|, \verb|j| \leq n$$\verb|A[0][k] = A[k][0] = 0|$$\verb|A[i][j] = 2A[i-1][j] + 3A[i][j-1]|$Which of ...
1 1 vote
0 0 answers
121
121 views
(a) Show that sorting all small subarrays using Insertion Sort takes Θ(n) worst-case time.(b) Show that the merging work done above this cutoff level takes Θ(n log n) wor...
0 0 votes
0 0 answers
422
422 views
In this question why option C is correct and option B is wrong?
0 0 votes
0 0 answers
371
371 views
hey i am trying to solve this question GATE CSE 2015 Set 1 | Question: 43 so what is my doubt is if i take the dijkstras algo for mcst then this is right but when i am tr...
1 1 vote
0 0 answers
334
334 views
Consider the following algorithm findCenterAlgo that takes a tree $T$ as input.findCenterAlgo (T)1. Let $T_{\text {current }}$ be a copy of the input tree $T$.2. While th...
0 0 votes
0 0 answers
222
222 views
Which of the followings is Not a parent selection technique used in genetic algorithm implementationsRadialTournamentBoltzmannRank
0 0 votes
0 0 answers
195
195 views
Arrange the following encoding strategies used in Genetic Algorithms (GAs) in the correct sequence starting from the initial step and ending with the final representation...
0 0 votes
0 0 answers
111
111 views
Consider the Code fragment of code written in C:Int bar(int n){ if(n <= 10){ return 0; } if( n < 100){ Int r = 0; for(int i = 0; i < n; i + +){ r++; } return r; } return ...
0 0 votes
0 0 answers
190
190 views
Q - check whether (logn)! is polynomially bounded ?given ans - condtion for the function f(n) to be polynomially bounded ( f(n) = O(logn) ). ...
1 1 vote
0 0 answers
275
275 views
0 0 votes
0 0 answers
244
244 views
How can we make a DFS tree and a BFS tree of a graph?
0 0 votes
0 0 answers
328
328 views
9. Application of mergesort _________A. Graphic cardB. NetworkingC. Card SortingD. Data Processing
1 1 vote
0 0 answers
237
237 views
8. Application of quicksort _________A. Graphic cardB. Data ProcessingC. Tape sortingD. Card Sorting 
0 0 votes
0 0 answers
140
140 views
The $\text{LU}$ factorization requires:$\dfrac{n^{3}}{6}-\dfrac{n}{5}$ multiplication/division$\dfrac{n^{3}}{3}-\dfrac{n^{2}}{2}+\dfrac{n}{6}$ addition/subtraction$\dfrac...
0 0 votes
0 0 answers
201
201 views
The following question appeared in a quiz:$\text{}$“Write the pseudocode for a function $\textit{Closest}(A, n, x)$ that takes an array $A$, a positive integer $n$, and a...
1 1 vote
0 0 answers
392
392 views
Let $G=(V, E)$ be a weighted, undirected and connected graph, with weight $1 \leq$ $\mathrm{wt}_{G}(e) \leq 99$ for edge $e \in E$. Suppose $G^{\prime}$ is the graph with...
2 2 votes
0 0 answers
392
392 views
There are $n$ people in a house and $n$ pairs of shoes such that the $i$-th shoe fits the $i$-th person's feet (and no one else's). A burglar comes and throws the shoes a...
1 1 vote
0 0 answers
474
474 views
Consider the following function job(), which takes two positive integers $x$ and $y$, and returns another integer.int job(int x, int y) {if (x y) return x;else if (x y) ...
0 0 votes
0 0 answers
319
319 views
Suppose $X=\left(x_{1}, x_{2}, \ldots, x_{n}\right)$ is an array of numbers (not necessarily integers) sorted in the ascending order, and $Y=\left(y_{1}, y_{2}, \ldots, y...
0 0 votes
0 0 answers
262
262 views
Suppose $X=\left(x_{1}, x_{2}, \ldots, x_{n}\right)$ is an array of numbers (not necessarily integers) sorted in the ascending order, and $Y=\left(y_{1}, y_{2}, \ldots, y...
1 1 vote
0 0 answers
400
400 views
Are the following statements correct? Can someone please verify? My doubt is related to how function grows when we talk about small and big notation.f(n) is asymptoticall...
0 0 votes
0 0 answers
314
314 views
Please give me suggestion I am Good at conceptual in algorithms but i am issue facing at Find time complexity of any problem.What Can i do resolve this problem .I revised...
0 0 votes
0 0 answers
225
225 views
You are given a strange, analogue wall clock whose hour and minute hands are identical. Both the hands move continuously and there is no second hand. How many times are t...
0 0 votes
0 0 answers
185
185 views
An electronic card shuffling machine always rearranges the cards in the same way relative to the order in which they are placed in it. One iteration of shuffling means th...
0 0 votes
0 0 answers
151
151 views
Let $\mathrm{A}, \mathrm{B}$ and C denote arrays of real numbers, where B has $\mathrm{n}-1$ entries and $\mathrm{A}, \mathrm{C}$ have n entries each. Consider the follow...
To see more, click for the full list of questions or popular tags.