0 votes 0 votes How do we derive a regular expression from a given language? Theory of Computation theory-of-computation regular-expression + – Devshree Dubey asked Aug 15, 2018 Devshree Dubey 266 views answer comment Share Follow See 1 comment See all 1 1 comment reply Shaik Masthan commented Aug 15, 2018 reply Follow Share Draw the FA for the language Now by using ADREN'S Lemma or SET ELIMINATION Algorithm we can obtain RE 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes There's no fixed method per se, it usually comes with practice. However, for a somewhat systematic approach, you can try this: 1. Convert the language into a NFA. 2. Convert the NFA into a regex. 3. Double check if the regex you've derived is correct or not. For more info, check these links: 1. https://cs.stackexchange.com/questions/45570/how-do-i-find-a-regular-expression-for-a-particular-language 2. https://cs.stackexchange.com/questions/2016/how-to-convert-finite-automata-to-regular-expressions 3. https://cs.stackexchange.com/questions/1331/how-to-prove-a-language-is-regular 4. (more advanced) https://cstheory.stackexchange.com/questions/9221/known-algorithms-to-go-from-a-dfa-to-a-regular-expression/9261#9261 goxul answered Aug 15, 2018 goxul comment Share Follow See 1 comment See all 1 1 comment reply Devshree Dubey commented Aug 15, 2018 reply Follow Share Thank you. :) 0 votes 0 votes Please log in or register to add a comment.