# Initialization of perceptron weights

In this deck about the perceptron, there's a pseudo-code for the batch version on page 12. During each iteration of the inner loop, the dot product $y_ix_i\theta$ is compared to 0, however since the weights ($\theta$) are initialized to $\vec{0}$, and only updated in the outer loop, this product will stay the same throughout all first N iterations of the inner loop. Thus, wouldn't it be better to initialize the weights to the first instance or a random vector?