亚洲十八**毛片_亚洲综合影院_五月天精品一区二区三区_久久久噜噜噜久久中文字幕色伊伊 _欧美岛国在线观看_久久国产精品毛片_欧美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

    亚洲国产精品v| 婷婷国产精品| 678五月天丁香亚洲综合网| 国产91丝袜在线播放| 久久伊人影院| 日韩欧美电影在线| 濑亚美莉vs黑人在线观看| 国产精品国产自产拍高清av王其| 国产成人一区二区三区影院| 欧洲精品二区| 日本中文字幕电影在线免费观看| 疯狂做受xxxⅹ高潮视频免费| 国产午夜精品一区二区三区嫩草 | 国产精品99久| 久草免费在线| 91精品国产福利在线观看| 奇米一区二区三区| 亚欧美中日韩视频| 超碰成人在线免费| 91精品在线麻豆| 国产欧美一区二区三区鸳鸯浴| 免费一级欧美在线大片| 人人九九精品| 欧美日韩免费一区二区三区视频| 青青草综合网| 色狠狠一区二区三区| 网上成人av| 国产精品国产三级国产普通话99| 9999精品成人免费毛片在线看| 亚洲情趣在线观看| 久久久不卡影院| 国产精品欧美一区二区三区不卡 | 大香伊人久久精品一区二区| 91丨porny丨国产| 精品视频在线观看免费观看| 精品国产乱码久久久久久闺蜜 | 少妇高潮露脸国语对白| 国产成都精品91一区二区三| 成功精品影院| 久久.com| 久久这里只有精品首页| www.爱久久| 成人黄色免费| 色婷婷精品大在线视频| 男女男精品视频网| 亚洲男人av| 日韩黄色网址| 精品日韩中文字幕| 国产精品一区二区三区四区| 黄视频免费在线看| 五丁香在线视频| 亚洲最新在线观看| 国产成+人+日韩+欧美+亚洲| 成人久久网站| 成人区精品一区二区不卡| 一本一本久久a久久精品综合麻豆| 自拍视频亚洲| 台湾色综合娱乐中文网| 在线天堂日本| 天天色天天操天天做| 国产精品国产三级国产aⅴ中文| 日韩欧美自拍| 日韩在线亚洲| 黄色网址在线免费观看| 中文字幕21页在线看| 成人在线视频播放| 激情综合电影网| 亚洲视频小说图片| 2019一级黄色毛片免费看网| 天堂中文av在线资源库| 欧美久久一级| 亚洲高清免费视频| av资源网站在线观看| 老牛国内精品亚洲成av人片| 国产精品18久久久| 精品99一区二区| 亚洲国产伊人| 国产酒店精品激情| 日韩欧美黄色影院| 麻豆久久久久| 久久国产视频网| 日韩欧美高清在线| 亚洲一区av| 国产成人精品免费视频网站| 日韩免费电影网站| 国产美女亚洲精品7777| 国产成人午夜精品影院观看视频| 欧美一二三四区在线| 男人皇宫亚洲男人2020| 美国十次了思思久久精品导航 | 欧美一区欧美二区| 欧美日韩在线观看首页| 99综合在线| 欧美私人免费视频| 吞精囗交69激情欧美| 经典一区二区三区| 99不卡视频| 亚洲第一福利专区| 一区二区不卡在线播放| 色www永久免费视频首页在线| 影音先锋亚洲一区| 欧美人狂配大交3d怪物一区| 国产情侣一区二区三区| 国产馆精品极品| 日日噜噜噜夜夜爽爽狠狠| 国产欧美日韩影院| 亚洲成人动漫av| 亚洲一二三四| 成人亚洲一区二区一| 视频一区二区三区在线看免费看| 日韩欧美综合| 欧美怡红院视频| 日韩黄色三级| 欧美国产禁国产网站cc| 色视频在线免费观看| 免费中文字幕日韩欧美| 天天干夜夜夜操| 禁果av一区二区三区| 一本一道久久a久久精品| 日韩深夜福利网站| 国产精品久久久久一区二区三区共| 黄色精品在线观看| 精东粉嫩av免费一区二区三区| 色播视频在线观看| 精品福利电影| qvod激情图片| 欧美亚洲不卡| 完整版免费av片| 欧美成免费一区二区视频| 欧美日韩国产成人在线免费| 欧美大胆视频| 在线观看www91| 黄色网一区二区| 91久久奴性调教| 神马日本精品| 欧美三级午夜理伦三级中视频| 欧美一级全黄| 欧美高清视频不卡网| 精品日韩一区| 先锋av资源| 亚洲精品乱码久久久久久蜜桃麻豆| 91xxxxx| 欧美军人男男激情gay| 日韩一区二区免费在线电影| 成人直播大秀| 99在线欧洲视频| 久久精品30| 91欧美在线视频| 99精品一区二区三区| 国产乱码午夜在线视频| 亚洲欧洲精品天堂一级| 国产亚洲高清一区| 色香蕉成人二区免费| 欧美色就是色| 国产精美视频| 久久99久久99| 操喷在线视频| 综合婷婷亚洲小说| y111111国产精品久久久| 欧美高清hd18日本| 在线中文一区| 黄色在线视频观看网站| www.欧美日韩| 精品国产黄a∨片高清在线| 欧美视频一区二区三区…| 色一区二区三区四区| 免费人成短视频在线观看网站| 日本怡春院一区二区| 色呦呦在线看| 亚洲va天堂va国产va久| 国产综合久久久| 922tv免费观看在线| 成人晚上爱看视频| 123成人网| 欧美一区二区在线观看| 日韩精品欧美精品| 九色porny丨国产首页在线| 精品国产精品三级精品av网址| 91亚洲国产成人久久精品| 中文字幕在线中文字幕二区| 99久久99精品久久久久久| 成人噜噜噜噜| www.777色| 成人夜色视频网站在线观看| 玖玖精品在线| 精品国产一区二区三区久久影院| 免费看黄色91| 日韩欧美一区二区三区在线观看| 日本韩国一区二区三区| 亚洲制服少妇| 欧美aaaaa性bbbbb小妇| 欧美日韩高清一区| 久久精品免费观看| 国产亚洲欧美日韩精品一区二区三区 | 国产精品欧美极品| 国产在线日韩精品| 麻豆av在线导航| 欧洲精品中文字幕| 国产在线观看免费一区| 深夜福利一区二区三区|