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
Overig

Assignment 2 2025 Solutions

Beoordeling
-
Verkocht
1
Pagina's
9
Geüpload op
26-01-2026
Geschreven in
2025/2026

Assignment 2 2025 Solutions

Voorbeeld van de inhoud

Theoretical Computer Science III
COS3701


Assignment 2

School of Computing

This tutorial letter contains important information
about your module.




BARCODE

, Question 1 10


Find CFGs for all words that do not have the substring aba over the alphabet ∑
= {a b}.
Solution
The simplest manner by which the required CFG can be obtained will be by
drawing an FA which accepts the required language and then applying Theorem
21 of Cohen.
Note that you would not lose any marks if you have present a correct CFG
without drawing an FA.
However, for exam purposes it is recommended that if a CFG, which generates
a regular language, is requested that you should draw an FA which accepts the
required language and apply Theorem 21 in order to deduce the requested
CFG.
Consider the FA shown below and convince yourself that it will recognise all and
only words from L. Do this by testing various words from L (e.g. abba, baba,
etc.) Note that this is probably not the only FA which could be constructed to
recognise words in this language.




We apply Theorem 21 as follows:
Step 1 The nonterminals in the CFG will be all the names of the states in the FA
with the start state renamed S.
Names in the form of alphabet letters should be provided to the respective
states of our FA. We use capital letters to label the respective states of our FA
as these labels will become the respective non-terminals of our CFG. It is
recommended that the start state of the FA, to be converted to a CFG, should
be labelled S.

Documentinformatie

Geüpload op
26 januari 2026
Aantal pagina's
9
Geschreven in
2025/2026
Type
OVERIG
Persoon
Onbekend
Gratis
Krijg toegang tot het volledige document:
Downloaden

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
alexanderbrown

Maak kennis met de verkoper

Seller avatar
alexanderbrown N/A
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1
Lid sinds
5 jaar
Aantal volgers
0
Documenten
3
Laatst verkocht
2 maanden geleden

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

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