Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

San Jose State UniversityCS 154 Pop Quiz #13_ FA 20_ CS-154 Sec 04 - Formal Lang and Comput.

Beoordeling
-
Verkocht
-
Pagina's
7
Cijfer
A+
Geüpload op
06-07-2021
Geschreven in
2020/2021

Pop Quiz #13 Due Oct 15 at 11:59pm Points 10 Questions 7 Available after Oct 14 at 9am Time Limit None Allowed Attempts 3 Attempt History Attempt Time Score LATEST Attempt 1 8 minutes 10 out of 10 Score for this attempt: 10 out of 10 Submitted Oct 14 at 9:44pm This attempt took 8 minutes. Take the Quiz Again Question 1 1 / 1 pts Consider the following languages over Σ = {a, b} with the notations below n (w): number of a's in string w n (w): number of b's in string w L1 ={w: n (w) = n (w)} L2 ={w: n (w) = n (w)} L3= {w: n (w) = n (w)} L4 = {w: n (w) n (w)} L5 = {w: n (w) n (w)} L6 = {w: n (w) n (w)} a b a b a b a b a b a b a b L1 and L6 are complement to each other Correct! Correct! Correct 11/9/2020 Pop Quiz #13: FA20: CS-154 Sec 04 - Formal Lang and Comput Other Incorrect Match Options: Incorrect Correct (L2+L3) is a regular language Correct! Correct! Correct L3 and L4 are complement to each other Correct! Correct! Correct Question 2 1 / 1 pts (Cont.) Give the grammar for L1. Assume the start symbol is A. L1 ={w: na(w) = nb(w)} Correct! Correct! A -- AA | aAb|bAa| ε A -- AA | aAb|bAa| a|b| ε A -- aAb|bAa| ε None is a correct answer Question 3 2 / 2 pts (Cont.)

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

11/9/2020 Pop Quiz #13: FA20: CS-154 Sec 04 - Formal Lang and Comput


Pop Quiz #13
Due Oct 15 at 11:59pm Points 10 Questions 7
Available after Oct 14 at 9am Time Limit None Allowed Attempts 3



Take the Quiz Again



Attempt History
Attempt Time Score
LATEST Attempt 1 8 minutes 10 out of 10




m
er as
co
Score for this attempt: 10 out of 10




eH w
Submitted Oct 14 at 9:44pm




o.
This attempt took 8 minutes.
rs e
ou urc
Question 1 pts
o
aC s
vi y re



Consider the following languages over Σ = {a, b} with the notations below

na(w): number of a's in string w
ed d




nb(w): number of b's in string w
ar stu




L1 ={w: na(w) = nb(w)}
is




L2 ={w: na(w) >= nb(w)}
Th




L3= {w: na(w) <= nb(w)}
L4 = {w: na(w) > nb(w)}
L5 = {w: na(w) < nb(w)}
sh




L6 = {w: na(w) nb(w)}


Correct! L1 and L6 are complement Correct
to each other


Correct! L6 = L4 + L5
This study source was downloaded by 100000823516103 from CourseHero.com on 07-06-2021 10:44:37 GMT -05:00

https://sjsu.instructure.com/courses/1373758/quizzes/1427227?module_item_id=11285053 1/7
https://www.coursehero.com/file/76602489/Pop-Quiz-13-FA20-CS-154-Sec-04-Formal-Lang-and-Computpdf/

, 11/9/2020 Pop Quiz #13: FA20: CS-154 Sec 04 - Formal Lang and Comput


Correct



Correct! (L2+L3) is a regular Correct
language

Correct! L3 and L4 are complement Correct
to each other

Other Incorrect Match Options:
Incorrect




m
Question 2 pts




er as
co
eH w
o.
(Cont.)
rs e
ou urc
Give the grammar for L1. Assume the start symbol is A.

L1 ={w: na(w) = nb(w)}
o
aC s
vi y re



Correct!
A --> AA | aAb|bAa| ε
ed d




A --> AA | aAb|bAa| a|b| ε
ar stu




A --> aAb|bAa| ε
is




None is a correct answer
Th
sh




Question 3 pts



(Cont.)


This study source was downloaded by 100000823516103 from CourseHero.com on 07-06-2021 10:44:37 GMT -05:00

https://sjsu.instructure.com/courses/1373758/quizzes/1427227?module_item_id=11285053 2/7
https://www.coursehero.com/file/76602489/Pop-Quiz-13-FA20-CS-154-Sec-04-Formal-Lang-and-Computpdf/

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
6 juli 2021
Aantal pagina's
7
Geschreven in
2020/2021
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$9.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Themanehoppe American Intercontinental University Online
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
347
Lid sinds
4 jaar
Aantal volgers
224
Documenten
3784
Laatst verkocht
1 dag geleden

3.5

55 beoordelingen

5
25
4
7
3
7
2
3
1
13

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen