美女扒开腿免费视频_蜜桃传媒一区二区亚洲av_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇

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_先锋影音av在线_少妇一级淫片免费放播放_日本泡妞xxxx免费视频软件_一色道久久88加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    2025国产精品自拍| 亚洲区一区二区三| 台湾佬美性中文| 中文字幕求饶的少妇| 亚洲AV无码成人精品区明星换面 | 丰满少妇高潮一区二区| 性色av蜜臀av浪潮av老女人| 无码人妻一区二区三区免费n鬼沢| 永久免费看黄网站| 被黑人猛躁10次高潮视频| 午夜国产小视频| 日本黄色一级网站| 人妻无码中文久久久久专区| 免费日本黄色网址| 草草影院第一页| 污软件在线观看| av黄色一级片| www.4hu95.com四虎| 国产情侣久久久久aⅴ免费| 舐め犯し波多野结衣在线观看| 亚洲色图欧美色| 成年女人免费视频| 中国1级黄色片| 欧美无人区码suv| 日本视频在线免费| 变态另类丨国产精品| 亚洲人与黑人屁股眼交| 国产高清成人久久| 激情无码人妻又粗又大| 免费观看一区二区三区| 无码h肉动漫在线观看| 久久国产美女视频| 青青草视频播放| 久热这里有精品| 狂野欧美性猛交| 亚洲国产精品无码久久久久高潮 | 无码 人妻 在线 视频| 亚洲欧美小视频| 国产精品美女高潮无套| 在线观看一区二区三区四区| 男女做爰猛烈刺激| a级片在线观看视频| 99久久99久久精品免费| 美女露出粉嫩尿囗让男人桶| 综合五月激情网| 欧美a级片免费看| 一色道久久88加勒比一| 免费日本黄色网址| 国产一级黄色录像| 午夜免费福利影院| 欧美大喷水吹潮合集在线观看| 国产麻豆a毛片| 小向美奈子av| 精品一区在线观看视频| 成人免费精品动漫网站| 国产成人免费在线观看视频| 国产乱了高清露脸对白| 国产破处视频在线观看| 日本一区二区在线免费观看| 亚洲精品国产精品国自| 一级二级黄色片| 国产黄色录像片| 性欧美videos| 中国特级黄色片| 亚洲av成人片无码| 一级做a爰片毛片| 我不卡一区二区| 91人妻一区二区三区蜜臀| 乐播av一区二区三区| 在线免费观看a级片| 一本加勒比北条麻妃| 国产又黄又粗的视频| 尤物在线免费视频| 国产女人18毛片水真多18| japanese中文字幕| 国产探花在线免费观看| 免费黄色三级网站| 中文字幕第69页| 国产亚洲精品成人a| 永久免费看mv网站入口78| 女人18毛片毛片毛片毛片区二| 丰满少妇一区二区三区专区| 亚洲制服丝袜在线播放| 久久久久久久久福利| 台湾佬美性中文| 国产一区二区三区精品在线| 爱情岛论坛亚洲自拍| 人妻丰满熟妇av无码久久洗澡 | 秋霞欧美一区二区三区视频免费| 日本 欧美 国产| 91黄色免费视频| 亚洲色婷婷一区二区三区| av在线网站观看| 国偷自产av一区二区三区麻豆| 久久久久久国产免费a片| 午夜性福利视频| 婷婷激情四射网| 精品无码人妻一区二区免费蜜桃| 精品国产aⅴ一区二区三区东京热 久久久久99人妻一区二区三区 | 亚洲av网址在线| 伊人av在线播放| 91麻豆精品成人一区二区| 性久久久久久久久久| 日本五十肥熟交尾| 动漫av在线免费观看| av地址在线观看| 私库av在线播放| 欧美人禽zoz0强交| 久久久久久久久久网站| 日本一级片免费| 久久成人小视频| 视频这里只有精品| 能看毛片的网站| 国产精品 欧美激情| 一区视频免费观看| 能看毛片的网站| 91精品又粗又猛又爽| 亚洲色偷偷色噜噜狠狠99网| 性猛交╳xxx乱大交| 美女搡bbb又爽又猛又黄www| 欧美极品jizzhd欧美仙踪林| 国产免费一区二区三区最新6| 四虎地址8848| 国产色无码精品视频国产| 欧美黑人性猛交xxx| 在线观看一区二区三区四区| 日韩精品人妻中文字幕有码| 中国极品少妇xxxx| 亚洲最大成人网站| 三级黄色片在线观看| 久久久久亚洲AV成人| 超碰男人的天堂| 极品久久久久久久| 破处女黄色一级片| 伊人久久久久久久久| 日本japanese极品少妇| 免费看黄色av| 一级黄色免费毛片| www.久久国产| 日本黄色www| 天天插天天射天天干| 一区二区三区在线播放视频| 精人妻一区二区三区| 国产熟女一区二区| 深田咏美中文字幕| 少妇太紧太爽又黄又硬又爽小说| 欧美激情图片小说| 91精品人妻一区二区三区蜜桃欧美 | 在线天堂www在线国语对白| 欧美特黄一区二区三区| 在线看的片片片免费| 女人又爽又黄免费女仆| 免费欧美一级片| 女人裸体性做爰全过| 国产精品无码网站| 麻豆tv在线观看| 看黄色录像一级片| 国产精久久一区二区三区| 日韩精品xxx| 日韩高清dvd碟片| 妖精视频在线观看免费| 亚洲熟女一区二区| 制服.丝袜.亚洲.中文.综合懂| 丁香六月激情综合| 在线观看国产精品一区| 91九色蝌蚪porny| 国产裸体视频网站| 看免费黄色录像| 中文字幕无码日韩专区免费| 黄色在线观看av| 波多野结衣加勒比| 精品无码人妻少妇久久久久久| 婷婷激情四射网| 国产精品成人免费观看| 波多野结衣爱爱视频| 在线免费看av网站| 国产精品精品软件男同| 日本黄区免费视频观看| 免费成人深夜天涯网站| 69精品无码成人久久久久久| 日本少妇xxxxx| 日韩黄色中文字幕| 日韩三级久久久| a级大片免费看| xfplay5566色资源网站| 老司机免费视频| 男女做爰猛烈刺激| 国产精品免费在线视频| 国产性xxxx| 日韩aaaaa| 日本欧美一区二区三区不卡视频| 亚洲成人黄色av| 国产免费美女视频| 怡红院一区二区| 黄免费在线观看| 日韩一区二区三区四区在线| 国产精品99精品无码视亚| 黄色a一级视频| 内射一区二区三区| aa一级黄色片|