哈工大2022形式语言与自动机期末试题

具体表述的单词记不太清了,不过大体意思是这样的。

每题10分

1、Design a DFA contains both 01 and 10 as substrings.

2、Design a NFA which has equal numbers of substrings 01 and 10.

3、Design Regular Expression on {a,b}.

        (1) which has two aa's as substrings. (UP注:aaa可以视为两个aa)

        (2) which not end with aa or bb.

4、Prove with pumping lemma: {w|w has equal number of 00 and 11} is not regular language.

5、Consider a homomorphism \forall a \in \Sigma h(a)=aa, and a DFA which accept the language L on \Sigma. Design a DFA which accept h(L).

6、Design a Content-Free Grammar which can describe the CFL {w|w has just two noempty 0's blocks which has equal length}. (UP注:考试时老师改题将just去掉了,即只要有相等长度的0的块(run)即可)

7、Design a deterministic PDA which accept \left \{ a^nb^{2n+1}|n\geq 1 \right \}.

8、Consider the CFG:

        S->SAS|AA|ε

        A->00|ε

        (1) Eliminate ε-transition.

        (2) Eliminate unit-production in the result grammar.

        (3) Transfer the grammar to Chomsky Normal Form.

9、The follwing four transitions is a PDA, which starting state is q,empty stack symbol is Z. Convert the PDA to a CFG.

        (1) δ(q,0,Z) = {(q,X)}

        (2) δ(q,0,X) = {(q,XX)}

        (3) δ(q,1,X) = {(r,X)}

        (4) δ(r,0,X) = {(r,ε)}

10、Design a Turing Machine accept the language \left \{ a^{i}b^{j}c^{k}|k=i\times j, k>0 \right \}.

  • 6
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值