亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美va在线观看_成人黄网大全在线观看_日韩精品一区二区三区中文_亚洲一二三四区不卡

CS 161代做、Java/Python程序代寫(xiě)

時(shí)間:2024-04-25  來(lái)源:  作者: 我要糾錯(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ī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:COMP2013代做、代寫(xiě)Data Structures and Algorithms
  • 下一篇:代做COMP3211、Python/Java程序代寫(xiě)
  • 無(wú)相關(guān)信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲(chóng)
    油炸竹蟲(chóng)
    酸筍煮魚(yú)(雞)
    酸筍煮魚(yú)(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚(yú)
    香茅草烤魚(yú)
    檸檬烤魚(yú)
    檸檬烤魚(yú)
    昆明西山國(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

    日韩av高清在线| 97视频在线| 制服黑丝国产在线| 久久精品电影| 少妇精品久久久一区二区三区| 国产精品久久久久一区二区三区| 好久没做在线观看| av资源网站在线观看| 欧美韩国一区二区| 国产精品久久久久久久| 一区二区三区视频在线看| 国产三级电影在线播放| 欧美午夜精品久久久久久久| 激情综合亚洲| 第四色在线一区二区| 亚洲成色精品| 草草久视频在线观看电影资源| 日韩1区2区| 亚洲激情在线激情| 色偷偷88欧美精品久久久| 亚洲欧美乱综合| 国产三级欧美三级日产三级99 | 国产亚洲永久域名| 国产精品1024| 欧美日韩人人澡狠狠躁视频| 色婷婷狠狠综合| 国产精品二三区| 国产福利一区二区三区视频在线 | 国产日韩欧美制服另类| 国内亚洲精品| 麻豆免费在线视频| 日韩欧美在线观看一区二区| av资源种子在线观看| av在线播放一区二区| proumb性欧美在线观看| 成人h动漫精品| 欧美—级在线免费片| 国产ts人妖一区二区| 小次郎av收藏家| 日韩精品中文字幕在线一区| 精品国产一区二区亚洲人成毛片 | 成人黄页毛片网站| 欧美伊人精品成人久久综合97| 96av在线| 蜜桃一区av| av网站免费观看| 国产亚洲成av人在线观看导航| 动漫av一区| 欧美激情偷拍自拍| 好吊一区二区三区| 福利一区福利二区| 亚洲欧洲国产日韩| 欧洲黄色一区| 在线91av| 色先锋av资源在线| 国产成人天天5g影院在线观看| 亚洲国产高清在线观看| 亚洲午夜一区二区| 日本亚洲欧洲无免费码在线| 亚洲精品一区二区在线播放∴| 成人一区在线看| 天天夜夜人人| av男人的天堂在线观看| 91精品国产91久久久久久密臀| 最新亚洲伊人网| 青青草原av在线| 日韩成人动漫| 91精品精品| 久久综合99| 青青草在线免费观看| 55av亚洲| av不卡一区二区| ●精品国产综合乱码久久久久| aaa在线观看| 成人av观看| 蜜桃成人在线视频| 香蕉精品久久| 香港成人在线视频| 久久香蕉国产线看观看99| 亚洲人成在线观看一区二区| 欧美xxxx免费虐| 欧美变态网站| 岛国精品在线观看| 午夜精品123| 四虎影视成人| 中文字幕av一区二区三区四区| 欧美精品播放| 亚洲网友自拍偷拍| 性欧美freesex顶级少妇| 日韩精品乱码免费| 欧美日韩一级二级| 久久伊人影院| 久久综合伊人| 91精品福利视频| 成人日韩在线观看| 国产精品美日韩| 成人午夜激情在线| 免费观影入口看日本视频| 亚洲一区二区视频| 伊人夜夜躁av伊人久久| 色老头在线观看| 欧美激情综合| 亚洲一区二区三区四区在线免费观看 | 欧美久久久影院| 中文字幕在线观看第一页| 竹内纱里奈兽皇系列在线观看| 欧美mv日韩| 国产免费久久精品| 久久黄色美女电影| 国产高清在线精品| 日韩丝袜情趣美女图片| 亚洲精品动态| 国产精品久久久久久久岛一牛影视| 97久久香蕉国产线看观看| 欧美日韩亚洲不卡| 国产三级久久久| 国产一区二区三区91| 欧美一卡二卡| 一区二区三区日韩欧美精品| 国产精品a久久久久| www.99com| 免费美女久久99| 香港伦理在线| 成人三级在线视频| 精品乱码一区二区三四区视频| 黄色亚洲免费| 久久久久久久影视| 99久久久久久99| 伊人在线视频| 久久影院亚洲| 欧美一三区三区四区免费在线看 | 深夜成人福利| 91麻豆蜜桃一区二区三区| 免费污视频在线观看| 亚洲女同女同女同女同女同69| 一区二区三区四区在线看| 亚洲一区二区精品久久av| 精品一区二区三| √天堂8在线网| 中日韩免费视频中文字幕| 久久久久久自在自线| 欧美精品色图| 樱桃视频成人在线观看| 中文在线网在线中文| 午夜精品影院在线观看| 日韩在线播放一区二区| 国产韩日精品| 日韩免费高清视频| 国产精品一区专区| 欧美一区二区三区婷婷| 国产日韩三级在线| 欧美成人黄色| av线上观看| 中文字幕乱码亚洲精品一区| 日韩国产专区| 欧美videos中文字幕| 一区二区电影| 亚洲高清成人影院| 国产精品18久久久久久久网站| 麻豆tv在线| 一区二区三区自拍| 猛男gaygay欧美视频| 一级毛片国产| 大荫蒂欧美视频另类xxxx| 国精产品一区一区三区mba桃花| 波多野结衣在线网站| 亚洲欧美偷拍卡通变态| 蜜臀精品久久久久久蜜臀| 亚洲伦理一区二区| a√资源在线| 成人拍拍拍在线观看| 亚洲国产精品t66y| 久久在线精品| jizz久久久久久| 白浆爆出在线观看| 久久久久免费观看| 日本中文字幕不卡| 窝窝社区一区二区| 欧美日韩在线视频免费观看| 欧美aaa一级片| 亚洲精品ww久久久久久p站| 亚洲一区在线| 桃花岛成人影院| 天天夜夜人人| 亚洲免费观看高清完整版在线观看| 911久久香蕉国产线看观看| www.51av欧美视频| 99视频入口| 欧美视频精品在线观看| 性色av一区| 91精品在线免费| 床上的激情91.| 免费av网站大全久久| 综合日韩在线| 九九视频免费观看视频精品| 91另类视频| 成人午夜一级| 国产成人av毛片| 国产精品一区免费在线| 国产素人视频在线观看|