1.

Which among the following is not an associative operation?(a) Union(b) Concatenation(c) Dot(d) None of the mentionedThis question was addressed to me in an online interview.My doubt stems from Building Regular Expressions topic in chapter Regular Expressions and Languages of Automata Theory

Answer»

Right answer is (d) None of the mentioned

To explain: It does not matter in which order we group the expression with the OPERATORS as they are associative. If one GETS a chance to group the expression, one should group them from left for convenience. For INSTANCE, 012 is grouped as (01)2.



Discussion

No Comment Found

Related InterviewSolutions