subject
Engineering, 05.05.2020 08:08 nicoleh2015

There are many ways to support a dictionary (set, on which the operations of insert, delete, and lookup can be performed). Among these are various types of hash tables, binary search trees, and various kinds of balanced-search-tree schemes. These schemes offer different per-operation running times, both in the worst-case and expected-case senses. Analyze each of the following schemes, both for the worst and expected cases. A tight big-oh approximation is sufficient, assuming n is the number of elements currently in the set.

1. A chained hash table with n/(log n) buckets.
2. A binary search tree.
3. A hash table using open addressing and quadratic probing, with 2n buckets.
4. A balanced binary tree such as a 2-3 tree.

Referring to these as "schemes 1, 2, 3, and 4," find the true statement below. Note that a statement like "scheme x is O(y)" should be interpreted as meaning "is O(y) but not of any significantly lower running time." Formally, we mean that the running time is also big-omega of y.

a) Scheme 3: Expected O(n)
b) Scheme 1: Worst-Case O(1)
c) Scheme 4: Expected O(1)
d) Scheme 4: Worst-Case O(log n)

ansver
Answers: 1

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, viicborella
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
image
Engineering, 04.07.2019 18:10, hadellolo8839
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
image
Engineering, 04.07.2019 18:10, wyattlb97
Water at the rate of 1 kg/s is forced through a tube with a 2.5 cm inner diameter. the inlet water temperature is 15°c, and the outlet water temperature is 50°c. the tube wall temperature is 14°c higher than the local water temperature all along the length of the tube. what is the length of the tube?
Answers: 3
image
Engineering, 04.07.2019 18:10, 0436500
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
You know the right answer?
There are many ways to support a dictionary (set, on which the operations of insert, delete, and loo...

Questions in other subjects:

Konu
Mathematics, 13.11.2019 20:31
Konu
Biology, 13.11.2019 20:31