Recent questions tagged algorithms

0 votes
0 answers
1111
0 votes
0 answers
1112
no of max heaps possible with nos given as 1,2,3,4,5?I am getting 8 if you get more please upload solution and do not give direct answers!
0 votes
1 answer
1115
For merging two unsorted list of size m and n into sorted list of size (m+n). The time complexity in terms of no. of comparison for this is?
4 votes
2 answers
1116
0 votes
1 answer
1117
HOW CAN WE GET A CROSS EDGE WHILE PERFORMING A BFS ON UNDIRECTED AND DIRECTED GRAPH CAN ANYONE SHOW WITH AN EXAMPLE?
0 votes
1 answer
1118
what is the best algorithm to sort a list of more than 1 million items in an arraya)quicksort b) merge sort c)heap sort d) bubble sort
0 votes
0 answers
1119
–1 votes
0 answers
1120
how to find value in this type of question???
0 votes
1 answer
1121
how to apply masters theorem in this type of cases!????!
0 votes
0 answers
1122
0 votes
1 answer
1124
T(n)=5 T ($\frac{n}{2}$+16) + n2please tell the solution as i m getting confused
0 votes
2 answers
1125
I think the past cost to G from A as computed by Dijkstra should be 2 instead of 8.Please help me verify it.
0 votes
2 answers
1126
f(n) + O(f(n)) = Θ(f(n))True or not? Explain please
0 votes
0 answers
1127
https://gateoverflow.in/?qa=blob&qa_blobid=8164680937983732221I don't understand the solution at all. I thought 91,33,44,and 77 can come in any possible ways but that has...
0 votes
0 answers
1129
0 votes
0 answers
1130
n is prime ,find value of x and find time complexity.main(){x=0;for(i=1;i<=n;i++){if(n%i){for(j=1;j<=n;j=j*10){x=x+1;}}}}what i am getting is x=(n-2)logntym complexity =n...
0 votes
0 answers
1132
1 votes
1 answer
1138
2 votes
0 answers
1140