日本欧洲视频一区_国模极品一区二区三区_国产熟女一区二区三区五月婷_亚洲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

              9000px;">

                        日韩av电影天堂| 国产成人鲁色资源国产91色综 | 国产乱人伦偷精品视频不卡| 日韩三级视频中文字幕| 美脚の诱脚舐め脚责91| 精品欧美久久久| 99精品国产热久久91蜜凸| 亚洲免费观看高清在线观看| 欧美人与z0zoxxxx视频| 精品在线亚洲视频| 国产精品国产自产拍高清av| 欧美日韩精品专区| 国产麻豆视频一区| 亚洲一区二区三区四区五区黄 | 91精品国产入口在线| 国产一区二区三区综合| 亚洲免费在线观看| 日韩写真欧美这视频| 96av麻豆蜜桃一区二区| 久久精品二区亚洲w码| 亚洲蜜臀av乱码久久精品蜜桃| 欧美日韩高清在线播放| 国产91精品免费| 天天综合天天综合色| 国产精品乱码一区二三区小蝌蚪| 欧美男生操女生| 99re亚洲国产精品| 国产精品一区二区久久不卡 | 亚洲国产综合色| 久久女同性恋中文字幕| 欧美日韩精品一区视频| 91一区二区三区在线播放| 久久国内精品视频| 亚洲第一av色| 亚洲国产精品一区二区www在线| 国产午夜精品一区二区三区四区| 欧美日韩久久一区二区| 一本到一区二区三区| 国产凹凸在线观看一区二区| 久久国产福利国产秒拍| 日韩国产欧美一区二区三区| 一区二区三区加勒比av| 亚洲女同ⅹxx女同tv| 国产精品久久久久9999吃药| 久久免费精品国产久精品久久久久| 欧美群妇大交群的观看方式| 色综合久久久久综合99| 色综合久久久久久久久久久| 成人18视频在线播放| 国产精品一区二区三区99| 久久97超碰色| 国内久久精品视频| 国产精一区二区三区| 粉嫩久久99精品久久久久久夜| 韩国中文字幕2020精品| 国产一区 二区| 成人小视频在线| 成人激情小说网站| 99国产欧美久久久精品| 91成人免费网站| 欧美日韩国产精选| 日韩你懂的电影在线观看| 日韩欧美另类在线| 久久精品视频一区| 欧美国产日韩亚洲一区| 中文文精品字幕一区二区| 国产精品天美传媒| 亚洲精选视频在线| 日日夜夜免费精品视频| 久久99精品一区二区三区三区| 国产精品综合在线视频| 99久久精品一区二区| 欧洲精品视频在线观看| 91精品福利在线一区二区三区| 欧美zozo另类异族| 亚洲另类春色校园小说| 日韩av不卡在线观看| 国产高清在线观看免费不卡| 91年精品国产| 欧美一二三区在线| 亚洲国产精品二十页| 亚洲另类在线视频| 久久精品国产精品亚洲综合| av中文字幕一区| 日本高清不卡在线观看| 日韩欧美激情四射| 一区二区三区四区蜜桃| 久久99热99| 在线观看日韩高清av| 精品国产免费视频| 亚洲免费视频中文字幕| 久久草av在线| 欧美在线影院一区二区| wwwwxxxxx欧美| 午夜久久久影院| 成人性视频免费网站| 日韩欧美一区电影| 亚洲成人自拍网| 91视频.com| 欧美高清在线视频| 精品在线亚洲视频| 欧美另类videos死尸| 亚洲欧洲国产日本综合| 国产高清视频一区| 欧美一区三区二区| 天天操天天色综合| 色综合久久久久综合99| 国产精品久久久久一区| 国产精品中文字幕一区二区三区| 欧美日韩三级一区| 亚洲美女电影在线| 国产suv精品一区二区三区| 精品国产人成亚洲区| 蜜桃久久久久久久| 91麻豆精品国产自产在线| 中文字幕一区二区三区在线播放 | 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 日韩成人午夜电影| 欧美在线小视频| 亚洲人成伊人成综合网小说| 国产成a人亚洲精品| 欧美mv日韩mv亚洲| 欧美a级理论片| 91.成人天堂一区| 午夜私人影院久久久久| 欧美精品精品一区| 亚洲成av人片在线| 欧美特级限制片免费在线观看| 中文字幕在线一区| 91免费国产视频网站| 一区二区三区中文字幕| 91官网在线免费观看| 亚洲成av人片在线观看无码| 欧美福利一区二区| 美女在线视频一区| 国产午夜亚洲精品不卡| 成人午夜激情影院| 一区二区三区中文字幕| 欧美日韩国产免费| 奇米四色…亚洲| 国产欧美日韩三区| 在线视频一区二区三区| 丝袜亚洲另类欧美| 久久久影视传媒| 色久综合一二码| 久久成人久久鬼色| 国产精品国产三级国产aⅴ原创| 成人av在线观| 亚洲五码中文字幕| 国产亚洲综合性久久久影院| 99久久国产综合精品色伊| 午夜视黄欧洲亚洲| 日本一区二区动态图| 欧美日韩精品系列| 国产成人超碰人人澡人人澡| 一区二区三区四区国产精品| 欧美一区日本一区韩国一区| 成人黄色软件下载| 天天综合色天天综合| 日本一区二区综合亚洲| 欧美色视频在线| 国产精品羞羞答答xxdd | 1000精品久久久久久久久| 欧美综合欧美视频| 黄色资源网久久资源365| 一区二区三区四区在线播放| 精品区一区二区| 欧美亚洲精品一区| 成人免费毛片片v| 蜜臀va亚洲va欧美va天堂 | 亚洲主播在线观看| 国产人成一区二区三区影院| 欧美色综合网站| 成人激情黄色小说| 国产真实乱子伦精品视频| 亚洲一线二线三线视频| 国产精品高清亚洲| 久久久国产一区二区三区四区小说| 91成人在线精品| 91一区二区在线观看| 东方aⅴ免费观看久久av| 久久成人av少妇免费| 三级欧美韩日大片在线看| 亚洲综合免费观看高清完整版| 亚洲国产精品激情在线观看| 欧美mv和日韩mv的网站| 欧美高清视频在线高清观看mv色露露十八| 丰满亚洲少妇av| 国产激情视频一区二区三区欧美| 日本午夜一区二区| 日本午夜一本久久久综合| 午夜久久久久久久久| 亚洲不卡av一区二区三区| 亚洲女性喷水在线观看一区| 日韩理论在线观看| 亚洲蜜臀av乱码久久精品蜜桃| 亚洲视频狠狠干| 亚洲激情校园春色| 亚洲成人资源网| 日韩制服丝袜av|