Exploiting N-Gram Analysis to Predict Operator Sequences