CSC266 · TU past paper
Artificial Intelligence 2078 question paper
The complete TU 2078 exam paper for Artificial Intelligence (CSC266), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- 110 marksUninformed SearchHideAnswer
How informed search are different than uninformed? Given following state space, illustrate how depth limited search and iterative depending search works? Use your own assumption for depth search. (A is start and K is goal.)[10]
--- - Has no additional information about states beyond the problem definition itself. - It explores the search space without any guidance toward the goal. - Only knows whether a state is a goal or not. - Examples: BFS, DFS, Depth Limite...
- 210 marksPredicate LogicHideAnswer
Consider following facts: Every traffic chases driver. Every driver who horns is smart. No traffic catches any smart driver. Any traffic who chases some driver but does not catch him frusted. Now configure FoPL knowledge base for above statements. Use resolution algorithm to draw a conclusion that “If all drivers horn, then all traffics are frusted.”[10]
Resolution Algorithm: Proving "If All Drivers Horn, Then All Traffics Are Frustrated"
Step 1: Identify the Facts and Convert to FoPL (First Order Predicate Logic)
Let us define the predicates:
Traffic(x): x is a trafficDriver(x): x is a driverHorns(x): x hornsSmart(x): x is smartChases(x, y): x chases yCatches(x, y): x catches yFrustrated(x): x is frustrated
FoPL Knowledge Base
# Natural Language Statement FoPL Formula F1 Every traffic chases (every) driver ∀x ∀y [Traffic(x) ∧ Driver(y) → Chases(x, y)]F2 Every driver who horns is smart ∀x [Driver(x) ∧ Horns(x) → Smart(x)]F3 No traffic catches any smart driver ∀x ∀y [Traffic(x) ∧ Smart(y) → ¬Catches(x, y)]F4 Any traffic who chases some driver but does not catch him is frustrated ∀x ∀y [Traffic(x) ∧ Driver(y) ∧ Chases(x,y) ∧ ¬Catches(x,y) → Frustrated(x)]Goal (to prove):
If all drivers horn, then all traffics are frustrated.
∀x ∀y [Driver(y) ∧ Horns(y) ∧ Traffic(x) → Frustrated(x)]
Step 2: Convert All Statements to Conjunctive Normal Form (CNF) / Clause Form
Using the implication elimination rule:
A → B ≡ ¬A ∨ BC1 (from F1):
∀x ∀y [Traffic(x) ∧ Driver(y) → Chases(x, y)] ≡ ¬Traffic(x) ∨ ¬Driver(y) ∨ Chases(x, y)C2 (from F2):
∀x [Driver(x) ∧ Horns(x) → Smart(x)] ≡ ¬Driver(x) ∨ ¬Horns(x) ∨ Smart(x)C3 (from F3):
∀x ∀y [Traffic(x) ∧ Smart(y) → ¬Catches(x, y)] ≡ ¬Traffic(x) ∨ ¬Smart(y) ∨ ¬Catches(x, y)C4 (from F4):
∀x ∀y [Traffic(x) ∧ Driver(y) ∧ Chases(x,y) ∧ ¬Catches(x,y) → Frustrated(x)] ≡ ¬Traffic(x) ∨ ¬Driver(y) ∨ ¬Chases(x,y) ∨ Catches(x,y) ∨ Frustrated(x)
Step 3: Negate the Goal (for Proof by Refutation / Resolution)
The goal to prove:
∀x ∀y [Traffic(x) ∧ Driver(y) ∧ Horns(y) → Frustrated(x)]Negate the goal:
¬[∀x ∀y (Traffic(x) ∧ Driver(y) ∧ Horns(y) → Frustrated(x))] ≡ ∃x ∃y [Traffic(x) ∧ Driver(y) ∧ Horns(y) ∧ ¬Frustrated(x)]Using Skolemization (replace existential variables with constants
aandb):C5:
Traffic(a)C6:
Driver(b)C7:
Horns(b)C8:
¬Frustrated(a)
Step 4: Apply Resolution Algorithm
We now have the clause set:
C1: ¬Traffic(x) ∨ ¬Driver(y) ∨ Chases(x, y) C2: ¬Driver(x) ∨ ¬Horns(x) ∨ Smart(x) C3: ¬Traffic(x) ∨ ¬Smart(y) ∨ ¬Catches(x, y) C4: ¬Traffic(x) ∨ ¬Driver(y) ∨ ¬Chases(x,y) ∨ Catches(x,y) ∨ Frustrated(x) C5: Traffic(a) C6: Driver(b) C7: Horns(b) C8: ¬Frustrated(a)
Resolution Steps:
Step R1: Resolve C2 with C6 and C7
C2 : ¬Driver(x) ∨ ¬Horns(x) ∨ Smart(x) [x = b] C6 : Driver(b) C7 : Horns(b) ---------------------------------------------- R1 : Smart(b)Step R2: Resolve C1 with C5 and C6
C1 : ¬Traffic(x) ∨ ¬Driver(y) ∨ Chases(x, y) [x = a, y = b] C5 : Traffic(a) C6 : Driver(b) ---------------------------------------------- R2 : Chases(a, b)Step R3: Resolve C3 with C5 and R1
C3 : ¬Traffic(x) ∨ ¬Smart(y) ∨ ¬Catches(x, y) [x = a, y = b] C5 : Traffic(a) R1 : Smart(b) ---------------------------------------------- R3 : ¬Catches(a, b)Step R4: Resolve C4 with C5, C6, and R2
C4 : ¬Traffic(x) ∨ ¬Driver(y) ∨ ¬Chases(x,y) ∨ Catches(x,y) ∨ Frustrated(x) [x = a, y = b] C5 : Traffic(a) C6 : Driver(b) R2 : Chases(a, b) ---------------------------------------------- R4 : Catches(a, b) ∨ Frustrated(a)Step R5: Resolve R4 with R3
R4 : Catches(a, b) ∨ Frustrated(a) R3 : ¬Catches(a, b) ---------------------------------------------- R5 : Frustrated(a)Step R6: Resolve R5 with C8
R5 : Frustrated(a) C8 : ¬Frustrated(a) ---------------------------------------------- NIL (Empty Clause -- Contradiction!)
Step 5: Conclusion
Since resolution derives the empty clause (NIL) from the knowledge base together with the negated goal, the negated goal is unsatisfiable together with the facts. By the refutation principle, this proves the original statement:
$$\boxed{\text{If all drivers horn, then all traffics are frustrated.}}$$
- 310 marksLearning with Neural NetworksHideAnswer
Describe mathematical model of neural network. What does it means to train a neural network? Write algorithm for preceptron learning.[10]
--- A neural network is inspired by the biological neuron. The mathematical model of a single artificial neuron (also called a perceptron or node) consists of the following components: Component Description ------------------------ Input...
- 45 marksAI PerspectivesHideAnswer
What is Turing test? How it can be used to measure intelligence of machine? [5]
The Turing Test was proposed by Alan Turing in his 1950 paper "Computing Machinery and Intelligence", which is considered the first complete vision of AI. The Turing Test states that: A computer could be called intelligent if it passes t...
- 55 marksPEAS description of AgentsHideAnswer
How agent can be configured used PEAS framework? Illustrate with example. [5]
PEAS is a framework used to describe and configure an intelligent agent by specifying four key components: Letter Stands For Description -------------------------------- P Performance Measure Criteria to evaluate agent's success E Enviro...
- 65 marksTypes of Knowledge Representation SystemsHideAnswer
Construct semantic network for following facts: Ram is person. Persons are humans. All human have nose. Humans are instances of mammals. Ram has weight of 60 kg. Weight of Ram is less than weight of Sita. [5]
A semantic network represents knowledge as a graph where: - Nodes represent objects, concepts, or classes - Arcs (links) represent relationships between them - Common relationships: is-a (subclass), instance-of (element of class), and pr...
- 75 marksNumericalLearning by Genetic AlgorithmHideAnswer
What is iscrossver operation in genetic algorithm? Given following chromosomes show the result of one-point and two point crossover. C1 = 01100010, C2 = 10101100. Choose appropriate crossover points as per your own suggestions. [5]
Crossover Operation in Genetic Algorithm
Given Data
- Chromosome $C_1 = 01100010$
- Chromosome $C_2 = 10101100$
- Each chromosome has 8 bits.
- Crossover points to be chosen by student.
Position indexing:
C1 = 0 1 1 0 0 0 1 0 C2 = 1 0 1 0 1 1 0 0 1 2 3 4 5 6 7 8
Definition of Crossover
Crossover (also called recombination) is a genetic operator in a Genetic Algorithm that combines the genetic material of two parent chromosomes to produce one or more offspring. Two parents are selected from the mating pool, one or more crossover points are chosen, and the segments of the parents are exchanged around these points. Crossover is the primary operator responsible for exploring new regions of the search space by recombining good building blocks (schemas) from both parents, thereby helping the population converge toward better solutions.
One-Point Crossover
Chosen crossover point: after position 4.
Split at position 4:
Chromosome Head (pos 1-4) Tail (pos 5-8) $C_1$ 01100010$C_2$ 10101100Swap the tails:
C1 = 0110 | 0010 C2 = 1010 | 1100 ^ (cut after position 4) O1 = 0110 | 1100 = 01101100 O2 = 1010 | 0010 = 10100010Offspring: $O_1 = 01101100$, $O_2 = 10100010$.
Verification of bit copy:
- O1 head = C1 head
0110✓; O1 tail = C2 tail1100✓ - O2 head = C2 head
1010✓; O2 tail = C1 tail0010✓
Two-Point Crossover
Chosen crossover points: after position 2 and after position 6.
Split into three segments:
Chromosome Seg 1 (1-2) Seg 2 (3-6) Seg 3 (7-8) $C_1$ 01100010$C_2$ 10101100Check the middle segment of C1 (pos 3-6): C1 = 0 1 1 0 0 0 1 0 →
1000✓ Middle segment of C2 (pos 3-6): C2 = 1 0 1 0 1 1 0 0 →1011✓Swap the middle segment:
C1 = 01 | 1000 | 10 C2 = 10 | 1011 | 00 ^ ^ cut after 2 cut after 6 O1 = 01 | 1011 | 10 = 01101110 O2 = 10 | 1000 | 00 = 10100000Offspring: $O_1 = 01101110$, $O_2 = 10100000$.
Summary Table
Operation Crossover Points Offspring 1 Offspring 2 One-Point after pos 4 0110110010100010Two-Point after pos 2 & 6 0110111010100000Crossover recombines features of both parents to generate new candidate solutions, which is essential for the genetic algorithm to search effectively and converge toward an optimal solution.
- 85 marksExpert SystemsHideAnswer
What is expert system? How its works? Mention role of inference engine in expert system. [5]
An expert system is a computer program that is designed to solve complex problems and to provide decision-making ability like a human expert. It performs this by extracting knowledge from its knowledge base using reasoning and inference ...
- 95 marksNatural Language ProcessingHideAnswer
How semantic and pragmatic analysis is done in natural language processing. [5]
Natural Language Processing (NLP) is a technology that involves converting spoken or written language into a form which can be processed by computers and vice-versa. To understand natural language, a system must pass through several leve...
- 105 marksFoundations of AIHideAnswer
How philosophy, sociology and economics influence the study of artificial intelligence? [5]
Philosophy is one of the foundational disciplines that directly shaped the development of AI. Philosophy contributes the following: - Logic and methods of reasoning - Mind as a physical system - Foundations of learning and language - Con...
- 115 marksNumericalAlpha-Beta PruningHideAnswer
Given following search space, determine if these exists any alpha and beta cutoffs. [5]
Critical finding: The question refers to a "following search space" (a game tree diagram with node types and terminal/leaf values), but no tree diagram, no node values, no branching structure, and no ordering information were provided in...
- 125 marksNumericalHandling Uncertain Knowledge, Radom VariabHideAnswer
What is prosteroir probability? Consider a scenario that a patient have liver disease is 15% probability. A test says that 5% of patients are alcholic. Among those patients diagnosed with liver disease, 7% are alcoholic. Now computer the chance of having liver disease, if the patient is alcoholic. [5]
Symbol Meaning Value ------------------------ $P(L)$ Probability a patient has liver disease $0.15$ $P(A)$ Probability a patient is alcoholic $0.05$ $P(A\mid L)$ Probability a patient is alcoholic given they have liver disease $0.07$ Req...