Reference no: EM13986435
1. Use a recursion tree to determine a good asymptotic upper bound on the recurrence T (n) = T (n/2) + T (n - 1) + cn.
2. Demonstrate what happens when we insert the keys 5, 28, 19, 15, 20, 33, 12, 17, 10, 30 into a hash table with collisions resolved by chaining. Let the table have 10 slots and let the hash function be h(k) = k mod 10.
3. Consider inserting the keys 5, 28, 19, 15, 20, 33, 12, 17, 10, 30 into a hash table of length m = 10 with the auxiliary hash function h(k) = k mod 10. Illustrate the result of inserting they keys using linear probing.
4. Suppose two keys are inserted into an empty hash table with m slots. Assuming simple uniform hashing, what is the probability of a collision?
5. Suppose three keys are inserted into an empty hash table with m slots. Assuming simple uniform hashing, what is the probability of no collisions? One collision? Two collisions?
6. Suppose n keys are inserted into an empty hash table with m slots. Assuming simple uniform hashing, what is the probability of no collisions? One or more collisions?
7. Demonstrate what happens when we insert the keys 5, 28, 19, 15, 20, 33, 12, 17, 10, 30 into a binary search tree.
8. For the binary search tree in the previous exercise, demonstrate what happens when 5, 28, 19 are deleted from the tree.
9. Suppose we have an array A that is already sorted. Using the book's pseu-docode conventions, write a recursive procedure Sorted-Array-To-Tree(A, p, r) that returns a balanced binary search tree. Assume that Sorted-Array-To-Tree(A, 1, A.length) is the initial call. What is the running time of your procedure?
10. For the book's Tree-Insert procedure, write a comment between each pair of lines describing what is true when the program reaches that point in the code.
Journalize the entry to record the warranty work
: a. Journalize the adjusting entry required at January 31, the end of the first month of the current fiscal year, to record the accrued product warranty. b. Journalize the entry to record the warranty work provided in February.
|
Visual representation of manifest destiny.
: It is said that a picture is worth a 1000 words. If you Google manifest destiny and ask for images, one of the common images that appears is a painting (circa 1872) by John Gast called American Progress. The painting is sometimes considered a visua..
|
Contribution format income statement
: Assume that the company produces and sells 89,000 units during the year at a selling price of $10.40 per unit. Prepare a contribution format income statement for the year.
|
Earnings as dividends each year.
: a. Firm A has sales of $100,000 in good years, $90,000 in average years, and $80,000 in bad years. Its variable operating costs are 60% of sales, and its fixed operating costs are $10,000 per year. It exists in a nation that has no corporate taxes, a..
|
Determine a good asymptotic upper bound
: Determine a good asymptotic upper bound on the recurrence - write a comment between each pair of lines describing what is true when the program reaches that point in the code.
|
Cost of supplies used during the month
: Determined that the cost of supplies used during the month was $1,100. billed insurance companies for Revenue earned, $12,500.Paid dividends, $5,000.
|
What are the costs and benefits to each nation
: What are the costs and benefits to each nation of joining the EU? What are the costs and benefits to the EU of adding Poland? The answer shall not be "copy paste" from Internet because I already looked there
|
What is the equilibrium constant in economics
: What is the equilibrium constant in economics? Give examples
|
Write a review of your job setting
: Write a review of your job setting or the setting for your research problem. Describe the environment in which your research topic exists
|