狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线

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

時間:2024-04-25  來源:  作者: 我要糾錯



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

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

標簽:

掃一掃在手機打開當前頁
  • 上一篇:COMP2013代做、代寫Data Structures and Algorithms
  • 下一篇:代做COMP3211、Python/Java程序代寫
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網下載 歐冠直播 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    狠狠综合久久久久综合网址-a毛片网站-欧美啊v在线观看-中文字幕久久熟女人妻av免费-无码av一区二区三区不卡-亚洲综合av色婷婷五月蜜臀-夜夜操天天摸-a级在线免费观看-三上悠亚91-国产丰满乱子伦无码专区-视频一区中文字幕-黑人大战欲求不满人妻-精品亚洲国产成人蜜臀av-男人你懂得-97超碰人人爽-五月丁香六月综合缴情在线
  • <dl id="akume"></dl>
  • <noscript id="akume"><object id="akume"></object></noscript>
  • <nav id="akume"><dl id="akume"></dl></nav>
  • <rt id="akume"></rt>
    <dl id="akume"><acronym id="akume"></acronym></dl><dl id="akume"><xmp id="akume"></xmp></dl>
    免费超爽大片黄| www.黄色网址.com| 婷婷免费在线观看| 在线免费av播放| 国产a级片免费看| www.欧美黄色| 色综合av综合无码综合网站| 青青在线视频观看| 国产成人美女视频| 免费看毛片的网址| 搡女人真爽免费午夜网站| 久久久精品高清| 久久99久久99精品| 丁香婷婷激情网| 亚洲欧美日韩不卡| 99999精品视频| 激情成人在线观看| 日本a在线免费观看| 色乱码一区二区三区在线| 亚洲精品天堂成人片av在线播放 | 激情综合网俺也去| 国产三级中文字幕| 国产亚洲综合视频| youjizz.com亚洲| 欧美一级视频免费看| 老司机久久精品| 国产极品在线视频| 手机在线视频你懂的| 免费在线观看日韩视频| 欧美交换配乱吟粗大25p| 无码少妇一区二区三区芒果| 欧美另类videosbestsex日本| 免费在线观看的毛片| a级片一区二区| 手机在线国产视频| 久久久久久久久久久免费视频| 佐佐木明希av| 午夜免费看视频| 久久精品免费一区二区| 国产情侣第一页| 欧美专区第二页| 色播五月综合网| 成人在线观看黄| 免费国产黄色网址| 伊人再见免费在线观看高清版| 伊人网在线综合| 欧美xxxxx在线视频| 国产一级做a爰片久久毛片男| 三级性生活视频| 国产一伦一伦一伦| 男女污污的视频| 国产精品99久久免费黑人人妻| 国内精品视频一区二区三区| 日本中文字幕一级片| 美国av在线播放| 日本黄色a视频| www.偷拍.com| 女人床在线观看| www.69av| 岛国大片在线播放| 农民人伦一区二区三区| 少妇人妻无码专区视频| 人人妻人人澡人人爽欧美一区| 一二三四中文字幕| 精品国产一区二区三区无码| 喜爱夜蒲2在线| 成年人看的毛片| 免费欧美一级视频| 日日碰狠狠躁久久躁婷婷| 国产精品亚洲a| 国产一二三区av| 三年中文高清在线观看第6集| 午夜啪啪福利视频| 欧美日韩福利在线| 能在线观看的av| 亚洲精品www.| 久久久久久久免费视频| 奇米777在线| 成年丰满熟妇午夜免费视频| 九九热只有这里有精品| 日本欧美黄色片| 国产精品自拍视频在线| 2022中文字幕| 9色视频在线观看| 人人妻人人添人人爽欧美一区| www.日本在线播放| 国产精品69页| 国产999免费视频| 日本欧美视频在线观看| 无码人妻丰满熟妇区毛片| 日日噜噜夜夜狠狠| 四虎1515hh.com| 日日摸日日碰夜夜爽无码| 成品人视频ww入口| 亚洲一区在线不卡| 特级西西444| 天天天干夜夜夜操| 老司机午夜网站| wwwxxx黄色片| 日本大片免费看| 妓院一钑片免看黄大片| 91制片厂免费观看| 黄色a级片免费| 国产一二三四五| 国产精品一区二区羞羞答答| 超碰97在线看| 中文字幕永久视频| 人妻无码久久一区二区三区免费| 成年人在线观看视频免费| 玖玖精品在线视频| 国产精品视频分类| 国内精品视频一区二区三区| 国产探花在线观看视频| 国产黄页在线观看| 一本二本三本亚洲码| 18岁视频在线观看| 无罩大乳的熟妇正在播放| 中文字幕一区二区在线观看视频| 北条麻妃在线视频观看| 一级黄色片播放| 日本黄色播放器| 在线免费看污网站| 国产高潮免费视频| 欧美黄网站在线观看| 久久av综合网| 欧美日韩中文字幕在线播放| 不卡的在线视频| 奇米影视四色在线| 亚洲少妇第一页| 欧美性久久久久| 18禁免费无码无遮挡不卡网站| 日韩精品免费一区| 日本成人性视频| 老司机午夜网站| 今天免费高清在线观看国语| 精品少妇人妻av一区二区| 成人不卡免费视频| 日本成人性视频| 亚洲小视频在线播放| 日韩video| 国产美女主播在线播放 | 杨幂毛片午夜性生毛片| 91最新在线观看| 天天影视色综合| 强伦女教师2:伦理在线观看| 免费观看国产视频在线| 轻点好疼好大好爽视频| 国产视频在线观看网站| 欧美精品久久久久久久久久久| 日韩国产一级片| 日批视频在线免费看| 亚洲人辣妹窥探嘘嘘| 性欧美在线视频| 国产在线视频综合| 男女高潮又爽又黄又无遮挡| 国产一线二线三线在线观看| 在线能看的av网站| www成人免费| 国产偷人视频免费| 亚洲自拍第三页| 丰满少妇大力进入| 成人性做爰aaa片免费看不忠| 天天色综合天天色| 国产免费色视频| 男女高潮又爽又黄又无遮挡| 手机看片福利日韩| 亚洲国产一二三精品无码| 成人在线免费观看av| 天堂网在线免费观看| 成人午夜免费在线视频| 999精品网站| 一二三四中文字幕| 中文字幕在线观看第三页| 亚洲第一综合网站| 日韩欧美在线免费观看视频| 国内av一区二区| 国产l精品国产亚洲区久久| 性欧美在线视频| 免费午夜视频在线观看| 永久免费在线看片视频| 免费av网址在线| 奇米影视四色在线| 99视频在线免费播放| 999久久久精品视频| 国产中文字幕视频在线观看| 午夜啪啪小视频| 欧美牲交a欧美牲交aⅴ免费真| 神马午夜伦理影院| 一起操在线视频| 日日摸天天爽天天爽视频| 丁香六月激情网| 一本二本三本亚洲码| 久热精品在线播放| 成人在线免费观看av| 草草视频在线免费观看| 波多野结衣免费观看| 我要看一级黄色大片| 精品国产免费av| 日本欧美视频在线观看| 国产精品无码电影在线观看|