<< Prev Showing: 161-165 of 353 Next >>
· 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 ·Analyze each of the following statements to indicate whether the statement is true or false, respectively. If the statement is correct, briefly state why. If the statement is wrong, correct it. Please elaborate on your justification or correction, but be brief. One-sentence explanations should suffice. T F For any asymptotically nonnegative function f (n). we have f(n) + o( f (n)) = O( f (n)). T F By Case 2 of the Master Theorem, the solution to the recurrence T (n) = 3T(n/3) + O(1g n) is T (n) = (n 1g n). T F By reducing the problem of sorting to the problem of building a heap, one can prove that building an n-element heap takes time =... click for more
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
104002
OTA ID:
104967
Show that "q^2 + (n-q-1)^2" achieves a maximum over q = 0, 1, ..., n-1 when q = 0 or q = n-1.
Show that "q^2 + (n-q-1)^2" achieves a maximum over q = 0, 1, ..., n-1 when q = 0 or q = n-1.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
104163
OTA ID:
105381
Obtain asymptotically tight bounds on lg(n!) without using Stirling's approximation.
Obtain asymptotically tight bounds (Big-Oh and Big-Omega) on lg(n!) without using Stirling's approximation. Instead, evaluate these using the expansion of lg(n!) as a summation.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
104286
OTA ID:
105381
Argue briefly that to test whether a given n-element permutation can be sorted by an n-input comparison network, it suffices to test the network on n—1 sequences of 0’s and 1’s.
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
104618
OTA ID:
102804
What is the effect of calling HEAPIFY(A, i) when the element A[i] is larger than its children?
Consider the following definition of HEAPIFY. HEAPIFY(A, i) 1 l = LEFT(i) 2 r = RIGHT(i) 3 if l < heap-size[A] and A[l] > A[i] 4 then largest = l 5 else largest = i 6 if r < heap-size[A] and A[r] > A[largest] 7 then largest = r 8 if largest != i 9 then exchange A[i] and A[largest] 10 HEAPIFY(A,largest) What is the effect of calling HEAPIFY(A, i) when the element A[i] is larger than its children?
Subject:
Computer Science
Topic:
Data Structures and Algorithms
Posting ID:
104642
OTA ID:
105381
<< Prev Showing: 161-165 of 353 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-350 · 351-353 ·Page generated in 0.0957 seconds