美女扒开腿免费视频_蜜桃传媒一区二区亚洲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加勒比一_熟女少妇一区二区三区_老司机免费视频_潘金莲一级黄色片_精品国产精品国产精品_黑人巨大猛交丰满少妇
    亚洲一级av无码毛片精品| 天天做夜夜爱爱爱| 在线看黄色的网站| av永久免费观看| 呦呦视频在线观看| 亚洲成人激情小说| frxxee中国xxx麻豆hd| 精品亚洲aⅴ无码一区二区三区| 性高潮免费视频| 人妻激情偷乱频一区二区三区| 五月综合色婷婷| 后入内射无码人妻一区| 日本性高潮视频| 日本污视频网站| 午夜成人亚洲理伦片在线观看| 久久只有这里有精品| 无码人妻aⅴ一区二区三区| www.com日本| 大地资源二中文在线影视观看| 欧美深性狂猛ⅹxxx深喉| av2014天堂网| 丰满少妇一区二区三区| 网站免费在线观看| 成人黄色免费网址| 九九热视频在线免费观看| www.5588.com毛片| 动漫av在线免费观看| 屁屁影院国产第一页| 99精品全国免费观看| 一区二区三区人妻| 人妻丰满熟妇aⅴ无码| 亚洲精品天堂网| 国产精品熟妇一区二区三区四区| 91精品国产自产| 欧美黄色aaa| 欧美黄色一级生活片| 久久国产精品国语对白| 国产+高潮+白浆+无码| 国产免费一区二区三区网站免费| 看免费黄色录像| 不许穿内裤随时挨c调教h苏绵| 中国毛片在线观看| 久久久久久久久久久久久女过产乱| 9191在线视频| 天天爽天天爽天天爽| 亚洲欧美色图视频| 中文字幕1区2区| 久久精品国产亚洲av久| 性活交片大全免费看| 一区二区国产精品精华液| 变态另类ts人妖一区二区| 欧美xxxxx精品| 无码av免费精品一区二区三区| 色撸撸在线视频| 超碰人人干人人| 精品成人无码一区二区三区| 日本一区二区在线免费观看| 黑鬼狂亚洲人videos| 97精品在线播放| 国产精品精品软件男同| 国产又粗又猛又爽又黄的视频四季| 日批在线观看视频| 国产亚洲精品成人a| 99久久久无码国产精品性波多| 日韩女优一区二区| 欧美成人777| 制服丨自拍丨欧美丨动漫丨| 韩国av中国字幕| 岛国片在线免费观看| 白嫩情侣偷拍呻吟刺激| 精品欧美一区二区久久久久 | 2一3sex性hd| 国产精品久久久久久久无码| 国产精品一区二区入口九绯色| 乱h高h女3p含苞待放| 加勒比婷婷色综合久久| 欧洲猛交xxxx乱大交3| 性爱在线免费视频| 国产一区在线观看免费| 亚洲图片第一页| 三级黄色录像视频| 91人妻一区二区三区| 好吊色视频在线观看| 国产chinesehd精品露脸| 亚洲图片欧美另类| 国产精品久久不卡| 三级网站在线免费观看| 亚洲久久久久久| 欧洲美熟女乱又伦| 日本黄色录像视频| 婷婷在线精品视频| av地址在线观看| 给我免费观看片在线电影的| 91成人破解版| 手机在线免费看毛片| 日本在线不卡一区二区| 久久中文字幕人妻| 私库av在线播放| 欧美做受高潮6| 国产高潮国产高潮久久久91| 国产激情第一页| 国产精品美女高潮无套| 一级全黄裸体片| 国产欧美小视频| 在线天堂www在线国语对白| 后入内射无码人妻一区| 91av在线免费| 香蕉视频在线观看黄| 国产一级免费片| 1024手机在线观看你懂的| 日本少妇xxxx软件| 蜜桃av免费观看| 亚洲av无码一区二区三区观看| 欧美激情视频二区| 亚洲男人在线天堂| 在线观看免费视频国产| 91香蕉视频污在线观看| 国产吞精囗交久久久| 欧美三级在线免费观看| 日本少妇高潮喷水xxxxxxx| 国模大尺度视频| 男人操女人的视频网站| 波兰性xxxxx极品hd| 欧美另类z0zx974| 亚洲人人夜夜澡人人爽| 久久久久麻豆v国产精华液好用吗| 国产又爽又黄网站| 中文字幕观看av| 天天躁夜夜躁狠狠是什么心态| 精品国产免费久久久久久婷婷| 极品色av影院| 久操视频在线观看免费| 国产熟妇久久777777| 精品中文字幕在线播放| 男女一区二区三区| 精品一区二区视频在线观看| 无遮挡aaaaa大片免费看| 国产毛片久久久久久久| 国产探花视频在线播放| 一本色道久久88| 蜜桃视频最新网址| 国产美女福利视频| 福利所第一导航| 在线观看国产网站| 粉嫩精品久久99综合一区| 麻豆明星ai换脸视频| 少妇熟女视频一区二区三区| 久久无码人妻一区二区三区| 999精品在线视频| 日韩欧美综合视频| 日韩在线不卡av| 欧美人与性动交α欧美精品| 日韩久久久久久久久久久| 夫妻性生活毛片| 少妇精品无码一区二区| 蜜臀av粉嫩av懂色av| 熟女俱乐部一区二区视频在线| 性欧美精品中出| 午夜三级在线观看| 色婷婷在线视频观看| 成人啪啪18免费游戏链接| 88久久精品无码一区二区毛片| 一级片视频免费看| 久久久久久久久久久久久女过产乱| 一级黄色录像视频| 精品少妇人妻一区二区黑料社区| 成人18视频免费69| 91玉足脚交白嫩脚丫| 我要看黄色一级片| 国产夫妻性爱视频| 337p日本欧洲亚洲大胆张筱雨| 法国伦理少妇愉情| 人妻av一区二区三区| 日本人亚洲人jjzzjjz| 国产69视频在线观看| 美女被艹视频网站| 国产真人真事毛片视频| 欧美图片一区二区| 国产免费无码一区二区视频| 国产视频123区| 中文字幕国产专区| 艳妇乳肉豪妇荡乳xxx| 美女三级黄色片| 国产在视频线精品视频| 中文精品在线观看| 毛茸茸多毛bbb毛多视频| 又黄又爽的网站| 中文字幕三级电影| 日本在线不卡一区二区| 无码人妻一区二区三区精品视频| 久久嫩草捆绑紧缚| 国产在线免费av| 青青青视频在线播放| 天天操天天干天天操天天干| 国产精品美女高潮无套| 男人天堂资源网| 18岁成人毛片| 娇妻高潮浓精白浆xxⅹ| 特级特黄刘亦菲aaa级| 久久人人妻人人人人妻性色av|