Methods of constructing optimal stabilizers