久久久久久精品无码人妻_青春草无码精品视频在线观_无码精品国产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在线观看_国产色无码专区在线观看

    国产一区二区在线免费播放| 老司机午夜av| 成熟了的熟妇毛茸茸| 精产国品一二三区| 杨幂毛片午夜性生毛片 | 久久久国产精华液999999 | 人妻精品无码一区二区三区| 国产精品12p| 中文字幕线观看| 91日韩视频在线观看| 18禁免费无码无遮挡不卡网站| 天天做天天躁天天躁| 免费观看国产视频在线| 中文字幕色网站| 九九九九九国产| 日本高清久久久| 色噜噜狠狠一区二区| 国产wwwxx| 青青青在线视频免费观看| 免费欧美一级视频| 黄色一级片播放| 中文字幕日本最新乱码视频| 可以在线看的av网站| 免费拍拍拍网站| 日本丰满少妇xxxx| 久久99中文字幕| 久久国产精品视频在线观看| 久久综合色视频| 成人在线看视频| 97公开免费视频| 孩娇小videos精品| 91精品999| www.-级毛片线天内射视视| 最新av网址在线观看| 无码日本精品xxxxxxxxx| 男人添女人荫蒂免费视频| 蜜臀av无码一区二区三区| 欧美日韩一道本| 无遮挡又爽又刺激的视频| 亚洲黄色a v| www.久久久久久久久久久| 在线视频一二三区| 成年人视频网站免费| 欧美v在线观看| 污网站免费在线| 亚洲国产精品影视| 日韩精品在线观看av| 国产美女三级视频| av污在线观看| 好色先生视频污| www.av毛片| 日韩欧美精品在线观看视频| 视色视频在线观看| 天天想你在线观看完整版电影免费| 日韩亚洲欧美视频| 欧美精品一区二区三区免费播放| 日韩av一卡二卡三卡| 成人一区二区av| 99爱视频在线| 亚洲涩涩在线观看| 性一交一乱一伧国产女士spa| 十八禁视频网站在线观看| 亚洲欧美日韩一二三区| 国产综合中文字幕| 超碰在线播放91| 成人在线观看毛片| 久久综合久久色| 国产一级片91| 亚洲精品一二三四五区| 国产一级黄色录像片| 北条麻妃av高潮尖叫在线观看| 亚洲第一精品区| 欧美污视频网站| 强开小嫩苞一区二区三区网站 | 日韩一级片播放| 影音先锋成人资源网站| 成年人网站大全| 欧美日韩午夜爽爽| 日韩av片网站| www.夜夜爱| 三上悠亚av一区二区三区| 男的插女的下面视频| 欧美一级特黄a| 黄色激情在线视频| 午夜av中文字幕| 六月丁香婷婷在线| xxxxxx在线观看| 久久黄色片网站| 日韩免费视频播放| av磁力番号网| 在线观看免费av网址| 日韩精品 欧美| 超级碰在线观看| 免费看涩涩视频| 亚洲色欲综合一区二区三区| 国产片侵犯亲女视频播放| 992kp免费看片| 九九九在线观看视频| 久久99久久99精品| 免费观看黄色的网站| 69久久久久久| 国产日韩成人内射视频| 热99这里只有精品| av影院在线播放| 99热这里只有精品7| 亚洲77777| 福利在线一区二区三区| 国产免费黄色av| 少妇人妻大乳在线视频| 国产在线观看欧美| 欧美性受黑人性爽| 欧美又黄又嫩大片a级| 黄色手机在线视频| 男女爽爽爽视频| 欧美成人精品欧美一级乱| 日本一道本久久| 成人免费毛片在线观看| 国产在线视频综合| 青草全福视在线| 女女同性女同一区二区三区按摩| 亚洲精品永久视频| 毛片毛片毛片毛| 爱豆国产剧免费观看大全剧苏畅| 一区二区成人网| 密臀av一区二区三区| 国产福利一区视频| 国内自拍视频一区| 91制片厂毛片| 国产成年人视频网站| 一女二男3p波多野结衣| 手机视频在线观看| www.污污视频| 视频一区二区视频| 欧美一级中文字幕| 国产成人一区二区三区别| 成年人看的毛片| 日韩欧美亚洲天堂| 日韩一级在线免费观看| 亚洲少妇第一页| 国产三级国产精品国产专区50| 三级av免费观看| 最新中文字幕久久| 国产精品视频一二三四区| 国产日韩欧美精品在线观看| 国产超级av在线| 91色国产在线| 成人日韩在线视频| 中国一级黄色录像| 日本手机在线视频| 精品国产成人av在线免| 天天综合网久久| 中文字幕在线乱| 黄色大片在线免费看| 久久午夜夜伦鲁鲁一区二区| 最新免费av网址| 久操手机在线视频| 国产亚洲天堂网| 五月天中文字幕在线| 日本a级片在线观看| 毛片在线播放视频| 韩国中文字幕av| 老汉色影院首页| 激情综合在线观看| 制服丝袜中文字幕第一页| 日本大片免费看| 日本999视频| 在线观看三级网站| 免费在线观看日韩视频| 亚洲天堂网站在线| 欧美啪啪免费视频| 欧美成人福利在线观看| 久久精品无码中文字幕| 韩国日本美国免费毛片| 久久精品在线免费视频| 精品免费国产一区二区| 99精品视频网站| 欧美在线观看成人| 久久人人爽人人片| 99精品在线免费视频| 午夜国产福利在线观看| 无码专区aaaaaa免费视频| 911福利视频| 欧美 丝袜 自拍 制服 另类 | 亚洲国产午夜精品| 国产毛片视频网站| aaa一级黄色片| 国产91对白刺激露脸在线观看| 免费成年人高清视频| 5月婷婷6月丁香| 欧美性受xxxx黑人猛交88| 国产免费人做人爱午夜视频| 日韩中文在线字幕| 9久久婷婷国产综合精品性色| a级片一区二区| 99sesese| 日韩少妇内射免费播放18禁裸乳| 2025韩国大尺度电影| 美女黄色片视频| 每日在线更新av| 欧美精品在欧美一区二区|