Академический Документы
Профессиональный Документы
Культура Документы
reviewer4@nptel.iitm.ac.in ▼
How to access 1) Consider a treap T with 100 elements. Assume that the keys are numbers from 1 to 100. 1 point
the portal Assume that the priorities are also numbers from 1 to 100.
The maximum possible height of T is
Week 1:
Introduction to 99
Randomized
Algorthms 50
7
Week 2:
Probability 100
Review
No, the answer is incorrect.
Week 3: Score: 0
Moments and Accepted Answers:
Deviations
100
Week 4: 2) Consider a treap T with n elements. Assume that the keys are numbers from 1 to n. 1 point
Probabilistic Assume that the priorities randomly chosen, uniformly and independently for each key from [0, 1] .
Method
The expected height of T is
Week 5: Markov
Chains-I
O(n)
Week 6: Markov
Chain-II
O(n2 )
Week 7: Number
Theoretic O(1)
Algorithms
Treaps Powered by
15
Lession 2:
7
Hashing
E[X]χ ≤ m
n for every x
E[X] > m
n for every x
E[X] ≥ m
n some x
No, the answer is incorrect.
Score: 0
Accepted Answers:
E[X]χ ≤ m
n for every x
5) Assume that the size of the dynamic set is O(n). The expected time taken for searching 1 point
an element in a hash table of size O(n) is
(n log n)
(n)
(log n)
O(1)
No, the answer is incorrect.
Score: 0
Accepted Answers:
O(1)