100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

COS3701 EXAM REVISION PACK 2025

Puntuación
-
Vendido
1
Páginas
57
Grado
A+
Subido en
23-10-2025
Escrito en
2025/2026

Updated 2025 exam pack containing the latest questions, answers, and summarized notes to support your exam preparation. Best of luck with your studies.

Institución
Grado











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Libro relacionado

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
23 de octubre de 2025
Número de páginas
57
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

COS3701
EXAM PACK
2025

, UNIVERSITY EXAMINATIONS

Jan/Feb 2025

COS3701

THEORETICAL COMPUTER SCIENCE III



Welcome to the COS3701 examination

Date: 30 January 2025
Time: 14:00
Hours: 2 hours

Examiner name: Ms DR Mokwana
Internal moderator name: Dr TG Moape

This paper consists of 05 pages.

Total marks: 80

Instructions:

1. Upload your answer scripts in a single PDF file (answer scripts must not be password
protected or uploaded as “read only” files)
2. Incorrect file format and uncollated answer scripts will not be considered.
3. NO emailed scripts will be accepted.
4. Preview your submissions (answer scripts) to ensure legibility and that the correct answer
script file has been uploaded.
5. Incorrect answer scripts and/or submissions made on unofficial examinations platforms
(including the invigilator cell phone application) will not be marked and no opportunity will be
granted for resubmission. Only the last answer file uploaded within the stipulated submission
duration period will be marked.
6. Mark awarded for incomplete submission will be the student’s final mark. No opportunity for
resubmission will be granted.
7. Mark awarded for illegible scanned submission will be the student’s final mark. No
opportunity for resubmission will be granted.
8. Submissions will only be accepted from registered student accounts.
9. Students who have not utilised the proctoring tool will be deemed to have transgressed
Unisa’s examination rules and will have their marks withheld. If a student is found to have
been outside the proctoring tool for a total of 10 minutes during their examination session,
they will be considered to have violated Unisa’s examination rules and their marks will be
withheld. For examinations which use the IRIS invigilator system, IRIS must be recording
throughout the duration of the examination until the submission of the examinations scripts.
Students have 48 hours from the date of their examination to upload their invigilator results from
IRIS. Failure to do so will result in students deemed not to have utilized the proctoring tools.




Open Rubric

, COS3701
Jan/Feb 2025

Question 1. [18]

1.1. Determine a regular expression for the language L over the alphabet {a, b} that consists of
all words that start with the substring ba, then could have other substrings but must have at
least one bb and bb cannot be followed by an a.

Example of words in the language are babb, baabbbbb, baaaaaaaaabb, bababaabbbbb etc.
Examples of words that are not in the language are a, aba, bbab, aaabbbba, ababbbbaabb
etc. (3)

1.2. Design a deterministic finite automaton (DFA) that will recognise all of the words in L as
defined above. (5)

1.3. Use Theorem 21 to develop a context-free grammar (CFG) for the language L. (4)

1.4. Convert the following CFG to Chomsky Normal Form (CNF):
S -> aY | bXY
X -> XYZX | a
Y -> bXY | ∆
Z -> b | ∆ (6)

Question 2. [12]

Build a deterministic pushdown automaton (DPDA) that accepts the language
L = {(a)n(b)n+2a | n ≥ 1} over the alphabet ∑ = {a, b}

Question 3. [14]

Prove that the language L = {abna2nbn} is non-context free. Use the pumping lemma with length.




2

, COS3701
Jan/Feb 2025

Question 4 [10]
Consider the Turing Machine (TM) T (over the input alphabet Σ = {a, b}) given below.




Trace the execution of the TM on a few strings of as and bs so that you can see how it works and
answer the following questions.
a. What is the shortest word that would be accepted by T? (2)
b. What is accept(T )? (3)
c. What is reject(T )? (2)
d. What is loop(T )? (3)


Question 5 (14)

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}




3
$7.52
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
LectureLab Teachme2-tutor
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
626
Miembro desde
1 año
Número de seguidores
188
Documentos
1022
Última venta
1 mes hace
LectureLab

LectureLab: Crafted Clarity for Academic Success Welcome to LectureLab, your go-to source for clear, concise, and expertly crafted lecture notes. Designed to simplify complex topics and boost your grades, our study materials turn lectures into actionable insights. Whether you’re prepping for exams or mastering coursework, LectureLab empowers your learning journey. Explore our resources and ace your studies today!

3.6

80 reseñas

5
32
4
14
3
16
2
4
1
14

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes