Recent questions tagged algorithm-design

0 votes
0 answers
1
0 votes
1 answer
3
How many times is the comparison $i >= n$ performed in the following program?int i = 200 n = 80; main() { while (i >= n) { i = i - 2 n = n + 1 } }
0 votes
1 answer
5
0 votes
2 answers
7
Which of the following algorithm design approach is used in Quick sort algorithm?Dynamic programmingBack TrackingDivide and conquerGreedy approach
0 votes
1 answer
9
I wanted to read ALgorithms by cormen but is it to complex to read for beginners ? or i read from other book ?please tell about the cormen is it easy to read for gate and...
0 votes
1 answer
23
Given an Unsorted array, Find maximum in less than O(n) time?How can we do this?
0 votes
0 answers
25
0 votes
0 answers
26
Answer given is Option A , but here we wil first sort the jobs in order of profit , for each value of deadline scan linearly in the array depending on the value of deadli...
4 votes
3 answers
27