Q-switching and mode locking. Quaternions definition. TOPSS program. Disproportionate stratified random sampling formula.