When a particle of mass m is attached to a vertical spring of spring constant k and released, its motion is described by y(t)=y0sin2ωt , where ' y ' is measured from the lower end of unstretched spring. Then ω is :
(1) 21y0g
(2) y0g
(3) 2y0g
(4) y02g