On the computation of generalized standard bases