精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕

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)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

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

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

    精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕
    <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
    <ul id="e4iaa"></ul>
    <blockquote id="e4iaa"><tfoot id="e4iaa"></tfoot></blockquote>
    • <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
      <ul id="e4iaa"></ul>
      <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp><ul id="e4iaa"></ul>
      <ul id="e4iaa"></ul>
      <th id="e4iaa"><menu id="e4iaa"></menu></th>
      亚洲一区二区人妻| 亚洲精品视频在线观看免费视频| 国产露脸国语对白在线| 在线播放亚洲精品| 麻豆久久久久久久久久| 国产精品美女久久久久av爽| a在线观看免费视频| 五月婷婷丁香在线| 最新国产精品自拍| 熟妇高潮一区二区| 日韩免费一二三区| 天堂在线资源8| 男女一区二区三区| 美女100%露胸无遮挡| 久久精品这里有| 日韩人妻无码一区二区三区| 在线一区二区不卡| 丰满少妇中文字幕| 丁香花五月激情| 国产精品玖玖玖| 欧美黑人一区二区| 亚洲av片一区二区三区| 天天操天天干天天舔| 麻豆av免费看| 免费观看日批视频| 欧美视频亚洲图片| 午夜在线观看一区| 亚洲国产成人va在线观看麻豆| av免费一区二区| 亚洲一区 欧美| 亚洲国产精品成人无久久精品| 成人h动漫精品一区| 欧美人一级淫片a免费播放| 一区二区三区免费在线观看视频| 国产寡妇亲子伦一区二区三区四区| 精品人妻一区二区三区日产乱码| 亚洲 日本 欧美 中文幕| 天天干天天干天天干天天| 一区二区三区播放| 18禁一区二区三区| 强伦人妻一区二区三区| 日韩永久免费视频| 在线看片中文字幕| av中文字幕免费观看| 精品无码av一区二区三区不卡| 亚洲天堂av一区二区| chinese国产精品| 黄色精品视频在线观看| 日韩一级理论片| 亚洲欧美日韩一区二区三区四区| 欧洲成人一区二区三区| 亚洲成人av免费观看| 亚洲一级中文字幕| 国产专区第一页| mm131亚洲精品| 精品人妻一区二区免费视频| 日本一区二区免费在线观看| 一区二区在线免费观看视频| 鲁丝一区二区三区| 中文字幕在线导航| 精品人妻一区二区三| 亚洲第一成人av| 国产三级日本三级在线播放| 日韩精品一区三区| www.好吊色| 久久国产美女视频| 小嫩苞一区二区三区| 97免费公开视频| 欧美一级视频免费观看| 一二三不卡视频| 日b视频在线观看| 97人妻人人澡人人爽人人精品| 午夜视频在线观看国产| 国产精品777777| 亚洲不卡在线视频| 黄色aaa大片| 一级黄色大片免费| 日韩av一区二区在线播放| 国产91免费在线观看| 亚洲av成人片无码| 亚洲欧美va天堂人熟伦| 刘亦菲毛片一区二区三区| 中国免费黄色片| 蜜桃传媒一区二区亚洲av| 99热在线观看精品| 成人av一区二区三区在线观看| 婷婷色中文字幕| 国产欧美精品一二三| 中文字幕欧美人妻精品| 亚洲涩涩在线观看| 搡老熟女老女人一区二区| caopor在线| 亚洲欧美久久久久| 天天综合天天综合| 人妻丰满熟妇av无码区hd| 少妇又紧又色又爽又刺激视频| 日韩精品在线免费看| 天天看片中文字幕| 男女男精品视频网站| 国产精品免费在线视频| 99热这里只有精品在线播放| 亚洲三级在线视频| 中文字幕69页| 伊人久久一区二区| 超碰中文字幕在线| 亚洲精品无码久久久久| 一区二区三区精彩视频| 天天摸天天碰天天爽天天弄| 狠狠躁夜夜躁人人爽视频| 国产极品在线播放| www.午夜av| 国产成人一区二区在线观看| 99久久久久久久久| 超碰中文字幕在线观看| a级在线免费观看| 91青青草视频| 成人无码精品1区2区3区免费看| 久久精品视频5| 久久精品视频6| 久久久久成人网站| 在线观看中文字幕av| 五月天婷婷视频| 尤物国产在线观看| 久久久精品福利| 久久久久中文字幕亚洲精品| 久久人妻少妇嫩草av蜜桃| 一本色道久久综合无码人妻| 黄色av一区二区三区| 老鸭窝一区二区| 天天干天天干天天操| 亚洲一区在线观| www成人在线| 精品国产一二区| 日韩毛片一区二区三区| 亚洲va在线va天堂va偷拍| 91ts人妖另类精品系列| 国产白丝一区二区三区| 黑人乱码一区二区三区av| 欧美色图亚洲激情| 伊人久久中文字幕| www.激情五月| 欧美性猛交xxxx乱大交hd| 四季av一区二区| www.av网站| 久久久久久综合网| 五月婷婷深深爱| 国产高潮呻吟久久| 人妻一区二区三区四区| 中文字幕一区二区三区四区在线视频 | 天堂网视频在线| 亚洲 欧美 视频| 一二三四区在线| 精品91久久久| 中文字幕高清视频| 国产污视频在线观看| 一区二区日韩视频| 国产小视频精品| 中文字幕在线观看日| 精品国产xxx| 制服 丝袜 综合 日韩 欧美| 国产三级精品在线观看| 日韩精品电影一区二区三区| 在线观看日韩精品视频| 国产麻豆剧传媒精品国产av| 亚洲va天堂va欧美ⅴa在线| 国产一区二区三区中文字幕 | 一级少妇精品久久久久久久| 国产三级三级在线观看| 一级做a爱片久久毛片| 精品二区在线观看| 亚洲欧洲久久久| 日韩专区第一页| 国产精品久久久国产盗摄| 四季av一区二区| 久草视频在线资源站| 九九热久久免费视频| 一级做a爱片久久毛片| 久久久久亚洲av成人无码电影| 国产原创中文av| 国产成人久久久久| 香蕉av在线播放| 美日韩一二三区| 国产色视频在线播放| 26uuu国产| 亚洲av片不卡无码久久| 久久丫精品国产亚洲av不卡| av av在线| 亚洲乱熟女一区二区| 一级aaaa毛片| 日韩中文字幕有码| 中国精品一区二区| 四虎国产精品免费| 欧美国产在线一区| 久久久久亚洲av成人片| 国产一级aa大片毛片| 日本在线不卡一区二区| 久久久久免费看| 久久午夜鲁丝片午夜精品| 亚洲av无码一区二区乱子伦| 天天干天天操天天玩|