uva12219专题

uva12219 Common Subexpression Elimination

Let the set consist of all words composed of 1-4 lower case letters, such as the words \ a “, \ b “, \ f “, \ aa “, \ fun ” and \ kvqf “. Consider expressions according to the grammar with the two