日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

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ū)
    昆明旅游索道攻略
    昆明旅游索道攻略
  • NBA直播 短信驗證碼平臺 幣安官網(wǎng)下載 歐冠直播 WPS下載

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

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

    日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲AV成人精品日韩一区18p

              国产三区精品| 欧美午夜视频| 午夜免费日韩视频| 亚洲国产成人不卡| 国产午夜精品全部视频播放| 欧美成人a∨高清免费观看| 亚洲欧美中文另类| 99国内精品久久| 一区二区亚洲欧洲国产日韩| 国产精品99一区二区| 免费成人高清| 久久久精品999| 亚洲欧美日韩系列| 亚洲一区二区av电影| 99re国产精品| 亚洲精品国产精品国自产观看| 国产专区精品视频| 国产亚洲一区二区三区在线播放| 欧美性生交xxxxx久久久| 欧美大片在线观看一区| 美女日韩欧美| 欧美波霸影院| 欧美精品偷拍| 欧美日韩黄色大片| 欧美另类一区| 欧美日韩在线一区二区三区| 欧美日韩精品伦理作品在线免费观看| 欧美高清在线视频| 欧美激情第9页| 欧美日韩亚洲国产精品| 欧美视频一区二| 国产精品对白刺激久久久| 欧美视频一区二区三区在线观看| 欧美日本国产视频| 欧美日韩国产系列| 国产精品黄视频| 国产伦精品免费视频| 国产一区二区观看| 在线国产精品一区| 亚洲精品国精品久久99热一| 一区二区三区免费观看| 欧美一级精品大片| 久久久午夜视频| 欧美激情在线| 国产精品国产精品| 国产在线视频不卡二| 91久久久精品| 亚洲欧美国产日韩天堂区| 久久久精品国产免费观看同学| 久久久精品网| 欧美日本在线看| 国产精品久久久久7777婷婷| 国产亚洲午夜| 日韩视频免费观看| 欧美一区二区三区免费大片| 免费观看一级特黄欧美大片| 欧美欧美全黄| 国产亚洲人成网站在线观看| 亚洲精品乱码| 久久精品亚洲精品国产欧美kt∨| 欧美成人综合网站| 国产精品稀缺呦系列在线| 亚洲精美视频| 久久超碰97中文字幕| 欧美精品一区二区视频| 国产视频一区二区在线观看| 亚洲人成高清| 久久久久久午夜| 国产精品videosex极品| 在线观看国产成人av片| 午夜激情综合网| 欧美日韩国产精品| 狠狠爱成人网| 欧美一区二区三区啪啪| 欧美日韩国产区| 尤物视频一区二区| 性色av一区二区三区红粉影视| 欧美日本韩国在线| 在线观看视频一区| 久久久国产视频91| 国产欧美精品日韩区二区麻豆天美| 国产精品激情偷乱一区二区∴| 91久久午夜| 蜜臀91精品一区二区三区| 国产一区二区三区高清播放| 亚洲欧美视频一区| 国产精品毛片| 亚洲午夜未删减在线观看| 欧美日韩高清在线| 亚洲精选一区| 欧美激情按摩| 日韩亚洲在线观看| 欧美理论在线| 日韩一区二区精品| 欧美日韩国产首页| 亚洲少妇最新在线视频| 欧美精品一区二区在线播放| 亚洲精品乱码视频| 欧美日韩高清在线播放| 一个色综合av| 国产精品伦理| 久久se精品一区精品二区| 国产一区在线视频| 免费观看日韩av| 亚洲精品人人| 国产精品第三页| 欧美专区日韩专区| 尤物精品在线| 欧美日韩在线视频一区二区| 亚洲午夜性刺激影院| 国产精品免费网站| 久久精品亚洲一区二区| 在线精品国产成人综合| 欧美日韩国产精品成人| 亚洲一区高清| 国产在线不卡精品| 欧美寡妇偷汉性猛交| 一本色道久久综合亚洲精品不卡| 国产精品国产成人国产三级| 亚洲欧美日韩精品久久| 黄色成人在线| 欧美三级日韩三级国产三级| 欧美一区二区视频免费观看| 亚洲福利视频网站| 欧美日韩在线一区二区三区| 欧美综合激情网| 日韩视频不卡| 国产日韩欧美| 欧美日韩国产成人在线91| 午夜亚洲影视| 亚洲精品美女久久久久| 国产拍揄自揄精品视频麻豆| 美日韩免费视频| 亚洲欧美日韩精品久久奇米色影视| 国产日韩专区| 欧美日韩国产色综合一二三四 | 欧美亚洲综合网| 亚洲国产三级| 国内精品久久久久影院优| 欧美激情精品久久久久久| 欧美一站二站| 亚洲天天影视| 亚洲精品日韩精品| 精品999日本| 国产精品一区二区在线观看| 欧美不卡视频一区发布| 香蕉久久夜色精品国产| 日韩网站在线看片你懂的| 国产一区二区三区四区| 国产精品盗摄一区二区三区| 欧美不卡视频一区发布| 久久久999精品视频| 午夜免费久久久久| 亚洲一区二区三区高清 | 亚洲美女中文字幕| 在线观看国产成人av片| 国产一区白浆| 国产欧美日韩激情| 国产精品成人国产乱一区| 欧美精品在线一区二区| 欧美成人午夜77777| 免费久久久一本精品久久区| 久久久久久久久伊人| 欧美有码视频| 久久久久久色| 久久九九精品| 久久精品视频亚洲| 久久久国产精品亚洲一区| 欧美一区在线看| 欧美在线日韩精品| 欧美一区二视频| 久久久精品999| 免费永久网站黄欧美| 免费日韩一区二区| 欧美精品首页| 欧美视频专区一二在线观看| 欧美色精品在线视频| 国产精品成人在线观看| 欧美午夜无遮挡| 国产日韩精品综合网站| 好吊日精品视频| 一区在线视频观看| 亚洲人成网站色ww在线| 亚洲视频一区| 久久av一区二区三区| 久久综合久久久久88| 欧美精品网站| 国产精品美女在线观看| 国产在线欧美日韩| 亚洲欧洲一二三| 亚洲欧美美女| 免费一级欧美在线大片| 另类人畜视频在线| 美女精品在线| 欧美日韩一区二区在线观看视频| 国产精品久久久久久妇女6080 | 亚洲永久免费av| 久久九九免费| 欧美午夜激情视频| 国产在线观看一区|