首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
讲解CSCI3136编程、Java,Python,CSS程序辅导 解析Haskell程序|辅导R语言编程
项目预算:
开发周期:
发布时间:
要求地区:
Assignment 2
Instructor: Alex Brodsky
Due: 9:00am, Monday, May 28, 2021
1. Construct NFAs that recognize the languages specified by the following regular expressions:
(a) [5 marks] 000 (101 | 010)* (011 | 110 | 111)
where the alphabet is Σ = {0, 1}.
(b) [5 marks] ((x* y z*) | (y* z y*) | (z* x y*)
where the alphabet is Σ = {x, y, z}.
2. [10 marks] Construct a DFA that recognizes the same language as the following NFA. Hint,
use the subset construction approach we discussed in Lecture 5.
Note: You do not need to draw it. I.e, you can just provide the table representing the
transition function for the DFA.
3. [10 marks] Derive the regular expression that specifies the language recognzied by this NFA.
1
CSCI3136 Summer 2021 Assignment 2
4. For each of the following give two (2) different constructions as specified below:
(a) [3 marks] Give two different regular expressions that specify the language L3, the set
of all strings over the alphabet Σ = {x} whose length is divisible by 3. Note: please do
not use the . in your regular expressions as there is only one symbol in the alphabet.
(b) [3 marks] Give two different NFAs that recognize the language specified by the regular
expression
(x (x|y)* x) | (y (x|y)* y)
over the alphabet Σ = {x, y}.
(c) [4 marks] Give two DFAs that recognize the same languages as this NFA.
5. Using the basic definition of regular languages prove that the following two languages are
regular:
(a) [5 marks] The language Lnot3 of all strings over alphabet Σ = {x} that are not
divisible by 3.
(b) [5 marks] The language L = LQLeven where LQ = {a
p−1
| p ∈ PRIME} and Leven =
{(aa)∗}. Note: You may recall from our lectures that the language of prime-length
strings is not regular, yet rest assured that L is definitely regular. (This is the hardest
question in this assignment.) Hint: You will need to use a very simple property of almost
all prime numbers to prove this.
2
CSCI3136 Summer 2021 Assignment 2
Marking Scheme
1. Marking scheme for each part of Question 1.
2 points 1 point 0 points
States Correct # of states 1 or 2 states missing Incorrect
Transitions Correct Somewhat correct Incorrect
Correctness Recognizes the langauge Does not recognize the language
2. Marking scheme for Question 2.
4 points 2 point 0 points
States Correct # of states 1 or 2 states missing Incorrect
Transitions Correct Somewhat correct Incorrect
Correctness Recognizes the langauge Does not recognize the language
Fractional marks are possible.
3. Marking scheme for Question 3
4 points 2 point 0 points
Normalized GNFA normalized Not normalized
Work shown Work shown in each step Some of the work shown No work shown
Final RE Correctly read off GNFA Somewhat correctly read Incorrectly read
Correctness Specifies the langauge Does not specify language
Fractional marks are possible.
4. Marking scheme for Question 4
Q4a : 1 mark for each RE for correctness, 1 mark for REs being different
Q4b : 1 mark for each NFA for correctness, 1 mark for NFAs being different
Q4c : 1 mark for each DFA for correctness, 2 marks for DFAs being different
5. Marking scheme for each part of Question 5
2 points 1 point 0 points
Technique Correct proof technique Partially correct technique Incorret or no proof
Argument Proof follows logically Proof has a few gaps Major gaps or no proof
Neatness Easy to read Hard to read or no proof
3
CSCI3136: Assignment 2
Summer 2021
Student Name Login ID Student Number Student Signature
Mark
Question 1 /10
Question 2 /10
Question 3 /10
Question 4 /10
Question 5 /10
Total /50
Comments:
Assignments are due by 9:00am on the due date before class and should include this cover
page. Assignment must be submitted electronically via Brightspace. Please submit a PDF.
You can do your work on paper and then scan in and submit the assignment.
Plagiarism in assignment answers will not be tolerated. By submitting their answers to
this assignment, the authors named above declare that its content is their original work and
that they did not use any sources for its preparation other than the class notes, the textbook,
and ones explicitly acknowledged in the answers. Any suspected act of plagiarism will be
reported to the Faculty’s Academic Integrity Officer and possibly to the Senate Discipline
Committee. The penalty for academic dishonesty may range from failing the course to expulsion
from the university, in accordance with Dalhousie University’s regulations regarding
academic integrity.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!