Recent questions tagged algorithms

0 votes
0 answers
1
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(...
2 votes
1 answer
2
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
0 votes
0 answers
5
Calculate the minimum and maximum number of element comparisons involved in 2 way merge sort assuming n is power of 2.
0 votes
1 answer
8
how many spanning trees are possible for complete graph of 4 vertices
0 votes
1 answer
9
How can we find the highest element in a singly linked list in O(1)? We are free to use any extra space.
1 votes
1 answer
19
1 votes
1 answer
21
​​​​​An array $[82,101,90,11,111,75,33,131,44,93]$ is heapified. Which one of the following options represents the first three elements in the heapified array?$...