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}}}$$

0 0 votes
0 0 answers
530
530 views
0 0 votes
0 0 answers
456
456 views
1 question:a) Calculate the running time of the following iterative algorithm. For this purpose, write the working time of each row in the corresponding column of the tab...
0 0 votes
1 1 answer
958
958 views
How to approach for this question?
4 4 votes
1 1 answer
3.0k
3.0k views
What is the time complexity of the following function?void myfun() { int a,b; for(a=1; a<=n; a++) for(b=1; b<=log(a); b++) printf(“My Function”); }$\theta (n)$$\theta (n^...
1 1 vote
0 0 answers
1.2k
1.2k views
Consider the directed graph shown in the figure below. There are multiple shortest paths between vertices $\text{S}$ and $\text{T}$. Which one will be reported by Dijkstr...
1 1 vote
0 0 answers
696
696 views
The number of distinct minimum spanning trees for the weighted graph below is ________.$4$$5$$6$$7$
1 1 vote
1 1 answer
735
735 views
A Young tableau is a $\text{2D}$ array of integers increasing from left to right and from top to bottom. Any unfilled entries are marked with $\infty$, and hence there ca...
1 1 vote
0 0 answers
1.1k
1.1k views
Suppose we are sorting an array of eight integers using heapsort, and we have just finished some heapify (either maxheapify or minheapify) operations. The array now looks...
0 0 votes
0 0 answers
848
848 views
What is the time complexity of the following recursive function?int ComputFun(int n) { if(n<=2) return 1; else return (DoSomething(floor(sqrt(n)))+n); }$\Theta(n)$$\Theta...
2 2 votes
2 2 answers
574
574 views
What is the time complexity of the below mentioned recursive function.int f(n){ if(n!=1){ return f(n/2)+f(n/2);}elsereturn 10;} O(n)O(n^2)O(log n)O(n logn)
1 1 vote
2 2 answers
1.0k
1.0k views
In Quicksort of the following numbers, if the pivot is chosen as the first element, what will be the order of the numbers after the use of partition function? Assume we a...
1 1 vote
0 0 answers
940
940 views
0 0 votes
1 answers 1 answer
11.0k
11.0k views
How do I apply the master theorem in the above recurrence? Please give details about which case and on hiow to solve the asymptotic analysis...
1 1 vote
1 1 answer
484
484 views
Kindly help
0 0 votes
1 1 answer
1.7k
1.7k views
As we know the time complexity of solving the greedy knapsack algorithm depends mainly on the sorting algorithm used, Can we use counting sort as the sorting algorithm to...
114 114 votes
4 answers 4 answers
35.7k
35.7k views
Which one of the following statements is $\text{TRUE}$ for all positive functions $f(n)?$$f(n^{2}) = \theta (f(n)^{2}),$ when $f(n)$ is a polynomial$f(n^{2}) = o (f(n)^{2...
53 53 votes
7 answers 7 answers
24.3k
24.3k views
​​​Suppose we are given $n$ keys, $m$ hash table slots, and two simple uniform hash functions $h_{1}$ and $h_{2}.$ Further suppose our hashing scheme uses $h_{1}$ for the...
54 54 votes
4 answers 4 answers
28.1k
28.1k views
Consider a simple undirected weighted graph $\textit{G},$ all of whose edge weights are distinct. Which of the following statements about the minimum spanning trees of $\...
86 86 votes
13 answers 13 answers
24.1k
24.1k views
Let $\textit{G(V,E)}$ be a directed graph, where $\textit{V} = \{ 1, 2, 3, 4, 5 \}$ is the set of vertices and $\textit{E}$ is the set of directed edges, as defined by th...