Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged time-complexity
2
2 votes
1
1 answer
780
780 views
Made Easy Workbook
int main(){ int c = 0; for(int i = 1; i < n : i++){ for(int j = i + 1; j <= n; j++){ for(int k = 1; k <= j; k++){ c = c + 1; } } } return 0; }What will be the itme comple...
Aman Koli
780
views
asked
Dec 23, 2024
Algorithms
algorithms
asymptotic-notations
time-complexity
+
–
1
1 vote
1
1 answer
554
554 views
Test series question
Suppose the running time complexity of EXTRACT-MAX when applied on d-ary heap of height n is Then, the value of x + y + z is ________.Note: d-ary heap can have maximum d...
usher
554
views
asked
Dec 15, 2024
Algorithms
algorithms
time-complexity
numerical-answers
test-series
+
–
0
0 votes
0
0 answers
312
312 views
Time Complexity Analysis
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...
Vennapusa_Gurunath_r
312
views
asked
Dec 12, 2024
Algorithms
time-complexity
+
–
0
0 votes
0
0 answers
146
146 views
CMI 2023 | Data Science | Part A | Question: 18
Consider the pseudocode below, where $\mathrm{n} \% 6$ denotes the remainder when n is divided by 6 . The notation $n / / 2$ stands for integer division, i.e., $15 / / 2=...
Ay_Kay_Ay
146
views
asked
Dec 2, 2024
Algorithms
cmi2023-datascience-part-a
algorithm-design
recursion
time-complexity
+
–
1
1 vote
1
1 answer
247
247 views
California State University , Long Beach
An algorithm takes as input an nxn Boolean matrix A . If the running time of the algortihm is T(n) = O(nlogn) when n is used as the input size parameter , then which of t...
Krishna_Srinivas_Pon
247
views
asked
Nov 29, 2024
Algorithms
algorithms
time-complexity
+
–
0
0 votes
1
1 answer
294
294 views
Test Series
int fun(int n) { int i, j; for(i=1; i<=n; i++) { for (j=1; j<n; j+=i) { printf("%d %d", i, j); } }}Function_1 while ...
KrishnaVardhan
294
views
asked
Nov 29, 2024
Algorithms
algorithms
time-complexity
test-series
+
–
0
0 votes
1
1 answer
227
227 views
Question mentioned in Lecture 67 of Neso Academy course (Design & Analysis of Algorithms)
Determine the time complexity of the following loop : for ( int i = 1 ; i <= n ; i++ ) { for ( int j = 1 ; j <= i ; j *= 2) { printf ("Hi") ; } }A. O(n...
rajeshposts
227
views
asked
Nov 28, 2024
Algorithms
algorithms
time-complexity
+
–
1
1 vote
0
0 answers
225
225 views
CMI2024-B: 1
A binary search tree is a binary tree whose proper subtrees are binary search trees, and whose root is strictly greater than all elements in the left subtree, and strictl...
admin
225
views
asked
Nov 25, 2024
Data Structures
cmi2024
data-structures
binary-search-tree
algorithm-design
time-complexity
+
–
0
0 votes
1
1 answer
473
473 views
Dijkstra Algorithm
What is the Time Complexity of the Dijkstra when it is using Adjacency list + Array (sorted or unsorted ) ? If it is O( V^2 + E ) then ,According to the General form of A...
Neeraj_patel
473
views
asked
Nov 14, 2024
Algorithms
algorithms
dijkstras-algorithm
time-complexity
+
–
0
0 votes
0
0 answers
278
278 views
CMI2023-B: 6
The input to the problem consists of (i) an array $A[1,2, \ldots, n]$ of $n$ positive integers and (ii) a positive integer $T$. We are given the guarantee that at least o...
admin
278
views
asked
Nov 13, 2024
Algorithms
cmi2023
algorithm-design
dynamic-programming
array
cmi2023-datascience-part-b
time-complexity
+
–
0
0 votes
0
0 answers
129
129 views
ISI2022 - MCS - PCB - Math | Question: 6
Let $A[0 \ldots n-1]$ and $B[0 \ldots n-1]$ be two arrays containing $n$ real numbers such that $A[k] \leq A[k+1]$ and $B[k] \leq B[k+1]$ for all $k \in\{0,1, \ldots, n-2...
admin
129
views
asked
Oct 18, 2024
Algorithms
isi2022-mcs-pcb-math
algorithms
data-structures
time-complexity
complex-number
+
–
0
0 votes
1
1 answer
227
227 views
ISI2022 - MCS - PCB (CS) | Question: 6
Let $A[0 \ldots n-1]$ and $B[0 \ldots n-1]$ be two arrays containing $n$ real numbers such that $A[k] \leq A[k+1]$ and $B[k] \leq B[k+1]$ for all $k \in\{0,1, \ldots, n-2...
admin
227
views
asked
Oct 18, 2024
Algorithms
isi2022-mcs-pcb-cs
algorithms
time-complexity
array
complex-number
+
–
2
2 votes
1
1 answer
386
386 views
Time Complexity Self Doubt
Even though there are two for loops some times the Time complexity will be the m+n and some times it will be m*n assuming loops run till m and n respectively.How do we di...
KrishnaVardhan
386
views
asked
Oct 7, 2024
Algorithms
time-complexity
algorithms
+
–
3
3 votes
1
answers
1 answer
651
651 views
Recurrence Relation, Jeff Erickson
Can Somebody help me solve these recurrences?What is the method generally employed to solve questions of this type?Taken from https://jeffe.cs.illinois.edu/teaching/algor...
himanshu2001
651
views
asked
Sep 29, 2024
Algorithms
recurrence-relation
algorithms
relations
time-complexity
+
–
1
1 vote
1
1 answer
1.2k
1.2k views
ISRO CSE 2023 | Question: 41
Time complexity to find the diameter of a binary tree having $n$ nodes is$O\left(n^{2}\right)$$O(n)$$O(1)$$O(\log n)$
admin
1.2k
views
asked
Sep 28, 2024
Data Structures
isro-cse-2023
binary-tree
time-complexity
data-structures
+
–
3
3 votes
1
1 answer
944
944 views
ISRO CSE 2023 | Question: 47
The asymptotic complexity of 4 functions $f_{1}, f_{2}, f_{3}, f_{4}$ are$f_{1}(n)=2^{n}$$f_{2}(n)=n^{(3 / 2)}$$f_{3}(n)=n \log n$$f_{4}(n)=n^{(\log n)}$Arrange them in i...
admin
944
views
asked
Sep 28, 2024
Algorithms
isro-cse-2023
asymptotic-notations
time-complexity
algorithm-design
+
–
3
3 votes
2
answers
2 answers
1.1k
1.1k views
ISRO CSE 2023 | Question: 72
The complexity of matrix multiplication of two matrices A and B whose orders are $\mathrm{m} \times \mathrm{n}$ and $\mathrm{n} \times \mathrm{p}$ respectively is$\mathrm...
admin
1.1k
views
asked
Sep 28, 2024
Digital Logic
isro-cse-2023
algorithms
time-complexity
matrix-chain-ordering
+
–
1
1 vote
1
1 answer
290
290 views
Self
What is the time complexity of T(n) = T(n/2) + n*(2-cos n)Also try to apply master theorem (Cormen version).
gopal_gate
290
views
asked
Sep 27, 2024
Data Structures
self-doubt
time-complexity
+
–
0
0 votes
3
3 answers
607
607 views
ISI2024-MCS-PCB (CS) | Question: 5
Let $A=\left\{a_{1}, a_{2}, \ldots, a_{n}\right\}$ and $B=\left\{b_{1}, b_{2}, \ldots b_{m}\right\}$ be two sorted arrays of $n$ and $m$ numbers, respectively. Devise an ...
admin
607
views
asked
Sep 16, 2024
Algorithms
isi2024-mcs-pcb-cs
algorithm-design
sorting
array
time-complexity
comparison-count
+
–
0
0 votes
1
1 answer
692
692 views
GO Classes Test Series | Data Structures and Algorithms | Topic Wise Test 2 | Question: 5
What is the time complexity of code given?def fun(n): count = 0 i = n while i>0 : for j in range(i): count += 1 i //= 2 return count$\Theta(\log n)$$\Theta(n)$$\Theta(n \...
GO Classes
692
views
asked
Sep 16, 2024
Algorithms
goclasses_da_dsa_tw2
goclasses
algorithms
asymptotic-notations
time-complexity
one-mark
+
–
1
1 vote
2
2 answers
464
464 views
GO Classes Test Series | Data Structures and Algorithms | Topic Wise Test 2 | Question: 6
Consider $\text{Iterated logarithm}$ of $n,$ written $\log^\ast n$ (usually read "$\log$ star $n$"), is the number of times the logarithm (base $2$) function must be iter...
GO Classes
464
views
asked
Sep 16, 2024
Algorithms
goclasses_da_dsa_tw2
goclasses
algorithms
asymptotic-notations
time-complexity
two-marks
multiple-selects
+
–
5
5 votes
1
1 answer
491
491 views
GO Classes Test Series | Data Structures and Algorithms | Topic Wise Test 2 | Question: 7
Consider the following $\text{C}$ function:def fun1(n): q = 0 for i in range(1, n): p = 0 j = n while j 1: p += 1 j = j // 2 k = 1 while k < p: q += 1 k = k * 2 return q...
GO Classes
491
views
asked
Sep 16, 2024
Algorithms
goclasses_da_dsa_tw2
goclasses
algorithms
asymptotic-notations
time-complexity
two-marks
+
–
6
6 votes
2
2 answers
508
508 views
GO Classes Test Series | Data Structures and Algorithms | Topic Wise Test 2 | Question: 8
What will be the time complexity of following code?def mystery(N): i = 1 s = 1 while s <= N: i += 1 s = s + i$\Theta(\sqrt{N})$$\Theta(N)$$\Theta(\log N)$$\Theta\left((\l...
GO Classes
508
views
asked
Sep 16, 2024
Algorithms
goclasses_da_dsa_tw2
goclasses
algorithms
asymptotic-notations
time-complexity
two-marks
+
–
Page:
« prev
1
2
3
4
5
6
7
8
9
10
...
60
next »