COS3701 Assignment 3 (COMPLETE ANSWERS) 2025 – DUE August 2025; 100% correct solutions and explanations.
COS3701 Assignment 3 (COMPLETE ANSWERS) 2025 – DUE August 2025; 100% correct solutions and explanations. Question 1 [10] Given that L1 = (aa)* and L2 = (a + b)*ab(a + b)*. Find grammars for L1 and L2. Then use Theorem 37 to find L1L2. Question 3 [10] Using theorem 42 algorithm to determine whether the following grammar generate any words. S AB A BC C DA B CD D a A b Look at the reformulated version of Theorem 42 in your online study units Question 4 [15] Build a Turing Machine (TM) that • accepts all words in {an bn am | n ≥ 0; m > n} • loops forever on all words starting with b, and • rejects all other words. Assume that the alphabet is Σ = {a, b} Question 5 [15] Build a 2PDA that accepts the language {a2nbnanb2n | n > 0}.
Gekoppeld boek
- Onbekend
- 9788126513345
- Onbekend
Geschreven voor
- Instelling
- University of South Africa
- Vak
- Theoretical Computer Science III
Documentinformatie
- Geüpload op
- 29 juli 2025
- Aantal pagina's
- 14
- Geschreven in
- 2024/2025
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
cos3701 assignment 3 complete answers 2025 due