Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage for Algorithms
Recent questions tagged algorithms
393
views
1
answers
0
votes
Ace dlp
for(i=n, j=0; i>0; i/=2, j+=i)Let val(j) denote the value stored in the variable j after termination of the for loop. Whjch is correct?a. val(j)=theta(logn)b. Val(j)= the...
gate_dreams
393
views
gate_dreams
asked
Jan 27, 2019
Algorithms
ace-booklet
algorithms
time-complexity
+
–
3.1k
views
2
answers
3
votes
MadeEasy WorkBook: Algorithms - Sorting
Consider the following array with 7 elements for insertion sort?25, 15, 30, 9, 99, 20, 26 In how many passes, the given sequence will be sorted? (a) 4 pass (b) 5 pass (c)...
Jyoti Kumari97
3.1k
views
Jyoti Kumari97
asked
Jan 26, 2019
Algorithms
made-easy-booklet
algorithms
sorting
+
–
596
views
2
answers
1
votes
from edurev
Consider an interpolation search which is an improvement over binary search where the values in a sorted array are uniformly distributed.In interpolation search construct...
Megha_2019
596
views
Megha_2019
asked
Jan 26, 2019
Algorithms
algorithms
time-complexity
+
–
279
views
1
answers
1
votes
Random Doubt in f(n)=O(n^2)
Can any one please help me out in understanding how to read :f(n)=O(n^2)I am confused in :1] f(n) is the upper bound of n^22]f(n)’s upper bound is n^2Or is their any a...
Nandkishor3939
279
views
Nandkishor3939
asked
Jan 25, 2019
Algorithms
algorithms
time-complexity
+
–
2.5k
views
2
answers
0
votes
A Different Kind of Question on Longest Common Subsequence
Consider two strings A = "anandarmy" and B = "algorithms". Let ‘y’ be the length of the longest common subsequence (not necessarily contiguous) between A and B and le...
gmrishikumar
2.5k
views
gmrishikumar
asked
Jan 22, 2019
Algorithms
algorithms
longest-common-subsequence
dynamic-programming
numerical-answers
+
–
779
views
1
answers
0
votes
Dynamic programming
My answer came out to be 13:because when we will compute T(13){as we are using Dynamic programming , it will have to compute value of T(12),T(11),…...T(2) only once(as ...
Nandkishor3939
779
views
Nandkishor3939
asked
Jan 22, 2019
Algorithms
algorithms
dynamic-programming
programming
test-series
+
–
718
views
0
answers
0
votes
Merge sort
What is the extra memory needed for merge sort:1] In case of Iterative merge sort.(DS:Array)2]In case of Recursive merge sort.(DS:Array)3] In case of Iterative merge sort...
Nandkishor3939
718
views
Nandkishor3939
asked
Jan 21, 2019
Algorithms
merge-sort
algorithms
sorting
+
–
1.6k
views
4
answers
3
votes
MadeEasy Test Series: Algorithms - Sorting
Consider a scenario of modified quick sort, where we have given an input sorted array A[1 .. . n], all elements of array are distinct and n >=3. Pivot is the median of se...
newdreamz a1-z0
1.6k
views
newdreamz a1-z0
asked
Jan 21, 2019
Algorithms
algorithms
sorting
quick-sort
made-easy-test-series
+
–
335
views
0
answers
0
votes
SELF doubt
Which of the following statements is /are FALSE?I.Given a graph where all edge weights are strictly greater than -3, a shortest path between vertices s and t can be found...
bhanu kumar 1
335
views
bhanu kumar 1
asked
Jan 20, 2019
Algorithms
algorithms
+
–
1.1k
views
1
answers
1
votes
Recurrence relation and Time Complexity
What is the time complexity of the following recurrence relation and step to derive the same$T(n) = T(\sqrt{n}) + log(logn)$
VikramRB
1.1k
views
VikramRB
asked
Jan 20, 2019
Algorithms
time-complexity
algorithms
recurrence-relation
+
–
679
views
2
answers
0
votes
Gateforum Test Series: Algorithms - Minimum Spanning Trees
Prince Sindhiya
679
views
Prince Sindhiya
asked
Jan 20, 2019
Algorithms
gateforum-test-series
algorithms
minimum-spanning-tree
+
–
2.0k
views
0
answers
0
votes
Bellman ford for disconnected graph
True of FalseBellman ford algorithm correctly computes shortest path in graph with no negative edges /graph can be disconnected as well.
bts1jimin
2.0k
views
bts1jimin
asked
Jan 20, 2019
Algorithms
bellman-ford
algorithms
true-false
+
–
3.4k
views
1
answers
0
votes
What is the complexity of T(n) =T(sqrt(n)) +loglogn
Anitadalla
3.4k
views
Anitadalla
asked
Jan 20, 2019
Algorithms
algorithms
time-complexity
recurrence-relation
+
–
383
views
1
answers
0
votes
ME TEST SERIES QUESTION ON TIME COMPLEXITY
Shankar Kakde
383
views
Shankar Kakde
asked
Jan 19, 2019
Algorithms
made-easy-test-series
time-complexity
algorithms
+
–
713
views
1
answers
1
votes
Self Doubt
The average no. of comparisons performed by the merge sort algorithm, in merging 2 sorted lists of length 2 is___________.Ans: $\frac{8}{3}$
kumar.dilip
713
views
kumar.dilip
asked
Jan 19, 2019
Algorithms
algorithms
merge-sort
sorting
+
–
1.1k
views
0
answers
0
votes
#ACE_Test_Series
Consider the following instance of OBST (Optimal Binary search Tree) problem.N = 4; <$a_1$, $a_2$, $a_3$, $a_4$ = <do, if, int, while>P(1...4) = <3,3,1,1>; Q(0...4) = <2,...
`JEET
1.1k
views
`JEET
asked
Jan 19, 2019
Algorithms
ace-test-series
algorithms
binary-search-tree
+
–
375
views
1
answers
0
votes
Self Doubt Algorithms
When relative ordering of equal keys is preserved after sorting then it is called stable. Quick sort and heap sort is not a stable sorting algorithm . Doubt -IS Select...
Prince Sindhiya
375
views
Prince Sindhiya
asked
Jan 19, 2019
Algorithms
algorithms
sorting
+
–
741
views
1
answers
1
votes
Time Complexity
I am unable to Find its time complexity using Iterative method…Will any one help me out with this .Thank you :)
Nandkishor3939
741
views
Nandkishor3939
asked
Jan 18, 2019
Algorithms
time-complexity
algorithms
asymptotic-notation
+
–
1.4k
views
1
answers
1
votes
Time complexity
What is the worst case time complexity to count pairs of numbers with difference ‘k’ from an input array of ‘n’ numbers O(log n)O(n log n)O(n)^2O(n^2 log n)The an...
Anilava Kundu
1.4k
views
Anilava Kundu
asked
Jan 17, 2019
Algorithms
algorithms
time-complexity
algorithm-design
+
–
381
views
1
answers
0
votes
What do we mean by INVERSION
I searched on internet but got noting .
Nandkishor3939
381
views
Nandkishor3939
asked
Jan 16, 2019
Algorithms
algorithms
time-complexity
inversion
made-easy-test-series
+
–
676
views
1
answers
2
votes
Complexity
An unordered list contains n distinct elements. Number of comparisons to find element larger than second minimum isO(1)O(n)None
gate_forum
676
views
gate_forum
asked
Jan 16, 2019
Algorithms
algorithms
time-complexity
easy
+
–
931
views
1
answers
2
votes
sorted list
we are given (log m) sorted list each of size (log n) / (log m) the time complexity of merging list into single sorted list using mergesort is equal to a) O ( log m log(l...
Rahul_Rathod_
931
views
Rahul_Rathod_
asked
Jan 16, 2019
Algorithms
algorithms
sorting
time-complexity
+
–
534
views
1
answers
1
votes
Applied Course | Mock GATE | Test 1 | Question: 20
Assuming $P \neq NP$, Which of the following statements are TRUE?There is no language in $NP$ which has a Deterministic Polynomial time algorithm.There is no language in...
Applied Course
534
views
Applied Course
asked
Jan 16, 2019
Algorithms
applied-course-2019-mock1
algorithms
p-np-npc-nph
+
–
737
views
2
answers
2
votes
Applied Course | Mock GATE | Test 1 | Question: 30
Consider the following program code, where pow() is the exponentiation function.f (int n) { if (n <= 1) return 1; return f(n-1) + g(n) + g(pow(2, n-1)); } g (int n) { if ...
Applied Course
737
views
Applied Course
asked
Jan 16, 2019
Algorithms
applied-course-2019-mock1
algorithms
time-complexity
+
–
630
views
1
answers
1
votes
Applied Course | Mock GATE | Test 1 | Question: 47
In a sorted file structure, let the cost of reading a page be $D=10$ milliseconds, the number of data pages be $B=1024$. Let the average time to process a record is $C=5$...
Applied Course
630
views
Applied Course
asked
Jan 16, 2019
Algorithms
applied-course-2019-mock1
algorithms
searching
+
–
551
views
1
answers
1
votes
Applied Course | Mock GATE | Test 1 | Question: 55
Suppose a radix sort was done on the following set of numbers, in binary i.e,$[11, 10, 3, 14, 12, 2, 8, 15, 2]$. How many passes of counting sort would be performed _____...
Applied Course
551
views
Applied Course
asked
Jan 16, 2019
Algorithms
applied-course-2019-mock1
numerical-answers
algorithms
radix-sort
+
–
605
views
1
answers
1
votes
Applied Course | Mock GATE | Test 1 | Question: 56
$\text{O}, \Omega,$ and $\Theta$ denote Big-Oh, Big-Omega and Big-Theta notations respectively. Which of the following statement is not correct?$n \: \log a = \Omega (\lo...
Applied Course
605
views
Applied Course
asked
Jan 16, 2019
Algorithms
applied-course-2019-mock1
algorithms
asymptotic-notation
+
–
1.4k
views
1
answers
1
votes
Applied Course | Mock GATE | Test 1 | Question: 57
Insert the following keys in an array of size $17$ using the modulo division method. Use double hashing to resolve collisions. Take $h'(k) = (\text{key%}7)+1$ as the seco...
Applied Course
1.4k
views
Applied Course
asked
Jan 16, 2019
Algorithms
applied-course-2019-mock1
numerical-answers
algorithms
hashing
+
–
608
views
1
answers
1
votes
Applied Course | Mock GATE | Test 1 | Question: 58
Consider the Knapsack Problem: Given a set of n items, each with a weight $w_i$ and the value $v_i$ determine a subset of items to include in a collection so that the tot...
Applied Course
608
views
Applied Course
asked
Jan 16, 2019
Algorithms
applied-course-2019-mock1
algorithms
dynamic-programming
+
–
376
views
0
answers
0
votes
Asymptotic analysis
what is the time complexities of the following code snippets. 1.k=1;i=1;while(k<=n){ i++; k=k+i;} 2.for(i=1;i<=n;++i){ for(j=1;j<n;j=j*2) c=c+1;} 3.m=pow(2...
Iamniks4
376
views
Iamniks4
asked
Jan 16, 2019
Algorithms
algorithms
+
–
Page:
« prev
1
...
28
29
30
31
32
33
34
35
36
37
38
...
118
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register