[SOLVED] COMP4200 Homework 2

20.00 $

Programming resource
Digital learning resource
Category:
โœ“ Practical programming resource
โœ“ Suitable for guided study and reference
โœ“ Tutor guidance available when needed

Description

5/5 - (3 votes)

2.

– ๐ด & ๐ต are both regular languages, so according to the theorem that regular languages are closed under complement proves that ๐ดฬ… & ๐ตฬ… are also regular languages.
– Under the theorem that regular languages are closed under intersection and union, we know that equations like ๐ด โˆฉ ๐ต = ฬ…๐ดฬ…ฬ…ฬ…โˆชฬ…ฬ…ฬ…๐ตฬ…ฬ… are regular.
– ๐ด โˆ’ ๐ต can be written as ๐ด โˆฉ ๐ตฬ…
– As said earlier, under the theorem that regular languages are closed under complement ๐ด & ๐ตฬ… are regular.
– Finally since ๐ด โˆฉ ๐ตฬ… is a regular language, ๐ด โˆ’ ๐ต is also a regular language.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.