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

COS3751 EXAM PACK 2026 |Past Papers With Possible Solutions|

Puntuación
-
Vendido
1
Páginas
253
Grado
A+
Subido en
18-11-2025
Escrito en
2025/2026

COS3751 EXAM PACK 2026 |Past Papers With Possible Solutions| SUCCESS !!!

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
18 de noviembre de 2025
Archivo actualizado en
21 de enero de 2026
Número de páginas
253
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

COS3751

EXAM
PACK

2025

,COS3751 October/November 2024 Exam -
Complete Solutions

Question 1: State Spaces [16]

Hungarian Forint and Mexican Peso Puzzle

Initial: F F _ P P
Goal: P P _ F F


(a) State Representation (2 marks)

State representation: S = [pos0, pos1, pos2, pos3, pos4]

Where each position contains:

• 'F' for Forint coin
• 'P' for Peso coin
• '_' (or 'E') for Empty cell

Example: S = ['F', 'F', '_', 'P', 'P']


(b) Start and Goal States (4 marks)

Start State: S₀ = ['F', 'F', '_', 'P', 'P']

Representing two Forint coins on the left, empty cell in middle, two Peso coins on the right.

Goal State: S_goal = ['P', 'P', '_', 'F', 'F']

Representing two Peso coins on the left, empty cell in middle, two Forint coins on the right.


(c) Adequacy of Representation (2 marks)

,This representation adequately defines any state because:

1. Complete information: Every cell's contents are explicitly represented (all 5 positions)
2. Unique identification: Each configuration is uniquely identifiable - no ambiguity
3. Legal move determination: We can determine all valid moves by:
o Finding the empty cell position
o Checking adjacent cells for slide moves
o Checking cells two positions away for hop moves
4. Goal testing: Easy comparison with goal state using simple equality check
5. Fixed size: Always 5 positions, maintaining consistency across all states
6. Sufficient detail: Contains exactly the necessary information - no more, no less


(d) Operators (5 marks)

Four operators with preconditions and effects:

1. Forint_Slide(S, i)

• Precondition: S[i] = 'F' AND S[i+1] = '_' AND i < 4
• Effect: Swap S[i] and S[i+1]
• Example: ['F', 'F', '', 'P', 'P'] → ['F', '', 'F', 'P', 'P'] (Forint at position 1 slides right to
position 2)

2. Forint_Hop(S, i)

• Precondition: S[i] = 'F' AND S[i+1] ∈ {'F', 'P'} AND S[i+2] = '_' AND i ≤ 2
• Effect: S[i] ↔ S[i+2] (Forint jumps right over another coin)
• Example: ['F', 'P', '', 'P', 'F'] → ['', 'P', 'F', 'P', 'F'] (Forint at position 0 hops over Peso at
position 1 to empty position 2)

3. Peso_Slide(S, i)

• Precondition: S[i] = 'P' AND S[i-1] = '_' AND i > 0
• Effect: Swap S[i] and S[i-1]

, • Example: ['F', 'F', '', 'P', 'P'] → ['F', 'F', 'P', '', 'P'] (Peso at position 3 slides left to
position 2)

4. Peso_Hop(S, i)

• Precondition: S[i] = 'P' AND S[i-1] ∈ {'F', 'P'} AND S[i-2] = '_' AND i ≥ 2
• Effect: S[i] ↔ S[i-2] (Peso jumps left over another coin)
• Example: ['', 'F', 'P', 'P', 'F'] → ['P', 'F', '', 'P', 'F'] (Peso at position 2 hops left over
Forint at position 1 to empty position 0)


(e) Number of Possible States (3 marks)

Calculation:

We have:

• 2 Forint coins (indistinguishable from each other)
• 2 Peso coins (indistinguishable from each other)
• 1 Empty cell
• 5 positions total

Formula: Number of distinct arrangements = 5! / (2! × 2! × 1!)

Computation:

• 5! = 5 × 4 × 3 × 2 × 1 = 120
• 2! × 2! × 1! = 2 × 2 × 1 = 4
• Total = = 30 possible states


Question 2: Machine Learning [16]

Engineers and Interns Crossing Problem

Given:
$2.71
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.
FocusZone University of South Africa (Unisa)
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
402
Miembro desde
8 meses
Número de seguidores
2
Documentos
519
Última venta
1 día hace
Focus Zone

On this page you will find Uploads and Package Deals by the seller FOCUS ZONE.

4.2

60 reseñas

5
34
4
12
3
11
2
0
1
3

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