Theories of Computation: Summative 1

Java Python Theories of Computation: Summative Assignment 1

due on Mon 12 Feb, 15:00

Exercise 1. Consider the following εNFA:

(A) Give the NFA that is achieved by removing the above εNFA’s ε-transitions (using the algorithm taught),

[2 points]

(B) Give the DFA that is achieved by determinising your answer to (A),

[2 points]

(C) Give the minimal DFA that is achieved by minimising your answer to (B).

[2 points]

Exercise 2. Consider the language L of those words matched by a ∗ (ba) ∗ that contain twice as many a’s as b’s (e.g. aba, aababa are accep Theories of Computation: Summative Assignment 1 ted, but not aaba or baa). Show that this language is not regular.

[4 points]

Exercise 3. For any regular expression E and n ∈ N, we write En as an abbreviation for the regular expression

In particular, considering the alphabet {x}, we have the regular expressions A = x3 and B = x7 , where A only accepts the word xxx and B only accepts the word xxxxxxx. It turns out that for every natural number n > 11, we can express xn by only concatenating the expressions A and B (e.g. x12 = AAAA and x38 = BABBBB).

(A) Show that this is the case for x13 and x14 ,

[2 points]

(B) Prove that this is the case for all n > 11 by using (course-of-values) induction         

  • 4
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值