免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300

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

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

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

    免费一级欧美片在线观看网站_国产一区再线_欧美日本一区二区高清播放视频_国产99久久精品一区二区300
    日韩理论在线观看| 成人午夜av影视| 久久老女人爱爱| 懂色一区二区三区免费观看| 国产精品久久久久久久浪潮网站| 99久久国产综合精品色伊| 亚洲激情网站免费观看| 欧美日韩精品综合在线| 久久精品国产在热久久| 久久久久国产精品人| 国产成人av一区二区三区在线观看| 亚洲国产岛国毛片在线| 一本久久精品一区二区| 午夜精品久久久久久久蜜桃app| 欧美一区二区久久久| 国产精品一二三区| 亚洲日本va午夜在线影院| 欧美午夜一区二区| 久久爱www久久做| 国产精品色一区二区三区| 色婷婷激情一区二区三区| 日本不卡视频一二三区| 欧美精品一区二区久久婷婷| 成人va在线观看| 亚洲一区二区在线视频| 精品欧美乱码久久久久久| 成人v精品蜜桃久久一区| 亚洲高清免费观看| 久久综合色天天久久综合图片| av电影天堂一区二区在线观看| 亚洲国产毛片aaaaa无费看| 精品久久久久99| 色综合久久久网| 久久国产婷婷国产香蕉| 国产精品国产成人国产三级| 石原莉奈在线亚洲二区| 国产女主播视频一区二区| 在线一区二区三区四区五区| 久久丁香综合五月国产三级网站 | 久久综合精品国产一区二区三区| 不卡的av电影在线观看| 视频一区国产视频| 中文字幕av一区二区三区| 欧美喷潮久久久xxxxx| 国产精品一区二区在线观看网站| 一区二区三区高清不卡| 久久亚洲一区二区三区四区| 欧美综合久久久| 国产裸体歌舞团一区二区| 亚洲一区在线观看网站| 国产日韩精品一区二区浪潮av| 欧美性猛交xxxx黑人交| 国产剧情一区二区三区| 亚洲成人精品一区二区| 日本一区二区成人| 欧美一区二区成人| 色噜噜偷拍精品综合在线| 国产一区二区三区久久久| 亚洲国产一区二区在线播放| 国产三级欧美三级| 91精品国产麻豆| 色哟哟精品一区| 国产98色在线|日韩| 日本欧美韩国一区三区| 亚洲精品中文在线| 国产日韩欧美精品综合| 69堂国产成人免费视频| 色域天天综合网| 国产精品亚洲视频| 欧美a一区二区| 亚洲一级二级三级| 国产精品高潮久久久久无| 26uuu亚洲| 6080日韩午夜伦伦午夜伦| 91色视频在线| 国产精品一区在线观看你懂的| 午夜激情久久久| 亚洲精品欧美二区三区中文字幕| 国产午夜亚洲精品午夜鲁丝片 | 欧美狂野另类xxxxoooo| 色又黄又爽网站www久久| 丁香激情综合五月| 国内精品久久久久影院色| 日韩精品三区四区| 亚洲最新视频在线观看| 亚洲三级在线观看| 中文字幕免费不卡| 国产日韩欧美a| 精品国产一区二区三区久久久蜜月 | 91精品欧美综合在线观看最新 | 成人sese在线| 国产高清成人在线| 紧缚捆绑精品一区二区| 日本sm残虐另类| 午夜视频一区二区| 亚洲国产综合在线| 一区二区免费视频| 亚洲欧美日韩国产成人精品影院| 亚洲国产精品激情在线观看| 久久奇米777| 精品国产91亚洲一区二区三区婷婷 | 国产亚洲成av人在线观看导航| 精品国产1区2区3区| 日韩欧美一级片| 欧美一级高清片| 欧美一区二区黄| 欧美一区二区三区在线看| 欧美精品日韩一区| 欧美精品在线视频| 欧美日韩精品一区二区三区四区 | 欧美激情一区二区三区蜜桃视频| 久久久夜色精品亚洲| 精品国产乱子伦一区| 欧美精品一区二区三区在线 | 蜜桃视频在线观看一区二区| 奇米影视在线99精品| 日韩电影网1区2区| 蜜桃av一区二区| 久久99久久99| 国产一区在线精品| 国产成人综合视频| 成人黄色av电影| 91在线看国产| 欧美中文字幕一区| 欧美日韩久久久久久| 91精品国产综合久久精品性色| 91精品国产黑色紧身裤美女| 日韩精品中文字幕在线一区| 久久影院电视剧免费观看| 国产欧美中文在线| 一区在线播放视频| 亚洲精品国产视频| 午夜不卡av在线| 久久国内精品视频| 国产成人综合在线播放| jlzzjlzz亚洲女人18| 在线国产亚洲欧美| 91精品国产综合久久福利 | 国产精品欧美精品| 亚洲免费观看高清| 日韩中文字幕不卡| 国产精品123区| 91女人视频在线观看| 欧美日韩精品一区二区在线播放| 日韩三级伦理片妻子的秘密按摩| 久久久不卡网国产精品一区| 国产精品国产三级国产| 亚洲成精国产精品女| 久久久精品人体av艺术| 国产精品国产三级国产aⅴ入口| 亚洲自拍都市欧美小说| 麻豆高清免费国产一区| 懂色av一区二区三区免费看| 91久久精品国产91性色tv| 欧美一区二区视频在线观看2022| 久久久久亚洲蜜桃| 亚洲精品午夜久久久| 日本欧美在线观看| 成人网男人的天堂| 欧美日韩精品一区视频| 久久九九全国免费| 一区二区三区美女| 久久99久久久久| 91丨九色porny丨蝌蚪| 欧美一区二区成人| 国产精品久久综合| 秋霞国产午夜精品免费视频| 成人黄色免费短视频| 欧美精品18+| 国产精品久久三区| 日本美女一区二区三区| 成人av资源下载| 欧美一级黄色录像| 亚洲日本免费电影| 精品制服美女丁香| 色屁屁一区二区| 久久亚洲精品国产精品紫薇| 一区二区三区四区在线播放| 九九**精品视频免费播放| 在线观看欧美黄色| 国产色爱av资源综合区| 日韩电影在线免费| 99国产精品久久久久久久久久久| 日韩欧美在线不卡| 一级中文字幕一区二区| 黄页视频在线91| 欧美日韩久久不卡| 亚洲欧洲av在线| 国产一区二区美女| 欧美另类videos死尸| 日韩美女精品在线| 国产一区二区在线视频| 欧美精品亚洲一区二区在线播放| 国产精品毛片高清在线完整版| 免费亚洲电影在线| 欧美伊人精品成人久久综合97| 欧美激情一区二区三区全黄| 蜜臀av一区二区三区| 欧美性xxxxxxxx| 日韩一区中文字幕|