Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Algorithms
Recent questions tagged algorithms
2
2 votes
1
1 answer
124
124 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Complexity
For $T(n,n)$, consider:$T(x,c) = \Theta(x)$ for $c \leq 2$$T(x,y) = \Theta(x) + S(x,y/2)$$S(c,y) = \Theta(y)$ for $c \leq 2$$S(x,y) = \Theta(y) + T(x/2,y)$What is the asy...
GO Classes
124
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-238
goclasses-cs-dpp
goclasses-cs-dpp-day-336
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
2
2 votes
1
1 answer
111
111 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Complexity
For $T(n,n)$, consider:$T(x,c) = \Theta(x)$ for $c \leq 2$$T(c,y) = \Theta(y)$ for $c \leq 2$$T(x,y) = \Theta(x) + T(x,y/2)$ What is the asymptotic complexity of $T(n,n)$...
GO Classes
111
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-238
goclasses-cs-dpp
goclasses-cs-dpp-day-336
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
2
2 votes
1
1 answer
126
126 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Complexity
For $T(n,n)$, consider:$T(x,c) = \Theta(x)$ for $c \leq 2$$T(c,y) = \Theta(y)$ for $c \leq 2$$T(x,y) = \Theta(x+y) + T(x/2,y/2)$What is the asymptotic complexity of $T(n,...
GO Classes
126
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-238
goclasses-cs-dpp
goclasses-cs-dpp-day-336
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
4
4 votes
1
1 answer
129
129 views
GO Classes DPP | GATE CS | Algorithms | Code Complexity
Consider the following recursive C function:int fun(int n) { if (n <= 1) { return n; } else { return fun(n - 1) + fun(n - 2); } }What is the time complexity of $\texttt{f...
GO Classes
129
views
asked
Jul 29
Algorithms
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-335
algorithms
goclasses-algo-practice-questions
time-complexity
+
–
1
1 vote
1
1 answer
136
136 views
GO Classes DPP | GATE CS | Algorithms | Code Complexity
Consider the following C code:int total = 0; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { for (int k = 0; k < n; k++) { total += i * j * k; } } }What is th...
GO Classes
136
views
asked
Jul 29
Algorithms
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-335
algorithms
goclasses-algo-practice-questions
time-complexity
+
–
2
2 votes
1
1 answer
114
114 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Growth
Suppose $f(n) \in \Omega(n^2)$.Classify the following statements:$\text{S1}$. $f(n) \in \Omega(n^3)$ $\text{S2}$. $f(n) \in \Omega(n)$ $\text{S3}$. $f(n) \in O(n)$ $\text...
GO Classes
114
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-237
goclasses-cs-dpp
goclasses-cs-dpp-day-335
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
3
3 votes
1
1 answer
122
122 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Growth
Arrange the following functions in increasing order of asymptotic growth:$f_1(n) = n^{\sqrt n}$$f_2(n) = 2^n$$f_3(n) = n^{10}\cdot 2^{n/2}$$f_4(n) = \sum_{i=1}^{n}(i+1)$ ...
GO Classes
122
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-237
goclasses-cs-dpp
goclasses-cs-dpp-day-335
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
2
2 votes
1
1 answer
110
110 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Growth
Arrange the following functions in increasing order of asymptotic growth:$f_1(n) = 2^{2^{1000000}}$$f_2(n) = 2^{100000n}$$f_3(n) = {}^{n}C_{2}$$f_4(n) = n\sqrt n$ $f_1(n)...
GO Classes
110
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-237
goclasses-cs-dpp
goclasses-cs-dpp-day-335
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
3
3 votes
1
1 answer
131
131 views
GO Classes DPP | GATE CS | Algorithms | Loop Complexity
Consider the following C code:int sum = 0; for (int i = 0; i < n; i++) { sum += i; int k = n; while (k 0) { k = k / 2; } }What is the time complexity?$O(n)$ $O(\log n)$ ...
GO Classes
131
views
asked
Jul 29
Algorithms
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-334
algorithms
goclasses-algo-practice-questions
time-complexity
+
–
4
4 votes
1
1 answer
142
142 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Growth
Arrange the following functions in increasing order of asymptotic growth:$f_1(n) = \log(n^n)$$f_2(n) = (\log n)^n$$f_3(n) = \log(n^{6006})$$f_4(n) = (\log n)^{6006}$$f_5(...
GO Classes
142
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-236
goclasses-cs-dpp
goclasses-cs-dpp-day-334
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
4
4 votes
1
1 answer
125
125 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Notations
Suppose we have three functions $f(n)$, $g(n)$, and $h(n)$ such that:$f(n) \in O(g(n))\qquad$ and $\qquad g(n) \in O(h(n))$Which of the following statements are guarantee...
GO Classes
125
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-236
goclasses-cs-dpp
goclasses-cs-dpp-day-334
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
3
3 votes
1
1 answer
122
122 views
GO Classes DPP | GATE CS, DA | Algorithms | Asymptotic Notations
Suppose $g(n) \in \Theta(n^3)$.Which of the following statements are always true?$\text{S1}:$ $g(n) \in O(n^3)$ $\text{S2}:$ $g(n) \in \Theta(n)$ $\text{S3}:$ $g(n) \in \...
GO Classes
122
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-236
goclasses-cs-dpp
goclasses-cs-dpp-day-334
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
4
4 votes
1
1 answer
131
131 views
GO Classes DPP | GATE CS, DA | Algorithms | Growth Order of Functions
Arrange the following functions in increasing order of asymptotic growth:$f_1(n) = n^{0.999999}\log n$ $f_2(n) = 10000000n$ $f_3(n) = 1.000001^n$ $f_4(n) = n^2$ $f_1(n)< ...
GO Classes
131
views
asked
Jul 29
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-236
goclasses-cs-dpp
goclasses-cs-dpp-day-334
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
+
–
1
1 vote
0
0 answers
151
151 views
DFS and Topological Ordering Question (University of California, Berkeley — CS 170)
naveendewangan
151
views
asked
Jul 18
Algorithms
dfs-bfs
topological-sort
algorithms
depth-first-search
directed-acyclic-graph
multiple-selects
+
–
0
0 votes
0
0 answers
3
3 views
Gate 2014 set 2
GATE CSE 2014 | Set 2 | Question: 23The number of distinct minimum spanning trees for the weighted graph shown below is ________.
Nandu_knk
3
views
asked
Jun 26
Algorithms
algorithms
gatecse-2014-set2
minimum-spanning-tree
+
–
5
5 votes
2
2 answers
598
598 views
algorithm
Which of the following statements is/are correct?A.Merge sort always has more number of swaps that comparisonsNumber of comparisons in partition algorithm are same for be...
Akash t
598
views
asked
Jun 16
Algorithms
algorithms
goclasses
goclasses-algorithms-practice-questions
usermod
+
–
0
0 votes
0
0 answers
6
6 views
hint 3,4,5 at root
In how many ways can we insert the elements 1,2,3,4,5,6,7into an empty AVL tree so that no rotations are needed?
puneet_solanki
6
views
asked
May 25
Programming in C
algorithms
+
–
0
0 votes
1
1 answer
73
73 views
GO Classes | IIITH PGEE 2026 | Memory Based | Question: 49
What is the worst-case time complexity of inserting $n^{2}$ elements into an AVL Tree that already contains $n$ elements?
GO Classes
73
views
asked
May 8
IIITH-PGEE
iiith-pgee2026-cs-memorybased
goclasses
algorithms
one-mark
+
–
0
0 votes
2
2 answers
85
85 views
GO Classes | IIITH PGEE 2026 | Memory Based | Question: 50
Which algorithm detects cycles in an undirected graphTopological Sort Prims Union Find Dijkstras
GO Classes
85
views
asked
May 8
IIITH-PGEE
iiith-pgee2026-cs-memorybased
goclasses
algorithms
one-mark
+
–
1
1 vote
1
1 answer
52
52 views
GO Classes | IIITH PGEE 2026 | Memory Based | Question: 51
Stooge Sort is a highly inefficient recursive sorting algorithm that works by repeatedly sorting overlapping portions of the array.The algorithm operates as follows:Compa...
GO Classes
52
views
asked
May 8
IIITH-PGEE
iiith-pgee2026-cs-memorybased
goclasses
algorithms
one-mark
+
–
0
0 votes
1
1 answer
58
58 views
GO Classes | IIITH PGEE 2026 | Memory Based | Question: 52
Given a permutation $a_1, a_2, \ldots, a_n$, where an inversion is defined as a pair $(i, j)$ such that $i < j$ and $a_i a_j$.If the array has at most $n$ inversions, wh...
GO Classes
58
views
asked
May 8
IIITH-PGEE
iiith-pgee2026-cs-memorybased
goclasses
algorithms
one-mark
+
–
0
0 votes
1
1 answer
66
66 views
GO Classes | IIITH PGEE 2026 | Memory Based | Question: 53
GCD time complexity
GO Classes
66
views
asked
May 8
IIITH-PGEE
iiith-pgee2026-cs-memorybased
goclasses
algorithms
one-mark
+
–
0
0 votes
1
1 answer
52
52 views
GO Classes | IIITH PGEE 2026 | Memory Based | Question: 54
Given two algorithms to build a Max Heap from an array of n elements: Program $1$ (Bottom-Up): Apply Heapify at each index starting from $\mathrm{n} / 2$ down to $1$Progr...
GO Classes
52
views
asked
May 8
IIITH-PGEE
iiith-pgee2026-cs-memorybased
goclasses
algorithms
one-mark
+
–
0
0 votes
1
1 answer
55
55 views
GO Classes | IIITH PGEE 2026 | Memory Based | Question: 55
Time Complexity for finding number of connected components
GO Classes
55
views
asked
May 8
IIITH-PGEE
iiith-pgee2026-cs-memorybased
goclasses
algorithms
one-mark
+
–
0
0 votes
1
1 answer
45
45 views
GO Classes | IIITH PGEE 2026 | Memory Based | Question: 57
Time complexity of creating a sorted linked list with n elements. Initially the list is empty.
GO Classes
45
views
asked
May 8
IIITH-PGEE
iiith-pgee2026-cs-memorybased
goclasses
algorithms
one-mark
+
–
0
0 votes
1
1 answer
172
172 views
Quick Sort Space Complexity
1. what is the space Complexity of efficient Quick sort algorithem for best case ? in a lecture Reddy Sir Said that it is O(1) is this correct 2.if in the gate exam if t...
Udit_goyal
172
views
asked
May 6
Algorithms
algorithms
divide-and-conquer
quick-sort
gate-preparation
+
–
0
0 votes
0
0 answers
3
3 views
reddy sir lecture
1.what is the space Complexity of efficient Quick sort algorithem for best case ? in a lecture Reddy Sir Said that it is O(1) is this correct.2. if in the gate exam if th...
Udit_goyal
3
views
asked
May 6
Algorithms
algorithms
divide-and-conquer
quick-sort
gate-preparation
+
–
1
1 vote
1
1 answer
123
123 views
UGC NET CSE | December 2025 | Part 2 | Question: 40
How many number of comparison are required in worst case to find out second smallest element of $n$ elements list?$n+\lceil\log n\rceil-1$$n+\lceil\log n\rceil$$\lceil\lo...
Shubham Sharma 2
123
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
data-structures
algorithms
analysis
+
–
0
0 votes
0
0 answers
111
111 views
UGC NET CSE | December 2025 | Part 2 | Question: 42
Arrange the following algorithms from the most efficient to least efficient based on their time complexity.Kruskal's AlgorithmBreadth first search AlgorithmBellman-Ford A...
Shubham Sharma 2
111
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
algorithms
time-complexity
graph-algorithms
+
–
0
0 votes
1
1 answer
128
128 views
UGC NET CSE | December 2025 | Part 2 | Question: 43
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason RAssertion A: Kruskal's algorithm and Prim's algorithm always produce m...
Shubham Sharma 2
128
views
asked
Apr 19
Algorithms
ugcnetcse-dec2025
minimum-spanning-tree
graph-algorithms
algorithms
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
...
150
next »