T5.1 Sum of Unit Vectors

a)

by linearity of expected value:

case then

case since and are chosen independently

Therefore:

b)

Since and we know that there exists at least one such that there exists at least one such that the minimal possible norm of

c)

let be a random variable with where is defined as above using Markov inequality: Thus

d)

Algorithm: We choose randomly and independently from , then check if . We repeat this process until we find a valid answer

from c) we get ( defined as in b) So each trial succeeds with probability at least

The expected number of trials follows geometric distribution, so the expected number of trials is at most

Each trial requires computing which costs time (assume each addition between vectors takes ) Since the expected number of trials is in , the total expected running time is also