Recent questions tagged algorithms

0 votes
0 answers
3062
1 votes
1 answer
3063
0 votes
2 answers
3064
Is Quicksort is in place algorithm?
7 votes
7 answers
3066
Acc. to dijkstra's algorithm:What will be the shortest path from A to B ?1) When the edge of length 15 is present.2) when the edge of length 15 is removed.
1 votes
1 answer
3069
Arrange the following functions in ascending order according to their order of growths.$$\begin{align}f_1 &= 100000 \cdot n\\[1em]f_2 &= \frac1{30} \cdot n^2\\[1em]f_3 &=...
0 votes
1 answer
3070
what is the time complexity to find median of array with n elements??
1 votes
1 answer
3072
1 votes
2 answers
3073
6 votes
2 answers
3076
Find the False statement.$O(2^n) = O(3^n)$ $O(\log n^2) = O(\log n)$ $f(n) = O \left ( (f(n))^2 \right )$ $2^{2 \log n} (\log n) = O(n^2 \log n)$
0 votes
1 answer
3081
IF ONE USES STRAIGHT MERGE SORT TO THE FOLLOWING ELEMENTS 20,47,15,8,9,4,40,30,12,17 THEN THE ORDER OF THE ELEMENTS AFTER 2ND PASS OF THE ALGORITHM
0 votes
1 answer
3085
How to solve this ? I am getting 1111 , the given answer is 1011.
19 votes
8 answers
3086
1 votes
1 answer
3088
Whenever we have a recurrence relation of typeT(n) = a * T(n/b) + chere a is the number of sub problems. what will be Size of sub problems ? Is it n/b ?
0 votes
1 answer
3089
A) nlg c , clg n , B) lg(n!) , lg(nn)I guess both are equivalent so then how to represent them using asymptotic notation ?
2 votes
1 answer
3090
Ans given is D. Is it because, in analyzing this we would ignore the constants involved in the equation?