psd algorithms