• Keine Ergebnisse gefunden

MA-INF 1203 Discrete and Computational Geometry Wintersemester 2019/20

N/A
N/A
Protected

Academic year: 2022

Aktie "MA-INF 1203 Discrete and Computational Geometry Wintersemester 2019/20"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

MA-INF 1203 Discrete and Computational Geometry Wintersemester 2019/20

Assignment 1

To be discussed: 15/16. October 2019

1 Asymptotic notations

i) In each of the following situations, determine whetherf(n) =O(g(n)), or f(n) = Ω(g(n)), or both (i.e. f(n) = Θ(g(n))). We denote with logn the logarithm of base 2.

f(n) g(n) 100 logn log(n3) n1.001 nlog100n 4logn n2

Pn i=1 1

i lnn

Pn i=1 1

i logn

2n 2n+5

2n 22n

n 5

n5

n! 2n

Pc

i=1ni nc

ii) In each of the above situations determine whether f(n) = o(g(n)), or f(n) =ω(g(n)), or none.

2 Probability Theory

Suppose that you play a simplified game of darts, in which the board is a square of side- length`as depicted in Figure 1. LetD0, . . . D5 be the concentric disks in Figure 1, with radii r0, . . . , r5 respectively. The rules are as follows: hittingD0 scores 100 points, hitting D1\D0 scores 50 points, hittingD2\D1 scores 40 points, hitting D3\D2 scores 30 points, hitting D4\D3 scores 20 points, and hittingD5\D4 scores 10 points.

Letr0 = 2, r1 = 3, r2 = 4, r3 = 5, r4 = 6, r5 = 7 and `= 16. Assume that a dart hits a point on the board uniformly at random and any dart hits the board with probability 1.

i) What is the probability of scoring at least 30 points?

ii) What is the probability of scoring exactly 30 points?

(2)

Figure 1

iii) What is the expected score?

Now consider a different set of rules: hittingD0 in at least 1 out of 5 independent attempts gives a win, while otherwise the game is lost. Once again assume that each dart hits a point on the board uniformly at random and each dart hits the board with probability 1. The 5 independent attempts correspond to 5 independent shots.

iv) What is the probability of winning the game?

3 Recurrences

Note that logn denotes the logarithm of base 2.

i) Let T(n) = 2T(bn/2c) +n, and T(1) = 1. Use mathematical induction to prove that T(n) = O(nlogn). Please state explicitly the base case, the induction hypothesis and the inductive step.

ii) Solve the recurrence T(n) = 2T(b√

nc) + logn, where T(1) = 1.

iii) Solve the recurrence

T(n)≤

(1 ifn= 1 1 +P

iT(ni) ifn >1, where P

ini=n, and each ni≤2n/3.

Referenzen

ÄHNLICHE DOKUMENTE

In a study about Chinese outbound FDI, released on 31 January 2013, the European Union Chamber of Commerce in China found that of the sample of 74 Chinese enterprises that had

[r]

MA-INF 1203 Discrete and Computational Geometry Wintersemester 2019/20.

The algorithm sorts the numbers stored in an array by repeatedly partitioning a range of the array with respect to a randomly chosen pivot element.. Assume that the input numbers

Use the definition of the Voronoi diagram that includes an additional vertex at infinity that is incident to all unbounded Voronoi edges~. It also stores a pointer IncidentEdge(v) to

Deadline: 7 January before noon (To be discussed: 7/8. The query algorithm must be adaptive to , meaning that larger values of should lead to faster running time. Analyze the

MA-INF 1203 Discrete and Computational Geometry Wintersemester 2019/20..

MA-INF 1203 Discrete and Computational Geometry Wintersemester 2019/20.