爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频

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

    爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频
    <strike id="bfrlb"></strike><form id="bfrlb"><form id="bfrlb"><nobr id="bfrlb"></nobr></form></form>

        <sub id="bfrlb"><listing id="bfrlb"><menuitem id="bfrlb"></menuitem></listing></sub>

          <form id="bfrlb"></form>

            <form id="bfrlb"></form>

              <address id="bfrlb"></address>

              <address id="bfrlb"></address>
              久久亚洲欧美国产精品乐播| 一区二区精品在线| 欧美成人在线影院| 中文有码久久| 久久噜噜亚洲综合| 欧美日韩一区在线观看| 欧美在线观看一二区| 最近看过的日韩成人| 狠狠干成人综合网| 精品盗摄一区二区三区| 欧美日韩国产成人高清视频| 国产精品永久入口久久久| 欧美久久一区| 99视频一区二区三区| 国产精品激情av在线播放| 激情综合自拍| 久久久久久久国产| 国产精品第三页| 亚洲欧美三级在线| 久久国产精品99久久久久久老狼| 欧美精品播放| 久久精品国产精品| 久久亚裔精品欧美| 国产裸体写真av一区二区| 久久综合电影| 久久综合给合久久狠狠狠97色69| 亚洲电影中文字幕| 99精品久久久| 欧美寡妇偷汉性猛交| 免费观看不卡av| 久久久亚洲国产美女国产盗摄| 亚洲一线二线三线久久久| 欧美日韩国产一区二区| 欧美精品在线观看播放| 久久久久久自在自线| 久久久欧美一区二区| 99re热这里只有精品免费视频| 国内精品写真在线观看| 国产精品一区二区在线观看不卡| 日韩一区二区精品葵司在线| 亚洲淫片在线视频| 久久在线免费视频| 欧美三级日韩三级国产三级| 久久在线播放| 亚洲一区二区动漫| 亚洲激情精品| 欧美中文在线免费| 欧美精品久久一区二区| 国产日韩欧美中文在线播放| 欧美精品日韩www.p站| 久久久午夜精品| 你懂的国产精品永久在线| 午夜视频精品| 亚洲综合视频1区| 国产一区二区三区免费不卡| 欧美激情亚洲综合一区| 韩日视频一区| 国产一区欧美| 国产日韩亚洲| 亚洲一区二区毛片| 在线亚洲电影| 欧美三级电影精品| 欧美制服丝袜第一页| 羞羞答答国产精品www一本| 玉米视频成人免费看| 久久人体大胆视频| 亚洲永久精品大片| 最近中文字幕mv在线一区二区三区四区| 欧美在线首页| 亚洲国产另类久久精品| 欧美一区二区三区喷汁尤物| 久久婷婷人人澡人人喊人人爽| 欧美日韩网站| 一区二区三区在线视频播放| 国产精品影片在线观看| 亚洲第一精品夜夜躁人人爽| 国产日韩欧美一区二区三区在线观看| 亚洲一区二区不卡免费| 亚洲黄色成人网| 国产精品免费区二区三区观看| 欧美多人爱爱视频网站| 激情欧美日韩一区| 欧美成年视频| 国产精品亚洲产品| 亚洲大胆人体在线| 嫩草伊人久久精品少妇av杨幂| 亚洲福利视频专区| 欧美日韩精品综合在线| 妖精成人www高清在线观看| 99视频精品全国免费| 久久在线观看视频| 亚洲国产欧美久久| 欧美国产一区二区在线观看| 亚洲免费在线看| 亚洲无人区一区| 久久久噜噜噜久久中文字幕色伊伊| 榴莲视频成人在线观看| 欧美日韩亚洲精品内裤| 国产精品午夜电影| 免费成人黄色av| 免费不卡在线观看av| 毛片基地黄久久久久久天堂| 另类天堂视频在线观看| 欧美日韩精品伦理作品在线免费观看| 亚洲欧美日韩人成在线播放| 韩国精品久久久999| 欧美精彩视频一区二区三区| 国产午夜精品美女视频明星a级| 国产亚洲欧美一区在线观看| 国产精品福利网站| 国产曰批免费观看久久久| 激情丁香综合| 樱桃成人精品视频在线播放| 国产精品a久久久久久| 亚洲综合精品自拍| 亚洲视频 欧洲视频| 国产一区二区三区免费观看| 国产亚洲精品成人av久久ww| 欧美另类一区二区三区| 香蕉久久一区二区不卡无毒影院| 韩国av一区| 国产欧美日韩三区| 亚洲国产婷婷香蕉久久久久久| 在线精品高清中文字幕| 免费日韩av| 亚洲社区在线观看| 日韩视频久久| 亚洲综合三区| 久久狠狠久久综合桃花| 国产啪精品视频| 99精品视频免费观看视频| 午夜视频久久久久久| 欧美日韩免费观看一区二区三区| 欧美午夜大胆人体| 夜夜嗨网站十八久久| 欧美不卡在线| 一区二区三区高清视频在线观看| 欧美一区二区成人6969| 香蕉久久a毛片| 欧美在线综合视频| 久久精品亚洲乱码伦伦中文| 久久久99精品免费观看不卡| 久久精品一区蜜桃臀影院| 欧美电影打屁股sp| 久久久久国产精品麻豆ai换脸| 国产精品视频导航| 国产午夜久久久久| 亚洲图片在线| 欧美在线视频全部完| 最新国产の精品合集bt伙计| 美国十次了思思久久精品导航| 欧美精品日韩| 国产欧美日韩另类视频免费观看| 在线电影一区| 久久精品国产亚洲aⅴ| 欧美高清不卡在线| 久久超碰97人人做人人爱| 欧美韩日一区二区三区| 91久久国产综合久久91精品网站| 在线不卡免费欧美| 国产精品亚洲成人| 国产精品一区一区三区| 久久偷看各类wc女厕嘘嘘偷窃| 国内精品久久国产| 国产亚洲成av人在线观看导航| 激情欧美一区二区三区在线观看| 蜜臀99久久精品久久久久久软件| 久久精品日韩一区二区三区| 亚洲精品久久久久| 欧美日韩在线精品| 欧美国产视频在线| 欧美一级专区免费大片| 性欧美超级视频| 美日韩丰满少妇在线观看| 欧美一区二区高清在线观看| 国产欧美高清| 亚洲深夜福利在线| 日韩一区二区精品视频| 欧美日本一区二区三区| 欧美区高清在线| 午夜精品国产精品大乳美女| 欧美精品久久一区二区| 亚洲国产精品视频一区| 欧美有码视频| 亚洲色图制服丝袜| 久久午夜精品| 久久久久国色av免费观看性色| 亚洲国产欧美国产综合一区| 午夜激情一区| 国产精品日韩精品欧美精品| 亚洲电影一级黄| 在线观看日韩一区| 国产精品久久9| 欧美三区美女| 欧美日韩一区二区精品| 最近中文字幕mv在线一区二区三区四区| 亚洲午夜高清视频| 久久精品在线播放| 亚洲人体一区| 久久视频免费观看|