0 votes
1 answer
82
Describe a $\Theta(n\ lg\ n)$ time algorithm that, given a set $S$ of $n$ integers and another integer $x$, determines whether or not there exist two elements in $S$ whos...
0 votes
0 answers
86
1 votes
1 answer
87
Using Figure $2.4$ as a model, illustrate the operation of merge sort on the array $A=\langle 3,41,52,26,38,57,9,49 \rangle $
0 votes
1 answer
88
0 votes
2 answers
91
0 votes
1 answer
94
Rewrite the INSERTION-SORT procedure to sort into non-increasing instead of non-decreasing order.
0 votes
1 answer
95
Using Figure 2.2 as a model, illustrate the operation of INSERTION-SORT on the array $ A =( 31, 41, 59, 26, 41, 58)$
0 votes
0 answers
96
What is the smallest value of $n$ such that an algorithm whose running time is $100n^2$ runs faster than an algorithm whose running time is $2^n$ on the same machine?
0 votes
0 answers
97
0 votes
0 answers
98
Give an example of an application that requires algorithmic content at the application level, and discusses the function of the algorithms involved.
0 votes
0 answers
99
Come up with a real-world problem in which only the best solution will do. Then come up with one in which a solution that is “approximately” the best is good enough.
0 votes
1 answer
100
How are the shortest-path and traveling-salesman problems given above similar? How are they different?