Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged time-complexity
107
views
0
answers
0
votes
university assignment question
The array-based stack throws an exception when the array’s capacity has been reached. Consider the following alternative : create a larger array, using the resize metho...
꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂
107
views
꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂
asked
May 5
DS
data-structures
array
time-complexity
+
–
172
views
1
answers
0
votes
Divide and conquer
In quick sort, n numbers the (n/10)th element is selected as pivot using n^2 sortimng time complexity what will be the time complexity of quick sort is.....a)O(nlogn)b)O(...
Emankashyap
172
views
Emankashyap
asked
Apr 30
Algorithms
divide-and-conquer
algorithms
time-complexity
recurrence-relation
sorting
+
–
132
views
1
answers
2
votes
algorithms
for (i = 1; i <= N; i++){ for (j= 1;j <= i^2;j=j+i){ //some code}} how is this O(n^2)? explain in detail and simple terms
SSR17
132
views
SSR17
asked
Apr 25
Algorithms
algorithms
time-complexity
+
–
133
views
1
answers
0
votes
Prove that n! = Ω(n^100)
wtquevb123
133
views
wtquevb123
asked
Mar 14
Algorithms
theory-of-computation
algorithms
time-complexity
+
–
279
views
1
answers
0
votes
Sorting Algorithm
For flag based approach in Bubble sort we can check first by a flag if the list is sorted or not in O(n), and if it is sorted, then no need to sort and the operation ends...
Mrityudoot
279
views
Mrityudoot
asked
Mar 7
Algorithms
algorithms
sorting
time-complexity
asymptotic-notation
+
–
3.8k
views
1
answers
4
votes
GATE CSE 2024 | Set 1 | Question: 7
Given an integer array of size $N$, we want to check if the array is sorted (in either ascending or descending order). An algorithm solves this problem by making a single...
Arjun
3.8k
views
Arjun
asked
Feb 16
Algorithms
gatecse2024-set1
algorithms
time-complexity
+
–
558
views
1
answers
5
votes
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 17
Consider the following function.If $n$ and $\mathrm{k}$ are positive integers, then the least value of $\mathrm{k}$ such that $\mathrm{f}(\mathrm{k})>n$ is approximately$...
GO Classes
558
views
GO Classes
asked
Feb 5
Algorithms
goclasses2024-mockgate-14
algorithms
identify-function
time-complexity
1-mark
+
–
485
views
1
answers
5
votes
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 46
We have a procedure $P(n)$ that makes multiple calls to a procedure $Q(m)$, and runs in polynomial time in $n$. Unfortunately, a significant flaw was discovered in $Q(m)$...
GO Classes
485
views
GO Classes
asked
Feb 5
Algorithms
goclasses2024-mockgate-14
algorithms
asymptotic-notation
time-complexity
2-marks
+
–
910
views
3
answers
7
votes
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 40
You are given a complete binary tree (each level must be full except the last) on $n$ vertices. Each vertex $v$ is labeled by an integer value $x_v$. Say that a vertex is...
GO Classes
910
views
GO Classes
asked
Jan 28
DS
goclasses2024-mockgate-13
goclasses
data-structures
binary-tree
time-complexity
2-marks
+
–
568
views
1
answers
5
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 30
Consider the following pseudocode for a function that operates on an $\textsf{N}$ element array $\textsf{A ,A },\dots,\textsf{A[N]}$ of integers.function mystery (A[1...N...
GO Classes
568
views
GO Classes
asked
Jan 21
Algorithms
goclasses2024-mockgate-12
goclasses
numerical-answers
algorithms
identify-function
time-complexity
2-marks
+
–
1.0k
views
3
answers
3
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 54
Of the following, which gives the best upper bound for the value of $f(N)$ where $f$ is a solution to the recurrence$$f(2 N+1)=f(2 N)=f(N)+\log N \text { for } N \geq 1,$...
GO Classes
1.0k
views
GO Classes
asked
Jan 21
Algorithms
goclasses2024-mockgate-12
goclasses
algorithms
recurrence-relation
time-complexity
2-marks
+
–
1.0k
views
2
answers
12
votes
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 50
Given an unsorted array of $n$ distinct elements, you want to find this set of $\log n$ elements: those at positions $1,2,4,8,16, \ldots, n/2$ if array were sorted. In ot...
GO Classes
1.0k
views
GO Classes
asked
Jan 13
Algorithms
goclasses2024-mockgate-11
goclasses
algorithms
merging
time-complexity
2-marks
+
–
177
views
1
answers
1
votes
made-easy
Rohit Chakraborty
177
views
Rohit Chakraborty
asked
Jan 7
GATE
made-easy-test-series
time-complexity
functions
multiple-selects
+
–
281
views
1
answers
0
votes
ISRO 2024
The complexity of matrix multiplication of two matrices A and B whose orders are $m \times n$ and $n \times p$ respectively is$\text{O(m} \times p)$$\text{O(m} \times n^2...
Ramayya
281
views
Ramayya
asked
Jan 7
Algorithms
isro-2024
algorithms
time-complexity
matrix-chain-ordering
+
–
190
views
1
answers
1
votes
UGC NET CSE | June 2008 | Part 2 | Question: 23
Which of the following is true for a sorted list with ' $n$ ' elements?Insertion in a sorted array takes constant time.Insertion in a sorted linear linked list takes cons...
admin
190
views
admin
asked
Jan 6
Others
ugcnetcse-june2008-paper2
sorting
array
time-complexity
+
–
227
views
1
answers
0
votes
#Applied Course
In a variant of quick sort, the n/10th smallest element is selected in every recursive call using a Θ(n) time algorithm, which is the worst-case time complexity for this...
Dknights
227
views
Dknights
asked
Dec 16, 2023
Algorithms
time-complexity
+
–
289
views
1
answers
0
votes
TS
$\text{Please explain True or False and Why ?}$$\text{1. f(n) = O(f(n/2))}$$\text{2. f(n) = O($f(n)^{2}$) }$
Jiten008
289
views
Jiten008
asked
Dec 2, 2023
Algorithms
algorithms
time-complexity
asymptotic-notation
functions
+
–
591
views
1
answers
1
votes
algorithm time complexity madeeasy
Consider the problem that given a set Sof n integers and another integer x, whether or not there exist two elements in S whose sum is exactly x. What is the worst case ti...
Sajal Mallick
591
views
Sajal Mallick
asked
Nov 28, 2023
Algorithms
algorithms
time-complexity
made-easy-test-series
made-easy-booklet
+
–
209
views
0
answers
0
votes
algorithm time complexity madeeasy ots
What will be the complexity?
Sajal Mallick
209
views
Sajal Mallick
asked
Nov 28, 2023
Algorithms
algorithms
time-complexity
made-easy-test-series
made-easy-booklet
job
scheduling
+
–
215
views
0
answers
0
votes
Algorithm Madeeasy Workbook
As we have to select maximal set of “non overlapping” activities. So like job scheduling algo of greedy we can solve it. So according to that complexity must be O(n l...
Sajal Mallick
215
views
Sajal Mallick
asked
Nov 27, 2023
Algorithms
made-easy-booklet
algorithms
time-complexity
greedy-algorithm
algorithm-design
+
–
167
views
0
answers
0
votes
Michael Sipser Decidability Problem
Is the following language decidable or not? If you deem it decidable, you need to give an algorithm and analyse its running time. If not decidable, you need to prove it. ...
baofbuiafbi
167
views
baofbuiafbi
asked
Nov 14, 2023
Theory of Computation
theory-of-computation
time-complexity
michael-sipser
+
–
Page:
1
2
3
4
5
6
...
53
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register