What determines the type of wave motion in a medium?

Type of wave motion is determined by (i) nature of the medium, (ii) mode of excitation of wave motion.