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
Otro

COS2601 Assignment 4 marked memo 2024

Puntuación
-
Vendido
7
Páginas
26
Subido en
16-09-2024
Escrito en
2024/2025

COS2601 Assignment 4 marked memo 2024

Institución
Grado










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

Escuela, estudio y materia

Institución
Grado

Información del documento

Subido en
16 de septiembre de 2024
Número de páginas
26
Escrito en
2024/2025
Tipo
Otro
Personaje
Desconocido

Temas

Vista previa del contenido

UNISA  2024  COS2601-24-Y  Assessments  Assessment 4

QUIZ




Started on Wednesday, 11 September 2024, 10:06 PM
State Finished
Completed on Sunday, 15 September 2024, 8:22 PM
Time taken 3 days 22 hours
Grade 19.00 out of 20.00 (95%)

,Question 1

Correct

Mark 1.00 out of 1.00




Consider the following FA with the regular expression r:




By applying Kleene’s theorem, an FA must be built for the regular expression r*. In the process a transition table is compiled.
We compile a suitable transition table by using the algorithm provided in Cohen page 129.




1.  From the discussion, it is clear that this option is the correct
New state Read an a Read an b
option
±z1 = w1 z2 z3

z2 = w1 z2 z3

z3 = w2 z2 +z4

+z4 = w1 or w3 +z4 +z5

+z5 = w1 or w2 or w3 +z4 +z5



2.
New state Read an a Read an b

z1 = w1 z1 z2

z2 = w2 z1 +z3

+z3 = w1 or w3 +z3 +z4

+z4 = w1 or w2 or w3 +z3 +z4



3.
New state Read an a Read an b

±z1 = w1 ±z1 z2

z2 = w2 ±z1 +z3

+z3 = w1 or w3 +z3 +z4

+z4 = w1 or w2 or w3 +z3 +z4



4.
New state Read an a Read an b

z1 = w1 z1 z2

z2 = w2 z1 +z3

+z3 = w3 +z3 +z3




Your answer is correct.

By applying Kleene’s theorem, an FA must be built for the regular expression r*. In the process, a transition table is compiled.
Which one of the following represents the correct transition table?

In state ±z1 = x1 we can read

, an a: we go to +x2 or (because +x2 is a final state) to x1; so we have x1 or +x2 = +z3 which is also a final state; or
a b: we go to x3 = z4.
In state z2 = x1 we can read

an a: we go to +x2 or (because +x2 is a final state) to x1; so we have x1 or +x2 = +z3 which is also a final state; or
a b: we go to x3 = z4.
In state z3 = x1 or +x2 we can read
an a: if in x1, we go to +x2 or (because +x2 is a final state) to x1; if in x2, we stay in +x2 or (because +x2 is a final state) to x1;
so together we have x1 or +x2 which is +z3; or
a b: if in x1, we go to x3; if in x2, we also go to x3; so together we have x3, which is z4.
In state z4 = x3 we can read
an a: we go to +x2 or (because +x2 is a final state) to x1; so together we have x1 or +x2 which is +z3; or
a b: we stay in x3, which is z4.

We provide the compiled table:

New state Read an a Read an b

±z1 = w1 z2 z3

z2 = w1 z2 z3

z3 = w2 z2 +z4

+z4 = w1 or w3 +z4 +z5

+z5 = w1 or w2 or w3 +z4 +z5




The correct answers are:


New state Read an a Read an b

±z1 = w1 z2 z3

z2 = w1 z2 z3

z3 = w2 z2 +z4

+z4 +z5
+z4 = w1 or w3
+z4 +z5
+z5 = w1 or w2 or w3
,




New state Read an a Read an b

z1 z2
z1 = w1
z1 +z3
z2 = w2

+z3 = w3 +z3 +z3
$7.36
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.
foxNotes Acsess Business Academy
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
112
Miembro desde
2 año
Número de seguidores
63
Documentos
35
Última venta
1 mes hace
saveNotes

5.0

5 reseñas

5
5
4
0
3
0
2
0
1
0

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