加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫ECS 120、代做Java/Python編程設(shè)計(jì)

時(shí)間:2024-01-30  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



Homework 1 – ECS 120, Winter 2024
1 Auto-graded problems
These problems are not randomized, so there is no need to first submit a file named req. Each
problem below appears as a separate “Assignment” in Gradescope, beginning with “HW1:”.
1.1 DFAs
For each problem submit to Gradescope a .dfa file describing a DFA deciding the given language.
Make sure that it is a plain text file that ends in .dfa (not .txt).
Use the finite automata simulator to test the DFAs: http://web.cs.ucdavis.edu/~doty/
automata/. Documentation is available at the help link at the top of that web page.
Do not just submit to Gradescope without testing on the simulator. The purpose
of this homework is to develop intuition. Gradescope will tell you when your DFA gets an answer
wrong, but it will not tell you why it was wrong. You’ll develop more intuition by running the
DFA in the simulator, trying to come up with some of your own examples and seeing where they
fail, than you will by just using the Gradescope autograder as a black box. Once you think your
solution works, submit to Gradescope. If you fail any test cases, go back to the simulator and use
it to see why those cases fail. During an exam, there’s no autograder to help you figure out if your
answer is correct. Practice right now how to determine for yourself whether it is correct.
Gradescope may give strange errors if your file is not formatted properly. If your file is not
formatted properly, the simulator will tell you this with more user-friendly errors. Also, if you lose
points on a Gradescope test case, try that test case in the simulator to ensure that your DFA is
behaving as you expect.
begin and end: {w ∈ {0, 1}

| w begins with 010 and ends with a 0 }
at most three 1s: {w ∈ {0, 1}

| w contains at most three 1’s}.
no substring: {w ∈ {a, b, c}

| w does not contain the substring acab}.
even odd: {w ∈ {a, b}

| w starts with a and has even length, or w starts with b and has odd
length }.
mod: {w ∈ {0, 1}

| w is the binary expansion of n ∈ N and n ≡ 3 mod 5}. Assume ε represents
0 and that leading 0’s are allowed. A number n ∈ N is congruent to 3 mod 5 (written n ≡ 3
mod 5) if n is 3 greater than a multiple of 5, i.e., n = 5k + 3 for some k ∈ N. For instance,
3, 8, and 13 are congruent to 3 mod 5.
1.2 Regular expressions
For each problem submit to Gradescope a .regex file with a regular expression deciding the given
language. Use the regular expression evaluator to test each regex: http://web.cs.ucdavis.
edu/~doty/automata/. Do not test them using the regular expression library of a programming
language; typically these are more powerful and have many more features that are not available in
the mathematical definition of regular expressions from the textbook. Only the special symbols (
) * + | are allowed, as well as “input alphabet” symbols: alphanumeric, and . and @.
Note on subexpressions: You may want to use the ability of the regex simulator to define
subexpressions that can be used in the main regex. (See example that loads when you click “Load
Default”). But it is crucial to use variable names for the subexpressions that are not themselves
symbols in the input alphabet; e.g., if you write something like A = (A|B|C);, then later when
you write A, it’s not clear whether it refers to the symbol A or the subexpression (A|B|C). Instead
try something like alphabet = (A|B|C); and use alphabet in subsequent expressions, or X =
(A|B|C); if X is not in the input alphabet.
Note on nested stars: Regex algorithms can take a long time to run when the number of
nested stars is large. The number of nested stars is the maximum number of ∗
’s (or +’s) that appear
on any root-to-leaf path in the parse tree of the regex. a
∗b
∗ has one nested star, (a

)
∗b
∗ has two
nested stars, and ((a

)
∗b

)
+ has three nested stars. Note that some of these are unnecessary; for
instance (a

)
∗b

is equivalent to a
∗b
∗ None of the problems below require more than two nested
stars; if you have a regex with more, see if it can be simplified by removing redundant stars such
a
x has an even number of a’s, or x has an odd number of b’s, or
x contains both the substrings babb and aabaa 
first appears more:
{x ∈ {0, 1}

| |x| ≥ 3 and the first symbol of x appears at least three times total in x}
repeat near end: {x ∈ {0, 1}

| x[|x| − 5] = x[|x| − 3] }
Assume we start indexing at 1, so that x[|x|] is the last symbol in x, and x[1] is the first.
email: {x ∈ Σ

| x is a syntactically valid email address}
Definition of “syntactically valid email address”: Let Σ = {., @, a, b } contain the
alphabetic symbols a and b,
1 as well as the symbols for period . and “at” @. Syntactically
valid emails are of the form username@host.domain where username and host are nonempty
and may contain alphabetic symbols or ., but never two .’s in a row, nor can either of them
begin or end with a ., and domain must be of length 2 or 3 and contain only alphabetic
symbols. For example, aaba@aaabb.aba and ab.ba@ab.abb.ba are valid email addresses,
but aaabb.aba is not (no @ symbol), nor is .ba@ab.abb.ba (username starts with a .), nor is
1
It’s not that hard to make a regex that actually uses the full alphanumeric alphabet here, but historically we’ve
found that many students’ solutions are correct but use so many subexpressions that they crash the simulator. Using
only two alphabetic symbols a and b reduces this problem, even though it makes the examples more artificial-looking.
2
aaba@aaabb.aaaaaa (domain is too long), nor is aaba@aaabb.a or aaba@aaabb. (domain is
too short), nor is ab..ba@ab.aaabb.aba (two periods in a row), nor is ab.ba@ab@aaabb.aba
(too many @ symbols).
sequence design for DNA nanotechnology: We once designed some synthetic DNA strands
that self-assembled to execute Boolean circuits: https://web.cs.ucdavis.edu/~doty/papers/
#drmaurdsa. We had to be careful designing the DNA sequences to ensure they behaved as
we wanted. Among other constraints, every sequence needed to obey all of the following rules:
• starts with a G or C and ends with a G or a C,
• has an A or T within two indices of each end (i.e., the first, second, or third symbol is
an A or T, and also the last, second-to-last, or third-to-last symbol is an A or T),
• has at most one appearance of C,
• does not have four G’s in a row; this would form something we didn’t want, called a
G-tetrad or G-tetraplex : https://tinyurl.com/yzkq3tzw
Write a regex indicating strings that violate any of the rules above, i.e., it decides the following
language: {x ∈ {A, C, G, T}

| x violates at least one of the rules}.
1.3 CFGs
For each problem submit to Gradescope a .cfg file with a context-free grammar deciding the given
language.
mod length: {x ∈ {a, b}

| |x| ≡ 3 mod 5}
substring: {x ∈ {a, b}

| x contains the substring abba}
equal 0 and 1: {x ∈ {0, 1}

| #(0, x) = #(1, x)}
palindrome: {x ∈ {0, 1}

| x = x
R}
Recall that x
R is the reverse of x.
first or last: {0
i1
j0
k
| i, j, k ∈ N and (i = j or j = k)}
integers: The set of strings that look like nonnegative decimal integers with no leading 0’s. For
example: 0, 1, 2, 3, 10, 11, 12, 21, 100, 99999
expressions: The set of strings that look like arithmetic expressions using nonnegative integers
and the operations +, -, *, /, and parentheses to group terms.
For example, the following are properly formatted arithmetic expressions: 0, 2, 2+30, 2+30*401,
(2+30)*401/(23+0), (((1+2)/3-4)*5+6)*7
The following are not: 02, (2+30, 2+30*401+, (2+30)*401), -4, 2++3, (), 2*(), ((((1+2)*3-4)*5+6)*7
3
2 Written problems
Please complete the written portion of this homework on Gradescope, in the assignment titled
“HW1 written”. There, you will find the problem statements for the written portion. Please type
solutions directly into Gradescope, using appropriate mathematical notation when appropriate,
by typing LATEX in double dollar signs. For example, type $$D = (Q,\Sigma,\delta,s,F)$$ to
display D = (Q, Σ, δ, s, F). By clicking outside the text entry field, you can see a preview of how
the mathematics will render. See the second half of this page for examples: https://hackmd.io/
cmThXieERK2AX_VJDqR3IQ?both#Gradescope-MarkdownLatex
Your written solutions will be checked for completeness but not for correctness. To receive
credit, you must make a serious attempt at all problems.
3 Optional challenge problems
Please read the syllabus for a discussion of optional challenge problems. Briefly, you don’t have to
submit a solution to these, and they aren’t worth any points. But, if you find any interesting, and
if you think you have a solution, please email it directly to me: doty@ucdavis.edu.
1. You showed by a simple counting argument that some language A ⊂ {0, 1}
≤5
cannot be
decided by any DFA with fewer than 9 states. In this problem, we will see how far this can
be pushed.
Step 1 (easy): Devise a single DFA D that can decide any language A ⊂ {0, 1}
≤5 by setting
accept states appropriately. In other words, give Q, s ∈ Q, and δ : Q × {0, 1} → Q so
that, for every A ⊂ {0, 1}
≤5
, there is FA ⊆ Q such that, letting DA = (Q, {0, 1}, δ, s, FA)
be a DFA, we have L(DA) = A. How large is |Q|?
Step 2 (moderate): If you are allowed to modify both the set of accept states and the
transitions, can you make the number of states of D less than 30? In other words, show
that for every language A ⊂ {0, 1}
≤5
, some DFA with at most 30 states decides A.
Step 3 (difficult): What is the smallest number of states needed to decide any language
A ⊂ {0, 1}
≤5
? More precisely, if s(A) is the number of states in the smallest DFA
deciding A, what is max
A⊆{0,1}≤5
s(A)? For this, you might find the Myhill-Nerode Theorem
useful: https://en.wikipedia.org/wiki/Myhill%E2%80%93Nerode_theorem
如有需要,請(qǐng)加QQ:99515681 或WX:codehelp

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代寫GA.2250、代做Python設(shè)計(jì)程序
  • 下一篇:代發(fā)EI會(huì)議論文 EI論文發(fā)表咨詢
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士4號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
    合肥機(jī)場(chǎng)巴士3號(hào)線
  • 短信驗(yàn)證碼 目錄網(wǎng) 排行網(wǎng)

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

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    日本综合字幕| 香蕉视频一区二区三区| 日本电影久久久| 亚洲一级黄色| 亚洲人亚洲人色久| 成人一级视频| 蜜臀91精品一区二区三区| 噜噜噜狠狠夜夜躁精品仙踪林| 欧美日一区二区在线观看| 亚洲精品成人图区| 在线精品小视频| 国产精品极品在线观看| 国产一区二区三区精品在线观看| 亚洲精品一级二级| 免费日韩av| 99久久夜色精品国产亚洲1000部| 电影91久久久| 国产精品一国产精品k频道56| 视频一区二区不卡| 国户精品久久久久久久久久久不卡| 婷婷精品在线观看| 欧美日韩专区| 久久精品资源| 日韩国产一区二区三区| 玖玖国产精品视频| 国产综合精品一区| 成人精品天堂一区二区三区| 午夜欧洲一区| 欧美日韩黄网站| 影音先锋亚洲精品| 日本午夜精品久久久久| a一区二区三区| 日本久久一二三四| 国产婷婷精品| 午夜日本精品| 国产高清一区二区| 99热国内精品| 加勒比色综合久久久久久久久| 日韩av在线播放中文字幕| 亚洲综合伊人| 亚洲色图插插| 亚洲日产国产精品| 日一区二区三区| 久久精品72免费观看| 女海盗2成人h版中文字幕| 国产资源在线观看入口av| 午夜亚洲一区| 久久99伊人| 日韩中文字幕一区二区三区| 亚洲综合二区| 性欧美xxxx大乳国产app| 黄色国产精品| 免费国产自线拍一欧美视频| 妖精视频成人观看www| 欧美特黄视频| 中文亚洲免费| 香蕉国产精品偷在线观看不卡| 99日韩精品| 久久亚洲欧洲| 97在线精品| 国产综合色在线观看| 欧美日韩精品免费观看视欧美高清免费大片 | 在线视频精品| 麻豆亚洲精品| 中文av在线全新| 99精品国自产在线| 久久中文在线| 亚洲香蕉久久| 亚洲人亚洲人色久| 欧美三级视频| 99久久www免费| 红桃视频国产一区| 蜜臀av一区二区三区| 中文在线аv在线| 成人日韩av| 亚洲综合中文| 精品视频一区二区三区| 国产精品成人自拍| 宅男在线一区| 日韩成人a**站| 成人国产精品一区二区免费麻豆| 老司机午夜精品| 中文无码久久精品| 日韩电影一区二区三区| 青青一区二区三区| 欧美日韩日本国产亚洲在线 | 激情久久一区| 亚洲综合社区| 国产私拍福利精品视频二区| 日本中文字幕不卡| 亚洲午夜久久| 国产一区二区三区四区三区四| 午夜亚洲性色视频| 精品日韩视频| 中文字幕人成人乱码| 日韩中文字幕视频网| 五月婷婷亚洲| 日韩欧美国产精品综合嫩v| 日本va欧美va欧美va精品| 日韩精品一区二区三区中文在线 | 国产一区二区你懂的| 日韩国产一区| 韩国三级大全久久网站| 欧美亚洲tv| 男人操女人的视频在线观看欧美| 亚洲精品成人一区| 亚洲天堂日韩在线| 激情偷拍久久| 精精国产xxxx视频在线野外| 你懂的国产精品永久在线| 欧美激情网址| 91综合视频| 欧美激情偷拍| 久久精品91| 亚洲最新无码中文字幕久久| 国产精品久久免费视频| 亚洲婷婷免费| 日韩免费小视频| 亚洲国产欧美日韩在线观看第一区| 免费视频亚洲| 欧美一级在线| 1204国产成人精品视频| 国产精品婷婷| 欧美日本国产| 国产综合亚洲精品一区二| 婷婷综合六月| 久久伊人精品| 蜜臀国产一区二区三区在线播放| 国产精品v日韩精品v欧美精品网站| 精品少妇一区| 亚洲www.| 99久久婷婷国产综合精品青牛牛| 免费看的黄色欧美网站| 欧美日韩综合| 婷婷亚洲最大| 一区二区精品| 国产一区清纯| 久久精品国产一区二区| 久久久国产精品一区二区中文| 亚洲欧洲美洲av| 日本最新不卡在线| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲一区二区三区久久久| 竹菊久久久久久久| 美女视频黄 久久| 免费成人av| 捆绑调教一区二区三区| 制服丝袜日韩| 欧美日本免费| 亚洲综合日韩| 国产欧美日韩一区二区三区四区| 亚洲深夜影院| 自拍自偷一区二区三区| 视频一区中文字幕| 精品国产亚洲一区二区三区大结局 | 亚洲精品婷婷| 亚洲激情av| 国产不卡精品在线| 日韩中文字幕1| 日韩不卡一区二区三区| 日韩国产一区二区三区| 久久超级碰碰| 亚洲视频二区| 狠狠干综合网| 欧美极品在线观看| 在线手机中文字幕| 久久精品色综合| 国产精品久久久免费| 亚洲免费高清| 精品视频91| 日韩免费大片| 欧美精品九九| 国产欧美精品久久| 欧美aa视频| 九一国产精品| 国产欧美日韩免费观看| 黄色亚洲网站| 亚洲夜间福利| 国产精品嫩草影院在线看| 裤袜国产欧美精品一区| 久久中文视频| 国产一区二区三区91| 日韩理论电影| 亚洲第一天堂| 日韩精品一区二区三区中文字幕| 亚洲ww精品| 在线一区免费观看| 99久久免费精品国产72精品九九 | 精品国产精品| 亚洲精品人人| 成人福利av| 欧美成人高清| 久久三级中文| 青青草国产成人av片免费| 成人一区二区| 米奇777超碰欧美日韩亚洲| 日韩在线黄色| 在线精品亚洲| 亚洲综合在线电影| 国产精品老牛|