>This is in general very difficult. There is essentially no better method >but a brute force search. Not exactly. You can calulate Groebner basis with deglex ordering. Then normal form gives you the word of the minimal length. Victor Ufnarovski