Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged cormen
0
votes
1
answer
121
Cormen Edition 3 Exercise 6.1 Question 1 (Page No. 153)
What are the minimum and maximum numbers of elements in a heap of height $h$?
What are the minimum and maximum numbers of elements in a heap of height $h$?
akash.dinkar12
373
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
binary-heap
descriptive
+
–
0
votes
0
answers
122
Cormen Edition 3 Exercise 4.6 Question 3 (Page No. 106)
Show that case 3 of the master theorem is overstated, in the sense that the regularity condition $af(n/b)\geq cf(n)$ for some constant $c<1$ implies that there exists a constant $\epsilon >0$ such that $f(n)=\Omega(n^{log_ba+\epsilon})$.
Show that case 3 of the master theorem is overstated, in the sense that the regularity condition $af(n/b)\geq cf(n)$ for some constant $c<1$ implies that there exists a c...
akash.dinkar12
303
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
master-theorem
descriptive
difficult
+
–
0
votes
0
answers
123
Cormen Edition 3 Exercise 4.6 Question 2 (Page No. 106)
Show that if $f(n)=\Theta(n^{log_ba}\lg^kn )$, where $k\geq0$ then the master recurrence has solution $T(n) =\Theta(n^{log_ba} \lg^{k+1}n)$.For simplicity, confine your analysis to exact powers of $b$.
Show that if $f(n)=\Theta(n^{log_ba}\lg^kn )$, where $k\geq0$ then the master recurrence has solution $T(n) =\Theta(n^{log_ba} \lg^{k+1}n)$.For simplicity, confine your a...
akash.dinkar12
218
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
master-theorem
descriptive
difficult
+
–
0
votes
0
answers
124
Cormen Edition 3 Exercise 4.5 Question 5 (Page No. 97)
Consider the regularity condition $af(n/b) \leq cf(n)$ for some constant $c<1$,which is part of case 3 of the master theorem. Give an example of constants $a\geq 1$ and $b>1$ and a function $f(n)$ that satisfies all the conditions in case 3 of the master theorem except the regularity condition.
Consider the regularity condition $af(n/b) \leq cf(n)$ for some constant $c<1$,which is part of case 3 of the master theorem. Give an example of constants $a\geq 1$ and $...
akash.dinkar12
353
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
master-theorem
descriptive
difficult
+
–
0
votes
1
answer
125
Cormen Edition 3 Exercise 4.5 Question 4 (Page No. 97)
Can the master method be applied to the recurrence $T(n)=4T(n/2)+n^2\ lg\ n$ ?Why or why not? Give an asymptotic upper bound for this recurrence.
Can the master method be applied to the recurrence $T(n)=4T(n/2)+n^2\ lg\ n$ ?Why or why not? Give an asymptotic upper bound for this recurrence.
akash.dinkar12
298
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
master-theorem
descriptive
+
–
0
votes
0
answers
126
Cormen Edition 3 Exercise 4.5 Question 3 (Page No. 97)
Use the master method to show that the solution to the binary-search recurrence $T(n)=T(n/2) + \Theta(1)$ is $T(n)=\Theta(lg\ n)$.
Use the master method to show that the solution to the binary-search recurrence $T(n)=T(n/2) + \Theta(1)$ is $T(n)=\Theta(lg\ n)$.
akash.dinkar12
264
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
master-theorem
descriptive
+
–
0
votes
1
answer
127
Cormen Edition 3 Exercise 4.5 Question 2 (Page No. 97)
Professor Caesar wishes to develop a matrix-multiplication algorithm that is asymptotically faster than Strassen's algorithm. His algorithm will use the divide and conquer method, dividing each matrix into pieces of size ... value of $a$ for which Professor Caesar's algorithm would be asymptotically faster than Strassen's algorithm?
Professor Caesar wishes to develop a matrix-multiplication algorithm that is asymptotically faster than Strassen’s algorithm. His algorithm will use the divide and conq...
akash.dinkar12
1.3k
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
master-theorem
descriptive
+
–
0
votes
0
answers
128
Cormen Edition 3 Exercise 4.5 Question 1 (Page No. 96)
Use the master method to give tight asymptotic bounds for the following recurrences. $T(n)=2T(n/4) + 1$ $T(n)=2T(n/4) +\sqrt{n}$ $T(n)=2T(n/4) +n$ $T(n)=2T(n/4) +n^2$
Use the master method to give tight asymptotic bounds for the following recurrences.$T(n)=2T(n/4) + 1$$T(n)=2T(n/4) +\sqrt{n}$$T(n)=2T(n/4) +n$$T(n)=2T(n/4) +n^2$
akash.dinkar12
679
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
master-theorem
+
–
0
votes
0
answers
129
Cormen Edition 3 Exercise 4.4 Question 9 (Page No. 93)
Use a recursion tree to give an asymptotically tight solution to the recurrence $T(n)=T(\alpha n) +T((1-\alpha)n) +cn$,where $\alpha$ is a constant in the range $0<\alpha<1$ and $c>0$ is also constant.
Use a recursion tree to give an asymptotically tight solution to the recurrence $T(n)=T(\alpha n) +T((1-\alpha)n) +cn$,where $\alpha$ is a constant in the range $0<\alpha...
akash.dinkar12
203
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
130
Cormen Edition 3 Exercise 4.4 Question 8 (Page No. 93)
Use a recursion tree to give an asymptotically tight solution to the recurrence $T(n) =T(n-a)+T(a)+cn$, where $a\geq 1$ and $c >0$ are constants.
Use a recursion tree to give an asymptotically tight solution to the recurrence $T(n) =T(n-a)+T(a)+cn$, where $a\geq 1$ and $c >0$ are constants.
akash.dinkar12
203
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
131
Cormen Edition 3 Exercise 4.4 Question 7 (Page No. 93)
Draw the recursion tree for $T(n)=4T(\lfloor n/2\rfloor) +cn$, where $c$ is a constant,and provide a tight asymptotic bound on its solution. Verify your bound by the substitution method.
Draw the recursion tree for $T(n)=4T(\lfloor n/2\rfloor) +cn$, where $c$ is a constant,and provide a tight asymptotic bound on its solution. Verify your bound by the subs...
akash.dinkar12
165
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
132
Cormen Edition 3 Exercise 4.4 Question 6 (Page No. 93)
Argue that the solution to the recurrence $T(n)=T(n/3)+T(2n/3)+cn$,where $c$ is a constant, is $\Omega(n\lg n)$ by appealing to a recursion tree.
Argue that the solution to the recurrence $T(n)=T(n/3)+T(2n/3)+cn$,where $c$ is a constant, is $\Omega(n\lg n)$ by appealing to a recursion tree.
akash.dinkar12
169
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
133
Cormen Edition 3 Exercise 4.4 Question 5 (Page No. 93)
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n)=T(n-1)+T(n/2) +n$.Use the substitution method to verify your answer.
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n)=T(n-1)+T(n/2) +n$.Use the substitution method to verify your answer.
akash.dinkar12
383
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
134
Cormen Edition 3 Exercise 4.4 Question 4 (Page No. 93)
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n) =2T(n-1) + 1$.Use the substitution method to verify your answer.
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n) =2T(n-1) + 1$.Use the substitution method to verify your answer.
akash.dinkar12
178
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
135
Cormen Edition 3 Exercise 4.4 Question 3 (Page No. 93)
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n)=4T(n/2 +2)+n$.Use the substitution method to verify your answer.
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n)=4T(n/2 +2)+n$.Use the substitution method to verify your answer.
akash.dinkar12
168
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
1
answer
136
Cormen Edition 3 Exercise 4.4 Question 2 (Page No. 92)
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n)=T(n/2)+n^2$.Use the substitution method to verify your answer
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n)=T(n/2)+n^2$.Use the substitution method to verify your answer
akash.dinkar12
216
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
137
Cormen Edition 3 Exercise 4.4 Question 1 (Page No. 92)
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n)=3T(\lfloor n/2 \rfloor) + n$. Use the substitution method to verify your answer.
Use a recursion tree to determine a good asymptotic upper bound on the recurrence $T(n)=3T(\lfloor n/2 \rfloor) + n$. Use the substitution method to verify your answer.
akash.dinkar12
181
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
1
answer
138
Cormen Edition 3 Exercise 4.3 Question 9 (Page No. 88)
Solve the recurrence $T(n)=3T(\sqrt n) +log\ n$ by making a change of variables.Your solution should be asymptotically tight. Do not worry about whether values are integral.
Solve the recurrence $T(n)=3T(\sqrt n) +log\ n$ by making a change of variables.Your solution should be asymptotically tight. Do not worry about whether values are integr...
akash.dinkar12
958
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
139
Cormen Edition 3 Exercise 4.3 Question 8 (Page No. 87)
Using the master method, you can show that the solution to the recurrence $T(n) = 4T(n/2) +n^2$ is $T(n) = \Theta(n^2)$.Show that a substitution proof with the assumption $T(n) \leq cn^2$ fails. Then show how to subtract off a lower-order term to make a substitution proof work.
Using the master method, you can show that the solution to the recurrence $T(n) = 4T(n/2) +n^2$ is $T(n) = \Theta(n^2)$.Show that a substitution proof with the assumption...
akash.dinkar12
156
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
140
Cormen Edition 3 Exercise 4.3 Question 7 (Page No. 87)
Using the master method, you can show that the solution to the recurrence $T(n) = 4T(n/3) +n$ is $T(n) = O(n^{log_34})$.Show that a substitution proof with the assumption $T(n) \leq cn^{log_34}$ fails. Then show how to subtract off a lower-order term to make a substitution proof work.
Using the master method, you can show that the solution to the recurrence $T(n) = 4T(n/3) +n$ is $T(n) = O(n^{log_34})$.Show that a substitution proof with the assumption...
akash.dinkar12
139
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
141
Cormen Edition 3 Exercise 4.3 Question 6 (Page No. 87)
Show that the solution to $T(n) =T(\lfloor n/2 \rfloor+ 17) + n$ is $O(n\ log\ n)$
Show that the solution to $T(n) =T(\lfloor n/2 \rfloor+ 17) + n$ is $O(n\ log\ n)$
akash.dinkar12
159
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
142
Cormen Edition 3 Exercise 4.3 Question 3 (Page No. 87)
We saw that the solution of $T(n) = T(\lceil n/2 \rceil) + n$ is $O(lg\ n)$. Show that the solution of this recurrence is also $\Omega(n\ lg\ n)$. Conclude that the solution is $\Theta(n\log \ n)$.
We saw that the solution of $T(n) = T(\lceil n/2 \rceil) + n$ is $O(lg\ n)$. Show that the solution of this recurrence is also $\Omega(n\ lg\ n)$. Conclude that the solut...
akash.dinkar12
194
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
143
Cormen Edition 3 Exercise 4.3 Question 2 (Page No. 87)
Show that the solution of $T(n) = T(\lceil n/2\rceil) + 1$ is $O$(lg$ $n)$.
Show that the solution of $T(n) = T(\lceil n/2\rceil) + 1$ is $O$$(lg$ $n)$.
akash.dinkar12
162
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
144
Cormen Edition 3 Exercise 4.3 Question 1 (Page No. 87)
Show that the solution of $T(n) = T(n-1)+ n$ is $O(n^2)$
Show that the solution of $T(n) = T(n-1)+ n$ is $O(n^2)$
akash.dinkar12
155
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
recurrence-relation
descriptive
+
–
0
votes
0
answers
145
Cormen Edition 3 Exercise 4.1 Question 5 (Page No. 74)
Use the following ideas to develop a nonrecursive, linear-time algorithm for the maximum-subarray problem. Start at the left end of the array, and progress toward the right, keeping track of the maximum subarray seen so far. Knowing a maximum ... the form $A[i...j+1]$ inconstant time based on knowing a maximum subarray ending at index $j .$
Use the following ideas to develop a nonrecursive, linear-time algorithm for the maximum-subarray problem. Start at the left end of the array, and progress toward the rig...
akash.dinkar12
397
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
divide-and-conquer
descriptive
+
–
0
votes
0
answers
146
Cormen Edition 3 Exercise 4.1 Question 4 (Page No. 74)
Suppose we change the definition of the $maximum-subarray problem$ to allow the result to be an empty subarray, where the sum of the values of an empty subarray is $0$. How would you change any of the algorithms that do not allow empty subarrays to permit an empty subarray to be the result?
Suppose we change the definition of the $maximum-subarray problem$ to allow the result to be an empty subarray, where the sum of the values of an empty subarray is $0$. H...
akash.dinkar12
257
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
divide-and-conquer
descriptive
+
–
0
votes
0
answers
147
Cormen Edition 3 Exercise 4.1 Question 3 (Page No. 74)
Implement both the brute-force and recursive algorithms for the $maximumsubarray$ problem on your own computer. What problem size $n_0$ gives the crossover point at which the recursive algorithm beats the brute-force algorithm? Then, ... brute-force algorithm whenever the problem size is less than $n_0$. Does that change the crossover point?
Implement both the brute-force and recursive algorithms for the $maximumsubarray$ problem on your own computer. What problem size $n_0$ gives the crossover point at which...
akash.dinkar12
337
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
divide-and-conquer
descriptive
+
–
0
votes
0
answers
148
Cormen Edition 3 Exercise 4.1 Question 2 (Page No. 74)
Write pseudo code for the brute-force method of solving the $maximum-subarray$ problem. Your procedure should run in $\Theta(n^2)$ time.
Write pseudo code for the brute-force method of solving the $maximum-subarray$ problem. Your procedure should run in $\Theta(n^2)$ time.
akash.dinkar12
300
views
akash.dinkar12
asked
Apr 5, 2019
Algorithms
cormen
algorithms
divide-and-conquer
descriptive
+
–
0
votes
0
answers
149
Cormen Edition 3 Exercise 3.2 Question 8 (Page No. 60)
Show that $K$ $ln$ $K = \Theta (n)$ implies $k=$\Theta$($n$/$ln$ $n$)$.
Show that $K$ $ln$ $K = \Theta (n)$ implies $k=$$\Theta$$($$n$$/$$ln$ $n$$)$.
akash.dinkar12
189
views
akash.dinkar12
asked
Apr 4, 2019
Algorithms
cormen
algorithms
asymptotic-notation
descriptive
+
–
0
votes
0
answers
150
Cormen Edition 3 Exercise 3.2 Question 7 (Page No. 60)
Prove by induction that the $i^{th}$ Fibonacci number satisfies the equality $F_i = \frac{\phi^i-\hat{\phi^i}}{\sqrt{5}}$ where $\phi$ is the golden ratio and $\hat{\phi}$ is its conjugate.
Prove by induction that the $i^{th}$ Fibonacci number satisfies the equality$F_i = \frac{\phi^i-\hat{\phi^i}}{\sqrt{5}}$where $\phi$ is the golden ratio and $\hat{\phi}$ ...
akash.dinkar12
213
views
akash.dinkar12
asked
Apr 4, 2019
Algorithms
cormen
algorithms
asymptotic-notation
+
–
Page:
« prev
1
2
3
4
5
6
7
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register