Browse papers
A

Section A: Long Answer Questions

Attempt all / any as specified.

4 questions
1long12 marks

(a) Define an intelligent agent. With the help of a block diagram, explain the structure of a learning agent, clearly describing the role of the performance element, learning element, critic, and problem generator. (7 marks)

(b) Consider an automated vacuum-cleaning robot operating in a house. Specify its task environment using the PEAS (Performance measure, Environment, Actuators, Sensors) framework, and classify the environment along the dimensions: observable vs. partially observable, deterministic vs. stochastic, episodic vs. sequential, static vs. dynamic. (5 marks)

(a) Intelligent agent and the learning agent (7 marks)

Intelligent agent: An intelligent agent is anything that perceives its environment through sensors and acts upon that environment through actuators so as to maximize its expected performance measure. It maps a sequence of percepts to actions and behaves rationally.

Structure of a learning agent

A learning agent can be divided into four conceptual components:

              Performance standard
                     |
                     v
  Sensors --> [ Critic ] --feedback--> [ Learning Element ]
     ^                                        |
     |                                  changes (knowledge)
     |                                        v
Environment <-- Actuators <-- [ Performance Element ] <--+
                                        ^               |
                                        |               |
                                  learning goals        |
                                 [ Problem Generator ]---+
  • Performance element: Selects external actions based on percepts. It is the part that, in a non-learning agent, would be the whole agent (it decides what to do now).
  • Learning element: Responsible for making improvements. Using feedback from the critic, it modifies the knowledge/components of the performance element so future decisions are better.
  • Critic: Observes the agent's behaviour and tells the learning element how well the agent is doing with respect to a fixed performance standard. The standard must be external because the percepts themselves give no clue about success.
  • Problem generator: Suggests exploratory actions that may be suboptimal in the short term but lead to new, informative experiences, preventing the agent from always exploiting what it already knows.

(b) PEAS for an automated vacuum-cleaning robot (5 marks)

PEASSpecification
Performance measureAmount of dirt cleaned, area covered, time/energy used, avoiding collisions, minimum noise
EnvironmentRooms, floor surfaces, furniture, walls, dust/dirt, pets, charging dock
ActuatorsWheels/motors for movement, suction motor, brushes, dirt-bin mechanism
SensorsBump/contact sensors, dirt/optical sensors, cliff sensors, infrared/cliff detectors, battery sensor, camera/odometry

Environment classification

  • Partially observable — the robot senses only its immediate surroundings, not the whole house at once.
  • Stochastic — outcomes are uncertain (wheel slip, unexpectedly moved furniture, new dirt appearing).
  • Sequential — current actions (where it moves) affect which areas remain to be cleaned later.
  • Dynamic — the world can change while the robot deliberates (people walk, pets move, new dirt appears).
intelligent-agentsagent-environment
2long16 marks

(a) State and prove the conditions of admissibility and consistency of a heuristic function. Show that every consistent heuristic is admissible. (6 marks)

(b) Consider the following weighted graph where the start node is S and the goal node is G. The edge costs and the heuristic estimates h(n) to the goal are given below:

Nodeh(n)
S10
A7
B6
C3
G0

Edges (with cost): S-A=3, S-B=5, A-C=4, B-C=2, C-G=4, A-G=12.

Trace the A* search algorithm step by step, showing the contents of the open and closed lists at each iteration, and determine the optimal path from S to G and its total cost. (10 marks)

(a) Admissibility and consistency of a heuristic (6 marks)

Let h(n)h(n) be the heuristic estimate of the cost from node nn to a goal, and h(n)h^*(n) the true optimal cost.

Admissibility: hh is admissible if it never overestimates the cost to reach the goal:

0h(n)h(n)for every node n.0 \le h(n) \le h^*(n) \quad \text{for every node } n.

Consistency (monotonicity): hh is consistent if for every node nn and every successor nn' reached by an action of cost c(n,n)c(n,n'):

h(n)c(n,n)+h(n).h(n) \le c(n,n') + h(n').

Every consistent heuristic is admissible

Proof by induction on the number of steps kk from nn to the goal along an optimal path.

  • Base case (k=0k = 0): nn is the goal, h(n)=0=h(n)h(n) = 0 = h^*(n), so h(n)h(n)h(n) \le h^*(n).
  • Inductive step: Assume h(n)h(n)h(n') \le h^*(n') for the optimal successor nn' that is kk steps from the goal. By consistency, h(n)c(n,n)+h(n)h(n) \le c(n,n') + h(n'). Since nn' lies on the optimal path, h(n)=c(n,n)+h(n)h^*(n) = c(n,n') + h^*(n'). Therefore
h(n)c(n,n)+h(n)c(n,n)+h(n)=h(n).h(n) \le c(n,n') + h(n') \le c(n,n') + h^*(n') = h^*(n).

Hence h(n)h(n)h(n) \le h^*(n) for all nn, i.e. consistency implies admissibility. (The converse is not true.) \blacksquare

(b) A* trace (10 marks)

Using f(n)=g(n)+h(n)f(n) = g(n) + h(n). Edges: S-A=3, S-B=5, A-C=4, B-C=2, C-G=4, A-G=12. Heuristics: S=10, A=7, B=6, C=3, G=0.

Iteration 1 — expand S (g=0g=0):

  • A: g=3,f=3+7=10g=3, f=3+7=10
  • B: g=5,f=5+6=11g=5, f=5+6=11

Open = {A(10), B(11)}, Closed = {S}

Iteration 2 — expand A (lowest f=10f=10, g=3g=3):

  • C via A: g=3+4=7,f=7+3=10g=3+4=7, f=7+3=10
  • G via A: g=3+12=15,f=15+0=15g=3+12=15, f=15+0=15

Open = {C(10), B(11), G(15)}, Closed = {S, A}

Iteration 3 — expand C (lowest f=10f=10, g=7g=7):

  • G via C: g=7+4=11,f=11+0=11g=7+4=11, f=11+0=11 (better than previous G=15, so update)

Open = {G(11), B(11)}, Closed = {S, A, C}

Iteration 4 — expand G (tie at f=11f=11; G is the goal): Goal reached with f=11f=11.

(Note: B is also f=11f=11 but expanding B would give C via B at g=5+2=7g=5+2=7 = same gg, no improvement, and cannot beat f=11f=11 to goal.)

Result

Optimal path: SACGS \to A \to C \to G

Total cost: 3+4+4=113 + 4 + 4 = \mathbf{11}.

informed-searcha-starheuristics
3long12 marks

(a) Convert the following statements into well-formed formulae in first-order predicate logic:

  1. Every student who studies hard passes the examination.
  2. Some students do not like every subject.
  3. All birds can fly except penguins. (6 marks)

(b) Given the knowledge base:

  • All people who own a dog are animal lovers.
  • Animal lovers do not kill animals.
  • Either Jack or Curiosity killed the cat named Tuna.
  • Jack owns a dog.

Convert the statements to clause form and use resolution refutation to prove that Curiosity killed the cat. (6 marks)

(a) Statements in first-order predicate logic (6 marks)

1. Every student who studies hard passes the examination.

x[Student(x)StudiesHard(x)Passes(x)]\forall x\,[\, Student(x) \wedge StudiesHard(x) \Rightarrow Passes(x) \,]

2. Some students do not like every subject.

x[Student(x)y(Subject(y)¬Likes(x,y))]\exists x\,[\, Student(x) \wedge \exists y\,( Subject(y) \wedge \neg Likes(x,y) ) \,]

Equivalently x[Student(x)¬y(Subject(y)Likes(x,y))]\exists x\,[Student(x) \wedge \neg \forall y\,(Subject(y) \Rightarrow Likes(x,y))].

3. All birds can fly except penguins.

x[Bird(x)¬Penguin(x)CanFly(x)]\forall x\,[\, Bird(x) \wedge \neg Penguin(x) \Rightarrow CanFly(x) \,]

(b) Resolution refutation: Curiosity killed the cat (6 marks)

Predicates

Dog(x)Dog(x), Owns(x,y)Owns(x,y), AnimalLover(x)AnimalLover(x), Animal(x)Animal(x), Kills(x,y)Kills(x,y), Cat(x)Cat(x); constants: JackJack, CuriosityCuriosity, TunaTuna.

Knowledge base in FOL

  1. x[(yDog(y)Owns(x,y))AnimalLover(x)]\forall x\,[(\exists y\, Dog(y) \wedge Owns(x,y)) \Rightarrow AnimalLover(x)]
  2. x[AnimalLover(x)y(Animal(y)¬Kills(x,y))]\forall x\,[AnimalLover(x) \Rightarrow \forall y\,(Animal(y) \Rightarrow \neg Kills(x,y))]
  3. Kills(Jack,Tuna)Kills(Curiosity,Tuna)Kills(Jack,Tuna) \vee Kills(Curiosity,Tuna)
  4. Cat(Tuna)Cat(Tuna)
  5. x[Cat(x)Animal(x)]\forall x\,[Cat(x) \Rightarrow Animal(x)] (cats are animals)
  6. Dog(D)Dog(D) and Owns(Jack,D)Owns(Jack,D) (Jack owns a dog DD)

Clause form

  • C1: ¬Dog(y)¬Owns(x,y)AnimalLover(x)\neg Dog(y) \vee \neg Owns(x,y) \vee AnimalLover(x)
  • C2: ¬AnimalLover(x)¬Animal(y)¬Kills(x,y)\neg AnimalLover(x) \vee \neg Animal(y) \vee \neg Kills(x,y)
  • C3: Kills(Jack,Tuna)Kills(Curiosity,Tuna)Kills(Jack,Tuna) \vee Kills(Curiosity,Tuna)
  • C4: Cat(Tuna)Cat(Tuna)
  • C5: ¬Cat(x)Animal(x)\neg Cat(x) \vee Animal(x)
  • C6a: Dog(D)Dog(D) , C6b: Owns(Jack,D)Owns(Jack,D)
  • Negated goal C7: ¬Kills(Curiosity,Tuna)\neg Kills(Curiosity,Tuna)

Refutation

  1. C4 + C5 \Rightarrow R1: Animal(Tuna)Animal(Tuna)
  2. C6a + C6b + C1 (y=D,x=Jacky=D, x=Jack) \Rightarrow R2: AnimalLover(Jack)AnimalLover(Jack)
  3. C3 + C7 (resolve on Kills(Curiosity,Tuna)Kills(Curiosity,Tuna)) \Rightarrow R3: Kills(Jack,Tuna)Kills(Jack,Tuna)
  4. C2 + R2 (x=Jackx=Jack) \Rightarrow R4: ¬Animal(y)¬Kills(Jack,y)\neg Animal(y) \vee \neg Kills(Jack,y)
  5. R4 + R1 (y=Tunay=Tuna) \Rightarrow R5: ¬Kills(Jack,Tuna)\neg Kills(Jack,Tuna)
  6. R5 + R3 \Rightarrow \square (empty clause)

The empty clause is derived, so the negation leads to a contradiction. Hence Curiosity killed the cat is proved.

predicate-logicinferenceresolution
4long12 marks

(a) Draw the architecture of a feed-forward multilayer perceptron and derive the weight-update rule for a single hidden layer using the backpropagation algorithm. Clearly state all the assumptions and the role of the activation function. (8 marks)

(b) Why is a single-layer perceptron unable to solve the XOR problem? Show, with a suitable diagram, how a multilayer network overcomes this limitation. (4 marks)

(a) Feed-forward MLP and backpropagation (8 marks)

Architecture

  x1 ---\        (hidden)        (output)
  x2 ----+--> [ h1 ]  w_jk -->  [ o1 ]
  x3 ----+--> [ h2 ]  ------->  [ o2 ]
   ...   /--> [ hj ]
 Input layer   v_ij weights   w_jk weights

A fully connected, acyclic network: input layer \to one hidden layer (weights vijv_{ij}) \to output layer (weights wjkw_{jk}). Signals flow only forward.

Assumptions / activation function

  • The activation ff is differentiable and non-linear (e.g. sigmoid f(net)=11+enetf(net)=\frac{1}{1+e^{-net}}, so f(net)=f(net)(1f(net))f'(net)=f(net)(1-f(net))). Non-linearity lets the network represent non-linearly-separable functions; differentiability allows gradient computation.
  • Error is measured by mean-squared error E=12k(tkok)2E = \tfrac{1}{2}\sum_k (t_k - o_k)^2; weights updated by gradient descent with learning rate η\eta.

Derivation of the update rule

For an output-layer weight wjkw_{jk} (hidden jj to output kk), with netk=jwjkojnet_k=\sum_j w_{jk} o_j and ok=f(netk)o_k=f(net_k):

Ewjk=(tkok)f(netk)oj=δkoj,δk=(tkok)f(netk)\frac{\partial E}{\partial w_{jk}} = -(t_k - o_k)\,f'(net_k)\,o_j = -\delta_k\, o_j,\quad \delta_k=(t_k-o_k)f'(net_k)   Δwjk=ηδkoj  \boxed{\;\Delta w_{jk} = \eta\,\delta_k\,o_j\;}

For a hidden-layer weight vijv_{ij} (input ii to hidden jj), the error is backpropagated from all output units:

δj=f(netj)kδkwjk\delta_j = f'(net_j)\sum_k \delta_k\, w_{jk}   Δvij=ηδjxi  \boxed{\;\Delta v_{ij} = \eta\,\delta_j\,x_i\;}

Weights are updated as ww+Δww \leftarrow w + \Delta w and iterated until the error converges. This is the backpropagation of error.

(b) XOR and the single-layer perceptron (4 marks)

A single-layer perceptron computes a single linear decision boundary w1x1+w2x2+b=0w_1x_1 + w_2x_2 + b = 0 and can only classify linearly separable data. XOR outputs:

x1x_1x2x_2XOR
000
011
101
110

The two classes (0s at opposite corners, 1s at the other two corners) cannot be separated by any single straight line, so a single perceptron fails.

Multilayer solution: Use a hidden layer that builds intermediate features, e.g. h1=OR(x1,x2)h_1 = OR(x_1,x_2) and h2=AND(x1,x2)h_2 = AND(x_1,x_2), then output =AND(h1,¬h2)=h1¬h2= AND(h_1, \neg h_2) = h_1 \wedge \neg h_2. Geometrically each hidden unit draws one line, and the output unit combines the two half-planes into the non-linear XOR region. Thus an MLP with one hidden layer solves XOR.

neural-networksmachine-learning
B

Section B: Short Answer Questions

Attempt all / any as specified.

9 questions
5short6 marks

Compare Breadth-First Search (BFS) and Depth-First Search (DFS) in terms of completeness, optimality, time complexity, and space complexity. Under what circumstances would you prefer Iterative Deepening DFS over either of them?

Let bb = branching factor, dd = depth of the shallowest goal, mm = maximum depth of the tree.

PropertyBFSDFS
CompletenessYes (finite bb)No (can loop in infinite/deep branches)
OptimalityYes, if all step costs are equalNo
Time complexityO(bd)O(b^d)O(bm)O(b^m)
Space complexityO(bd)O(b^d) (stores whole frontier)O(bm)O(bm) (only current path)

BFS guarantees the shallowest/optimal solution but its memory demand is exponential, which is usually the limiting factor. DFS uses little memory but is neither complete nor optimal.

Iterative Deepening DFS (IDDFS) is preferred when memory is limited but completeness and optimality (uniform cost) are still required, and the solution depth is unknown. It runs DFS with increasing depth limits, so it has DFS's linear space O(bd)O(bd) yet BFS's completeness and optimality, with time O(bd)O(b^d) (re-expanding shallow nodes adds only a constant-factor overhead).

uninformed-searchbfs-dfs
6short6 marks

Explain the hill-climbing search technique. What are the problems of local maxima, plateau, and ridges encountered in hill climbing, and how can each of them be addressed?

Hill-climbing is a local-search technique that starts from an arbitrary state and repeatedly moves to the neighbouring state with the best (highest) value of an objective/heuristic function, stopping when no neighbour is better. It is essentially greedy local optimisation that keeps no search tree, only the current state.

current <- initial state
loop:
    neighbour <- highest-valued successor of current
    if value(neighbour) <= value(current): return current
    current <- neighbour

Problems and remedies

  • Local maximum: A peak higher than all neighbours but lower than the global maximum; the search stops there. Remedies: random-restart hill climbing, simulated annealing, or allowing sideways/uphill-with-probability moves.
  • Plateau: A flat region where neighbours have equal value, giving no gradient to follow. Remedies: allow a bounded number of sideways moves to traverse the plateau, or random restart.
  • Ridge: A sloping region where progress requires moving through states that individually look worse along the available single-step moves (axes are not aligned with the ridge). Remedies: use larger or compound moves / multiple directions at once, or apply random restarts.

Generally, random-restart hill climbing and simulated annealing overcome all three by escaping poor local optima.

heuristicslocal-search
7short6 marks

What is knowledge representation? Represent the following facts using a semantic network: Tweety is a bird, all birds are animals, birds can fly, and animals can breathe. State one advantage and one limitation of semantic networks.

Knowledge representation (KR) is the area of AI concerned with how facts, objects, relationships and rules about the world are formally encoded in a form a computer can store and reason over (e.g. logic, semantic networks, frames, rules) to derive new knowledge.

Semantic network for the given facts

Nodes are concepts; labelled arcs are relations. is-a arcs allow inheritance of properties.

            [ Animal ] --can--> [ Breathe ]
               ^
             is-a
               |
            [ Bird ] --can--> [ Fly ]
               ^
             is-a
               |
            [ Tweety ]
  • Tweety is-a Bird; Bird is-a Animal.
  • Bird can Fly; Animal can Breathe.
  • By inheritance, Tweety inherits can fly (from Bird) and can breathe (from Animal).

Advantage: Natural, intuitive representation that supports property inheritance through is-a links, making reasoning and visualisation easy.

Limitation: No standard formal semantics for quantifiers, negation or exceptions (e.g. handling a non-flying bird like a penguin is awkward), so reasoning can be ambiguous.

knowledge-representationsemantic-networks
8short6 marks

With a neat block diagram, explain the architecture of an expert system. Differentiate between forward chaining and backward chaining inference mechanisms with a suitable example.

Architecture of an expert system

        +-------------+        +------------------+
 User-->| User        |<------>| Inference Engine |
        | Interface   |        +------------------+
        +-------------+              ^      ^
               ^                     |      |
               |                     v      v
        +--------------+     +-------------+  +-----------------+
        | Explanation  |     | Knowledge   |  | Working Memory  |
        | Facility     |     | Base (facts |  | (case facts)    |
        +--------------+     |  + rules)   |  +-----------------+
                             +-------------+
                                    ^
                          +-------------------+
                          | Knowledge         |
                          | Acquisition (expert)|
                          +-------------------+
  • Knowledge base: Domain facts and IF–THEN production rules.
  • Inference engine: Applies rules to the facts to derive conclusions (forward/backward chaining).
  • Working memory: Holds the current problem facts.
  • User interface: Lets the user pose problems and receive answers.
  • Explanation facility: Justifies how/why a conclusion was reached.
  • Knowledge acquisition module: Lets experts update/extend the knowledge base.

Forward vs. backward chaining

Forward chainingBackward chaining
DirectionData-driven: from facts to conclusionsGoal-driven: from a hypothesis back to facts
MethodFire rules whose conditions are satisfied, adding new facts until goal appearsTake the goal, find rules concluding it, recursively prove their conditions
Best forMany possible conclusions from data (monitoring, design)Verifying a specific hypothesis (diagnosis)

Example. Rule: IF it has fever AND cough THEN flu.

  • Forward: given facts fever and cough, the engine fires the rule and concludes flu.
  • Backward: to check the hypothesis flu, the engine asks whether fever and cough hold, querying the user/facts for each.
expert-systems
9short6 marks

Differentiate between supervised and unsupervised learning with appropriate examples. Briefly describe how overfitting occurs in a machine learning model and list two techniques to reduce it.

Supervised vs. unsupervised learning

Supervised learningUnsupervised learning
DataLabelled (input–output pairs)Unlabelled (inputs only)
GoalLearn a mapping xyx \to y to predict labelsDiscover hidden structure/patterns
TasksClassification, regressionClustering, dimensionality reduction, association
ExamplesSpam detection, house-price prediction (linear regression, SVM, decision tree)Customer segmentation, k-means clustering, PCA

Overfitting

Overfitting occurs when a model learns the training data too well — including its noise and random fluctuations — so it has very low training error but poor generalisation (high error on unseen test data). It typically happens with overly complex models, too many parameters, or too little training data.

Two techniques to reduce it:

  1. Regularisation (e.g. L1/L2 penalty, dropout in neural nets) to discourage overly complex models.
  2. Cross-validation / more training data / early stopping / pruning to select simpler models that generalise. (Any two are acceptable.)
machine-learningsupervised-unsupervised
10short6 marks

List and briefly explain the different phases of Natural Language Processing (NLP) (lexical, syntactic, semantic, discourse, and pragmatic analysis). Why is ambiguity a fundamental challenge in NLP? Give one example.

Phases of Natural Language Processing

  1. Lexical (morphological) analysis: Breaks text into tokens/words and analyses word structure (stems, prefixes, suffixes). e.g. "unhappiness" \to un + happy + ness.
  2. Syntactic analysis (parsing): Checks grammatical structure and builds a parse tree using grammar rules; rejects ungrammatical sequences (e.g. "boy the apple eats").
  3. Semantic analysis: Determines the literal meaning of the sentence by mapping syntactic structures to meaning representations and checking meaningfulness.
  4. Discourse integration: Interprets a sentence in the context of preceding sentences (e.g. resolving what "he" or "it" refers to across sentences).
  5. Pragmatic analysis: Derives the intended/real-world meaning considering context, speaker intent and world knowledge (e.g. "Can you pass the salt?" is a request, not a yes/no question).

Why ambiguity is a fundamental challenge

Natural language allows a single expression to have multiple valid interpretations at every level (lexical, syntactic, semantic, pragmatic), so the system must choose the intended one using context — which is hard to compute reliably.

Example (syntactic/semantic ambiguity): "I saw the man with the telescope." — Did I use a telescope to see the man, or did I see a man who had a telescope? Both parses are grammatically valid.

nlpnatural-language-processing
11short6 marks

Define unification in predicate logic. Find the Most General Unifier (MGU), if it exists, for each of the following pairs of expressions, or state why unification fails:

(a) P(x, f(y)) and P(a, f(g(z)))

(b) Q(x, x) and Q(a, b)

Unification is the process of finding a substitution θ\theta (a set of variable bindings) that makes two predicate-logic expressions syntactically identical, i.e. E1θ=E2θE_1\theta = E_2\theta. The most general such substitution is the Most General Unifier (MGU) — every other unifier is an instance of it.

(a) P(x, f(y)) and P(a, f(g(z)))

  • Same predicate PP, same arity — proceed.
  • Unify arguments: xx with aa \Rightarrow {x/a}\{x/a\}.
  • Unify f(y)f(y) with f(g(z))f(g(z)): same function ff \Rightarrow unify yy with g(z)g(z) \Rightarrow {y/g(z)}\{y/g(z)\} (no occurs-check violation since yy does not occur in g(z)g(z)).

MGU θ={x/a,  y/g(z)}\theta = \{x/a,\; y/g(z)\}. Applying it gives P(a,f(g(z)))P(a, f(g(z))) on both sides. ✔

(b) Q(x, x) and Q(a, b)

  • First arguments: xx with aa \Rightarrow {x/a}\{x/a\}.
  • Second arguments under this substitution: xθ=ax\theta = a must unify with bb. But aa and bb are distinct constants — they cannot be made equal.

Unification fails (no MGU exists), because the single variable xx would have to equal two different constants aa and bb at the same time.

predicate-logicunification
12short4 marks

What is the Turing Test? Discuss whether passing the Turing Test is a sufficient condition for a machine to be considered truly intelligent. Mention one major criticism of the test.

Turing Test: Proposed by Alan Turing (1950) as the "Imitation Game." A human interrogator holds a text-only conversation with two unseen participants — one human and one machine — and must decide which is which. If the interrogator cannot reliably distinguish the machine from the human, the machine is said to have passed the test and to exhibit human-level intelligent behaviour.

Is passing it sufficient for true intelligence? Arguably not. The test measures only the ability to imitate human conversational behaviour (the appearance of intelligence), not genuine understanding, consciousness, reasoning or self-awareness. A system could pass through clever pattern matching, tricks or deception without any real comprehension.

Major criticism — Searle's Chinese Room argument: A person manipulating Chinese symbols by following rules can produce correct Chinese responses without understanding Chinese at all. Likewise a machine could pass the Turing Test by symbol manipulation while having no actual understanding — so behaviour-based testing does not establish real intelligence.

intelligent-agentsturing-test
13short4 marks

Explain the Minimax algorithm for game playing. How does alpha-beta pruning improve its efficiency without affecting the final decision?

Minimax algorithm: A decision rule for two-player, zero-sum, perfect-information games (e.g. tic-tac-toe, chess). One player (MAX) tries to maximise the score; the opponent (MIN) tries to minimise it. The game tree is generated to some depth and evaluated by a utility/evaluation function at the leaves; values are then backed up: at MAX nodes take the maximum of the children's values, at MIN nodes take the minimum. MAX then chooses the move leading to the best backed-up value, assuming optimal play by MIN.

minimax(node, MAX):  return max over children of minimax(child, MIN)
minimax(node, MIN):  return min over children of minimax(child, MAX)

Alpha-beta pruning improves efficiency by keeping two bounds during the depth-first search:

  • α\alpha = best value MAX can guarantee so far,
  • β\beta = best value MIN can guarantee so far.

Whenever a node's value can no longer affect the final decision (i.e. αβ\alpha \ge \beta), the remaining children of that node are pruned (not explored). Because only branches that cannot change the backed-up value are cut, alpha-beta returns exactly the same minimax value/move as plain minimax. With good move ordering it reduces the effective time complexity from O(bd)O(b^d) to about O(bd/2)O(b^{d/2}), effectively doubling the searchable depth.

adversarial-searchminimax

Frequently asked questions

Where can I find the BE Computer Engineering (IOE, TU) Artificial Intelligence (IOE, CT 653) question paper 2079?
The full BE Computer Engineering (IOE, TU) Artificial Intelligence (IOE, CT 653) 2079 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
Does the Artificial Intelligence (IOE, CT 653) 2079 paper come with solutions?
Yes. Every question on this Artificial Intelligence (IOE, CT 653) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the BE Computer Engineering (IOE, TU) Artificial Intelligence (IOE, CT 653) 2079 paper?
The BE Computer Engineering (IOE, TU) Artificial Intelligence (IOE, CT 653) 2079 paper carries 80 full marks and is meant to be completed in 180 minutes, across 13 questions.
Is practising this Artificial Intelligence (IOE, CT 653) past paper free?
Yes — reading and attempting this Artificial Intelligence (IOE, CT 653) past paper on Kekkei is completely free.