Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 2 fuera de 14 páginas
Examen

COS4861 Assignment 2 2025 |COMPLETE ANSWERS|

Document preview thumbnail
Vista previa 2 fuera de 14 páginas

COS4861 Assignment 2 2025 |COMPLETE ANSWERS| 100% COMPLETE ANSWERS

Vista previa del contenido

COS4861
Assignment 2 2025

, Assignment 2: Natural Language Processing (NLP)

Question 1: Theory of Automata (40 marks)

1.1 Deterministic Finite State Automaton (DFSA)

A Deterministic Finite State Automaton (DFSA) is a type of finite state machine used in
computer science to recognize patterns or decide whether a given string belongs to a
particular language. The word “deterministic” means that for every state and input
symbol, there is exactly one transition to another state the machine never has to guess
or choose between options.

Key Components of a DFSA:

A DFSA is formally defined as a 5-tuple:
M = (Q, Σ, δ, q₀, F) where:

• Q is a finite set of states

• Σ is a finite input alphabet (symbols the automaton can read)

• δ is the transition function: δ: Q × Σ → Q

• q₀ is the start state (q₀ ∈ Q)

• F is the set of accept (final) states, where F ⊆ Q

How it operates:

The DFSA reads a string symbol by symbol, starting from the initial state (q₀). For each
input symbol, it uses the transition function (δ) to move to a new state. If the machine
ends in an accepting state after reading the full string, the string is accepted. If not, it's
rejected.

Example:

Let’s define a DFSA that accepts strings over the alphabet Σ = {0,1} that end with 01.

Define:

• Q = {q₀, q₁, q₂}

Información del documento

Subido en
11 de julio de 2025
Número de páginas
14
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$2.75

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

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.
FocusZone
4.2
(67)
Vendido
444
Seguidores
2
Artículos
631
Última venta
1 día hace



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