Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged time-complexity
0
0 votes
2
2 answers
961
961 views
Dijkstra’s algorithm on directed graph with negative edges – expected output?
Vishal_Huneria
961
views
asked
Dec 28, 2025
Algorithms
dijkstras-algorithm
shortest-path
graph-algorithms
algorithms
time-complexity
+
–
4
4 votes
1
1 answer
557
557 views
Ace Test series
Someone help with this...I am getting option-b but key is opt-aa)b)c)d)
Prem Sai Kodi
557
views
asked
Dec 13, 2025
Data Structures
linked-list
time-complexity
ace-test-series
+
–
0
0 votes
1
1 answer
328
328 views
Algorithms doubt
You were given an array of distinct elements of size n with indices starting from 0.-Every $(2i)^{th}$ element is pushed into a stack.-Every $(2i+1)^{th}$ element is enqu...
vishnusainune
328
views
asked
Dec 3, 2025
Algorithms
algorithms
time-complexity
stack
queue
data-structures
array
self-doubt
+
–
1
1 vote
2
answers
2 answers
619
619 views
Self Doubt
O(n)∗Ω(n)+Θ(n) = ?1.O(n)2.Ω(n)3.Θ(n)4. none
vishal_prasad_singh
619
views
asked
Nov 5, 2025
Algorithms
algorithms
time-complexity
asymptotic-notations
self-doubt
+
–
2
2 votes
1
1 answer
649
649 views
Homework
What is the complexity of the following using Big O:
Amad_Os
649
views
asked
Oct 24, 2025
Algorithms
time-complexity
algorithms
asymptotic-notations
+
–
1
1 vote
1
1 answer
420
420 views
UGC NET CSE | January 2025 | Part 2 | Question: 63
Match the LIST-I with LIST-II$\begin{array}{|l|l|l|l|} \hline & \textbf{LIST-I} & & \textbf{LIST-II} \\ & \textbf{Algorithm} & & \textbf{Complexity} \\ \hline \text{A.}...
Shubham Sharma 2
420
views
asked
Sep 10, 2025
Algorithms
ugcnetcse-jan2025
algorithm-design
sorting
time-complexity
+
–
1
1 vote
1
1 answer
414
414 views
UGC NET CSE | August 2024 | Part 2 | Question: 49
Arrange the following recurrence relations in increasing order of their time capacity.$\mathrm{T}(\mathrm{n})=\mathrm{T}(\mathrm{n} / 2)+1$$\mathrm{T}(\mathrm{n})=2 \math...
Shubham Sharma 2
414
views
asked
Sep 9, 2025
Algorithms
ugcnetcse-aug2024
recurrence-relation
time-complexity
algorithm-design
asymptotic-notations
+
–
0
0 votes
1
1 answer
408
408 views
UGC NET CSE | August 2024 | Part 2 | Question: 78
Match List - I with List - II.$\begin{array}{llll} & \textbf{List - I} & & \textbf{List-II} \\ & \textbf{(Recurrence Relations)} && \textbf{(Complexity)} \\ \text{(A)}& \...
Shubham Sharma 2
408
views
asked
Sep 9, 2025
Algorithms
ugcnetcse-aug2024
recurrence-relation
time-complexity
algorithm-design
analysis
+
–
2
2 votes
3
3 answers
406
406 views
UGC NET CSE | December 2023 | Part 2 | Question: 3
Which of the following is $\text{TRUE}?$The cost of searching an AVL tree is $\theta(\log n)$ but that of binary search is $0(n)$The cost of searching an AVL tree in $\th...
Shubham Sharma 2
406
views
asked
Sep 9, 2025
Data Structures
ugcnetcse-dec2023
data-structures
binary-search-tree
avl-tree
searching
time-complexity
+
–
1
1 vote
1
1 answer
419
419 views
CMI CS 2025 | Part B | Question: 6c
We have an array $A$ of $n$ numbers, where $n$ is a power of $2$.We build a full binary tree on top of the array $A.$ The elements of the array are leaves of the tree, nu...
jothee_new
419
views
asked
Sep 8, 2025
Data Structures
cmi2025
data-structures
array
binary-tree
time-complexity
algorithms
descriptive
+
–
1
1 vote
1
1 answer
318
318 views
CMI CS 2025 | Part B | Question: 6b
We have an array $A$ of $n$ numbers, where $n$ is a power of $2$.We build a full binary tree on top of the array $A.$ The elements of the array are leaves of the tree, nu...
jothee_new
318
views
asked
Sep 8, 2025
Data Structures
cmi2025
data-structures
array
binary-tree
time-complexity
algorithms
descriptive
+
–
3
3 votes
1
1 answer
228
228 views
NIELIT Scientific Assistant June 2025 | Question: 107
Which of the following operations can be performed in $\mathrm{O}(\log n)$ time in a binary heap?Deleting the root elementInserting an elementBoth $\text{(A)}$ and $\text...
Shubham Sharma 2
228
views
asked
Jul 24, 2025
Data Structures
nielit-sta-2025
binary-heap
data-structures
time-complexity
sorting
+
–
1
1 vote
0
0 answers
151
151 views
NIELIT Scientific Assistant June 2025 | Question: 63
What is the time complexity for searching an element in a balanced Binary Search Tree?$\text{O}(1)$$\text{O}(\log n)$$\text{O}(n)$$\text{O}(n \log n)$
Shubham Sharma 2
151
views
asked
Jul 24, 2025
Data Structures
nielit-sta-2025
data-structures
binary-search-tree
time-complexity
+
–
1
1 vote
1
1 answer
151
151 views
NIELIT Scientific Assistant June 2025 | Question: 76
Which of the following is the correct asymptotic notation for an algorithm that grows slower than $\text{O}\left(n^{\wedge} 2\right)$ but faster than $\text{O}(n)?$$\text...
Shubham Sharma 2
151
views
asked
Jul 24, 2025
Algorithms
nielit-sta-2025
asymptotic-notations
algorithm-design
time-complexity
+
–
2
2 votes
1
1 answer
587
587 views
CMI CS 2025 | Part B | Question: 6a
We have an array $A$ of $n$ numbers, where $n$ is a power of $2$.We build a full binary tree on top of the array $A.$ The elements of the array are leaves of the tree, nu...
Shubham Sharma 2
587
views
asked
Jun 20, 2025
Data Structures
cmi2025
data-structures
array
binary-tree
time-complexity
algorithms
descriptive
+
–
5
5 votes
4
4 answers
497
497 views
CMI CS 2025 | Part A | Question: 9
The next two questions pertain to the following code which takes a non-negative integer as input}.function FOO(n) if (n=0) then return 0 else if (n=1) then return 1 else ...
Shubham Sharma 2
497
views
asked
Jun 20, 2025
Algorithms
cmi2025
algorithms
recursion
time-complexity
+
–
2
2 votes
1
1 answer
503
503 views
TIFR CSE 2025 | Part B | Question: 1
What is the solution to the following recursion?$$\begin{array}{l}T(n)=T\left(\dfrac{n}{2}\right)+T\left(\dfrac{n}{3}\right)+T\left(\dfrac{n}{6}\right)+O(n), \\T(n)=5 \qu...
Shubham Sharma 2
503
views
asked
Jun 16, 2025
Algorithms
tifr2025
algorithms
time-complexity
recursion
+
–
3
3 votes
2
2 answers
569
569 views
TIFR CSE 2025 | Part B | Question: 11
Recall the insertion sort algorithm: procedure INSERTIONSORT(A) for i ← 1 to A.length - 1 do key ← A[i] j ← i - 1 while j ≥ 0 and A[j] key do A[j + ...
Shubham Sharma 2
569
views
asked
Jun 16, 2025
Algorithms
tifr2025
algorithms
sorting
insertion-sort
time-complexity
+
–
2
2 votes
0
0 answers
397
397 views
TIFR CSE 2025 | Part B | Question: 13
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...
Shubham Sharma 2
397
views
asked
Jun 16, 2025
Algorithms
tifr2025
algorithms
randomized-algorithms
sorting
time-complexity
+
–
1
1 vote
2
2 answers
382
382 views
ISI2025-MCS-PCB (CS) | Question: 1
Given an array $A=\left(a_{0}, a_{1}, \ldots, a_{n-1}\right)$ of integers, your task is to determine the maximum possible sum\[\operatorname{maxsum}(A)=\max _{0 \leq s \l...
Shubham Sharma 2
382
views
asked
Jun 12, 2025
Algorithms
isi2025-mcs-pcb
algorithms
maximum-subarray
algorithm-design
time-complexity
array
+
–
2
2 votes
1
1 answer
472
472 views
ISI2025-MCS-PCB (CS) | Question: 4
Let $R$ be the root of a balanced binary search tree having $n$ nodes, where each node contains an integer, a pointer to its left child and a pointer to its right child. ...
Shubham Sharma 2
472
views
asked
Jun 12, 2025
Data Structures
isi2025-mcs-pcb
data-structures
binary-search-tree
time-complexity
+
–
0
0 votes
3
3 answers
395
395 views
ISI2025-MCS-PCA | Question: 11
For functions $f, g: \mathbb{N} \rightarrow \mathbb{R}$, we say that $f$ is $o(g)$ (in words, $f$ is $little-oh$ of $g$ ) if $\lim _{n \rightarrow \infty} \frac{f(n)}{g(...
Shubham Sharma 2
395
views
asked
Jun 9, 2025
Algorithms
isi2025-mcs-pca
algorithms
asymptotic-notations
time-complexity
+
–
Page:
« prev
1
2
3
4
5
6
7
...
59
next »