久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

CS 161代做、Java/Python程序代寫

時(shí)間:2024-04-25  來源:  作者: 我要糾錯(cuò)



CS 161, Spring 2024: Homework 2
Homework 2: NFAs and Regular Expressions
0. (Ungraded exercise) We rushed/didn’t get to the exercises at the end of worksheet 3
(copied below for convenience). Make sure you understand what is wrong with these
proofs.
(a) Here is a false statement with a bad proof. What is wrong with the proof?
Theorem (Not actually true). Every binary language is regular.
Proof. Let A be any language. Here is a DFA M:
M q0
0,1
Note that any string in A is accepted by this DFA. Thus, this DFA recognizes A,
so A is regular.
(b) Here is a false statement with a bad proof. What is wrong with the proof?
Theorem (Not actually true). The language A = {00, 11} is not regular.
Proof. Here is a DFA M:
M q0 q1
0 1
1
0
The string 11, which is in A, is not accepted by this DFA. Thus, the DFA M does
not recognize A, so A is not regular.
1. (10 points) Let L be the language of binary strings with at least two 0s or at least
three 1s.
(a) (5 points) Draw a state diagram for an NFA that recognizes L.
(b) (5 points) Recall that an NFA is a 5-tuple N = (Q, Σ, δ, q0, F) for finite set of states
Q, finite set of alphabet characters Σ, transition function δ : Q × Σε → P(Q),
start state q0 ∈ Q, and accept states F ⊂ Q. Describe your NFA as a 5-tuple.
2. (10 points) Prove the following theorem by generalizing the construction from Worksheet 6.
Theorem. The set of regular languages are closed under concatenation.
(c) Sara Krehbiel, Ray Li 1
CS 161, Spring 2024: Homework 2
That is, prove that, for any two regular languages A and B, the language A ◦ B =
{ab : a ∈ A : b ∈ B} is regular.
3. (5 points) Consider the NFA N = ({1, 2, 3}, {0, 1}, δ, 1, {3}) with δ as depicted below (this is the same one from Quiz 6). Give a regular expression for the language
recognized by this NFA.
N 1 2 3
ε
1
0
1 0
4. (10 points) Find an NFA that recognizes the language of (0◦1)∗ ◦(0∪1) (the alphabet is
Σ = {0, 1}). Include both a state diagram and a formal specification of your automaton
as a 5-tuple.
5. (10 points) Let A be the language of strings over Σ = {0, 1} from the first day of class:
A = {1
a01b01a+b
: a, b ≥ 0}. Prove that A is not regular. (An informal interpretation
of this result is: DFAs cannot add in unary) Hint: 1
6. (15 points) We see in class on 4/15 how to convert any k-state NFA into an equivalent
2
k
-state DFA. This problem shows that this exponential blowup in the number of states
is necessary. Let A ⊂ {0, 1}
∗ be the set of all strings (of length at least 101) that have
a 0 exactly 100 places from the right hand end. That is
A = {w : |w| ≥ 101, w|w|−100 = 0}. (1)
(a) (5 points) Draw the state diagram for an NFA with 101102 states that recognizes
A. (You can use “· · · ” and don’t have to draw all 101102 states, as long as it’s
clear what the states/transitions would be in the omitted states) [Ray: Update: I
think you need 102 states. If you have 103 or 104 states, that’s fine.]
(b) (10 points) Show that no DFA on less than 2100 states can recognize A. Hint:2
1
In this class, we learn several methods for proving a language A is regular: constructing a DFA recognizing A, constructing an NFA recognizing A, finding a regular expression for A. However, we only learn
one method for proving a language is not regular. What is it?
2Give a proof by contradiction and assume such a DFA exists. Apply pigeonhole to all 2100 strings of
length 100 to get two strings x and y of length 100 that end up at the same state after digesting. Derive a
contradiction by considering the strings xz and yz for some carefully chosen string z.
(c) Sara Krehbiel, Ray Li 2

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

標(biāo)簽:

掃一掃在手機(jī)打開當(dāng)前頁(yè)
  • 上一篇:COMP2013代做、代寫Data Structures and Algorithms
  • 下一篇:代做COMP3211、Python/Java程序代寫
  • 無相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明西山國(guó)家級(jí)風(fēng)景名勝區(qū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗(yàn)證碼平臺(tái) 理財(cái) WPS下載

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产VA在线观看_国产色无码专区在线观看

    超碰在线播放91| 波多野结衣 作品| 久久精品在线免费视频| 91好吊色国产欧美日韩在线| 色一情一区二区| 亚洲国产精品无码观看久久| 在线免费观看av的网站| 国产精品久久中文字幕| 国产又爽又黄ai换脸| 妺妺窝人体色www在线小说| 法国空姐在线观看免费| 精品久久久久久久无码 | 免费观看精品视频| 中国一级黄色录像| 三级a在线观看| 欧美不卡在线播放| 特级西西444| 亚洲 欧洲 日韩| 鲁一鲁一鲁一鲁一av| 少妇人妻在线视频| 日韩一区二区高清视频| 天天av天天操| 污污动漫在线观看| 9久久婷婷国产综合精品性色| av高清在线免费观看| 国产在线无码精品| 五月天婷婷在线观看视频| 天天碰免费视频| avav在线看| 每日在线更新av| 欧美又粗又长又爽做受| 欧美日韩视频免费在线观看| 亚洲欧美aaa| 黄色在线视频网| 我要看一级黄色大片| 成熟老妇女视频| 波多野结衣50连登视频| 日韩精品一区在线视频| 久久久久久久久久伊人| 日韩视频一二三| 青青视频免费在线| 热久久最新地址| 成人在线观看毛片| 欧美日韩激情四射| 久久这里只有精品18| 天天想你在线观看完整版电影免费| 青青草原播放器| 波多野结衣激情| 中国女人做爰视频| 大胆欧美熟妇xx| 六月婷婷激情综合| 成人免费观看在线| 妞干网在线视频观看| 欧美精品久久久久久久久久久| 香港三级日本三级a视频| 欧美日韩不卡在线视频| 免费看国产曰批40分钟| 欧美性大战久久久久xxx| 成人免费观看毛片| 蜜臀视频一区二区三区| 天天干天天操天天玩| 亚洲图片 自拍偷拍| 免费看黄色a级片| 久久精品视频16| 99视频在线免费| 精品亚洲一区二区三区四区| 久国产精品视频| 激情视频小说图片| 成人免费观看cn| 91热这里只有精品| 992tv人人草| 日本a在线天堂| 18禁免费无码无遮挡不卡网站| 成人精品视频一区二区| 日日干日日操日日射| a级网站在线观看| 国产黄色一级网站| 欧美成人三级在线播放| 欧美xxxxxbbbbb| 精品少妇在线视频| 色多多视频在线播放| 日本网站在线看| 少妇高潮毛片色欲ava片| 手机看片福利盒子久久| 欧美 另类 交| 男人日女人下面视频| 久热精品在线播放| 久久av高潮av| 丝袜制服一区二区三区| 麻豆md0077饥渴少妇| 国产主播在线看| 在线观看视频黄色| 国产亚洲欧美在线视频| 99视频在线视频| 在线观看三级网站| 黄色三级视频片| 国产黄色激情视频| 午夜免费一区二区| 青青青在线观看视频| 韩国日本美国免费毛片| 永久免费网站视频在线观看| 久久美女福利视频| 欧美精品一区二区性色a+v| 国产精品97在线| 久久人妻无码一区二区| wwwwxxxx日韩| 日韩黄色短视频| 天天久久综合网| 欧美精品无码一区二区三区| 伊人再见免费在线观看高清版| 精品久久久久久久无码 | 日韩免费高清在线| 国产乱人伦精品一区二区三区| 日韩视频在线免费看| 黄色成人在线免费观看| 色一情一区二区三区| 日韩精品视频久久| 菠萝蜜视频在线观看入口| 超碰在线公开97| 777久久久精品一区二区三区 | 91网站在线观看免费| 亚洲综合欧美激情| 无码中文字幕色专区| 在线无限看免费粉色视频| 日本成人在线免费视频| 老太脱裤让老头玩ⅹxxxx| 国产乱子夫妻xx黑人xyx真爽 | 国产av麻豆mag剧集| 欧洲美女和动交zoz0z| 天天干天天爽天天射| 欧美视频在线免费播放| 91.com在线| 日韩中文在线字幕| www,av在线| 亚洲欧美aaa| 九九热免费精品视频| 国产精品wwwww| 国模吧无码一区二区三区| 精品丰满人妻无套内射| 欧美国产视频一区| 色乱码一区二区三区熟女 | 欧美视频免费看欧美视频| eeuss中文| 亚洲一区二区三区四区精品| www.国产视频.com| 成人免费在线观看视频网站| 免费看a级黄色片| 日韩有码免费视频| 国产一区亚洲二区三区| 国产乱子伦农村叉叉叉| 欧美日韩成人免费视频| 青青青在线视频播放| 国产不卡一区二区视频| 人妻夜夜添夜夜无码av| 日韩a级在线观看| 777av视频| 大肉大捧一进一出好爽视频| 国产资源在线视频| 亚洲色成人一区二区三区小说| 男人日女人视频网站| 91视频 -- 69xx| 欧美极品欧美精品欧美图片| 欧美日韩在线视频一区二区三区| 国产一区二区网| 成熟老妇女视频| 亚洲成人福利在线观看| 中文字幕第36页| 狠狠干狠狠操视频| 日韩高清在线一区二区| 在线观看18视频网站| 2018中文字幕第一页| 国产人妻777人伦精品hd| 久久无码高潮喷水| 超碰在线播放91| 99视频在线观看视频| 91精品国产毛片武则天| 亚洲 自拍 另类小说综合图区| 免费在线观看亚洲视频| 日本爱爱免费视频| 午夜精品免费看| 强开小嫩苞一区二区三区网站| 久久99久久久久久| 免费黄色特级片| 福利视频999| 日本一级黄视频| 无码人妻h动漫| 国产精品久久久久久9999| 亚洲一区 在线播放| 成人在线免费在线观看| www亚洲成人| 毛片在线视频观看| 欧美亚洲一二三区| 在线观看免费av网址| 欧美美女黄色网| 日日摸日日碰夜夜爽av| av免费一区二区| 草草视频在线免费观看| 999在线免费视频| 日韩视频一二三| 北条麻妃在线一区|