精品深夜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>
      亚洲视频一区二区在线观看| 欧美人与z0zoxxxx视频| 亚洲高清免费视频| 国产精品久线在线观看| 精品99一区二区三区| 91精选在线观看| 欧美人与禽zozo性伦| 欧美性大战xxxxx久久久| 成人亚洲一区二区一| 精品一区二区三区免费播放| 午夜一区二区三区在线观看| 一区二区日韩av| 亚洲综合无码一区二区| 亚洲色图在线看| 亚洲蜜桃精久久久久久久| 国产精品电影院| 亚洲日本电影在线| 亚洲摸摸操操av| 亚洲精品ww久久久久久p站| 欧美经典一区二区| 国产精品久久久久久久久久久免费看| 国产视频911| 中文字幕欧美日本乱码一线二线| 欧美极品另类videosde| 亚洲国产精品精华液ab| 亚洲欧美在线视频观看| 一区二区视频在线| 亚洲一本大道在线| 免费人成黄页网站在线一区二区| 日韩av一区二| 国产一区二区0| 91在线观看地址| 欧美精品自拍偷拍| 欧美不卡一区二区三区| 久久精品欧美一区二区三区麻豆| 欧美国产欧美综合| 亚洲久本草在线中文字幕| 视频在线观看一区| 国产伦精品一区二区三区免费迷| 成人h动漫精品一区二| 精品视频1区2区| 精品免费国产一区二区三区四区| 中文字幕免费观看一区| 亚洲特黄一级片| 婷婷综合另类小说色区| 国产精品一二二区| 欧美亚洲一区二区三区四区| 精品国产第一区二区三区观看体验| 日韩视频中午一区| 国产精品美女www爽爽爽| 亚洲一级二级在线| 激情都市一区二区| 91麻豆国产香蕉久久精品| 欧美日本在线播放| 中文无字幕一区二区三区| 亚洲va国产天堂va久久en| 极品美女销魂一区二区三区免费 | 91丨porny丨蝌蚪视频| 在线视频中文字幕一区二区| 精品久久人人做人人爽| 亚洲国产欧美另类丝袜| 日本人妖一区二区| 在线精品视频小说1| 欧美一区二区二区| 一区二区三区四区中文字幕| 国产一区二区三区四区在线观看 | 中文字幕一区二区三区不卡在线 | 国产成人在线看| 在线观看91av| 亚洲免费成人av| 国产suv一区二区三区88区| 欧美一区二区性放荡片| 一区二区三区在线免费视频| 国产盗摄精品一区二区三区在线 | 亚洲成a人片在线观看中文| 成人综合婷婷国产精品久久免费| 日韩午夜在线观看| 亚洲国产一区二区视频| 色综合久久久久| 中文字幕永久在线不卡| 国产精华液一区二区三区| 日韩精品一区二区在线观看| 五月婷婷综合激情| 欧美无人高清视频在线观看| 亚洲精品国产视频| 91黄色免费看| 亚洲欧美偷拍卡通变态| 91丨porny丨中文| 久久午夜色播影院免费高清| 精品在线播放午夜| 久久―日本道色综合久久| 国产在线视频精品一区| 久久久不卡网国产精品一区| 狠狠色狠狠色综合系列| 国产片一区二区三区| 国产一区视频网站| 国产色婷婷亚洲99精品小说| 成人伦理片在线| 亚洲丝袜制服诱惑| 欧美在线免费播放| 日韩综合小视频| 精品乱码亚洲一区二区不卡| 国产一区二区三区久久久| 欧美日韩国产欧美日美国产精品| 亚洲综合一区在线| 91精选在线观看| 奇米精品一区二区三区四区| 日韩午夜激情视频| 国产一区二区三区国产| 国产精品电影一区二区| 欧美视频一区二区三区| 日韩有码一区二区三区| 精品国产免费人成在线观看| 粉嫩av亚洲一区二区图片| 亚洲欧美另类在线| 欧美一区二区三区在线视频| 国产一区二区影院| 亚洲老司机在线| 日韩精品一区二区三区中文精品| 高清在线不卡av| 亚洲成人免费电影| 欧美激情一区二区三区全黄| 欧美在线免费观看亚洲| 激情文学综合丁香| 亚洲欧美日韩久久精品| 欧美草草影院在线视频| 色94色欧美sute亚洲线路一ni | 日韩丝袜美女视频| 蜜臀久久久99精品久久久久久| 久久免费的精品国产v∧| 99国产精品视频免费观看| 亚洲成人精品在线观看| 欧美亚洲动漫精品| 国产精品一级黄| 亚洲国产精品视频| 国产三级精品视频| 欧美精品丝袜中出| 91女人视频在线观看| 久久精品免费观看| 夜夜操天天操亚洲| 国产精品毛片大码女人| 日韩午夜在线影院| 欧美人体做爰大胆视频| www.激情成人| 国产99精品在线观看| 精品亚洲aⅴ乱码一区二区三区| 亚洲综合无码一区二区| 国产精品色眯眯| 久久你懂得1024| 日韩一级完整毛片| 欧美视频自拍偷拍| 一本在线高清不卡dvd| av在线综合网| 成人综合婷婷国产精品久久| 蜜臀精品久久久久久蜜臀| 午夜欧美大尺度福利影院在线看| 国产精品进线69影院| 国产亚洲一区字幕| 久久久亚洲精华液精华液精华液| 欧美一卡二卡在线| 884aa四虎影成人精品一区| 在线精品视频一区二区三四| 9人人澡人人爽人人精品| www.日韩大片| 日韩精品一二三| 亚洲国产一区二区在线播放| 亚洲色图欧美偷拍| 国产精品成人网| 日韩毛片在线免费观看| 国产精品乱人伦中文| 国产欧美在线观看一区| 欧美极品美女视频| 国产亚洲欧美一区在线观看| 26uuu久久天堂性欧美| 久久久欧美精品sm网站| 国产亲近乱来精品视频| 国产精品色婷婷久久58| 亚洲欧美视频在线观看视频| 亚洲视频每日更新| 亚洲三级电影全部在线观看高清| 综合久久一区二区三区| 国产精品美日韩| 一区二区三区欧美| 午夜欧美电影在线观看| 麻豆精品新av中文字幕| 狠狠狠色丁香婷婷综合激情 | 精品国产自在久精品国产| 久久久国产精华| 亚洲午夜免费福利视频| 国产一区二区精品在线观看| 色老综合老女人久久久| 久久久精品影视| 亚洲一区在线视频观看| 国产成人一区在线| 91精品国产品国语在线不卡| 亚洲女厕所小便bbb| 国精产品一区一区三区mba视频| 91网站在线播放| 久久久久久免费| 日韩av中文在线观看|