Recent questions tagged algorithms

29 votes
5 answers
2191
25 votes
7 answers
2192
Match the algorithms with their time complexities:$$\begin{array}{|l|l|}\hline \textbf{Algorithms} & \textbf{Time Complexity} \\\hline \text{P. Tower of Hanoi with $n$...
0 votes
1 answer
2193
Consider an array A of size 31 consisting of 0's followed by number of 1's. In order to find the smallest index i such that A[i]=1 minimum number of comparisons required ...
2 votes
1 answer
2194
1 votes
1 answer
2196
2 votes
1 answer
2198
Given two singly linked list of size n. The time complexity of computing the union and intersection of two linked list is.a) O(n) and O(nlogn)b) O(n) and O(n)c) O(nlogn) ...
0 votes
0 answers
2199
Is Time complexity of CRC algorithm is O(n)?n=no of bits in data field.crc , implememted in data link layer as trailer, as error detection and correction method,in Hardwa...
2 votes
1 answer
2202
2 votes
5 answers
2203
2 votes
1 answer
2206
Let f(n) = Ω(n), g(n) = O(n), h(n) = θ(n). Then [ f(n) + g(n)] - h(n) is ______________ ?A) Ω(n2)B) O(n)C) θ(n)D) None
2 votes
1 answer
2208
Minimum time taken to find median of a list of numbers isO(log n)O(n)O(n log n)O (n2)
1 votes
1 answer
2210
Which of the following algorithm have the smallest memory requirement i.e Low space complexity including data space and run time stack for recursive calls.A)insertion sor...
0 votes
1 answer
2212
1 votes
1 answer
2214
$T(n) = \begin{Bmatrix} T(\frac{n}{k})+T(\frac{3n}{4})+n\ \ \ if\ n\geq2\\ 1 \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ if\ n=1 \end{Bmatrix}$