Previous year question · 2023
Final Examination 2023 (11th Batch) — Full Solution
JnU B.Sc. in CSE — 4th Year 1st Semester, Final Examination 2023 (Session 2019-2020, 11th Batch, Solved)
Eight questions across intelligent agents, propositional & first-order logic, NLP, Hill Climbing, expert systems, knowledge representation, fuzzy logic, neural networks and robotics. Answer any five (full marks 70).
Question 1 — Introduction to AI & Intelligent Agents
(a) [4] What is intelligence? What are the approaches to understanding and designing AI systems? State them concisely.
(b) [3] To what extent are the following computer systems instances of artificial intelligence: supermarket bar code scanners; voice-activated telephone menus; spelling and grammar correction in MS Word; internet routing algorithms that respond dynamically to network state.
(c) [3] There are well-known classes of problems that are intractably difficult for computers, and other classes that are provably undecidable. Does this mean that AI is impossible?
(d) [4] Describe the PEAS components for the task environment of shopping for used AI books on the Internet.
Concept Needed
Intelligence, the four classical approaches to AI (acting humanly, thinking humanly, thinking rationally, acting rationally), PEAS (Performance, Environment, Actuators, Sensors), and bounded rationality.
(a) Intelligence & the Four Approaches to AI
Intelligence is the ability of a system to perceive its environment, learn from experience, reason about what to do, and take actions that maximise the chance of achieving a goal. Human intelligence combines perception, memory, language, planning, problem solving and learning.
The four classical approaches to designing AI systems (Russell & Norvig):
| Approach | Question it tries to answer | How it is achieved |
|---|---|---|
| Acting Humanly (Turing Test) | Can a machine behave indistinguishably from a human? | NLP + knowledge representation + automated reasoning + ML + vision + robotics. |
| Thinking Humanly (Cognitive modelling) | Can a machine think the way humans do? | Study the human mind (cognitive science, introspection, brain imaging) and write programs that mimic its processes. |
| Thinking Rationally (Laws of thought) | Can a machine reason logically? | Formal logic (Aristotelian syllogisms, propositional & first-order logic) to derive sound conclusions. |
| Acting Rationally (Rational Agent) | Can a machine act so as to achieve the best expected outcome? | Build agents that perceive, reason and act to maximise a performance measure. The most general approach; foundation of modern AI. |
(b) AI Assessment of the Four Systems
| System | AI assessment | Why |
|---|---|---|
| Supermarket bar code scanner | Not AI | A single, fixed algorithmic translation from a printed pattern to digits. No learning, no reasoning, no adaptation — a dumb transducer. |
| Voice-activated telephone menus | Borderline / mostly not AI | Modern menus do a small amount of speech recognition (statistical models), so AI is used for perception. But once recognised, the response is a rigid tree lookup, with no reasoning about user intent. |
| MS Word spelling & grammar correction | Yes, AI | Spell-checking uses dictionaries + edit-distance algorithms; grammar suggestions use statistical / neural language models. The system adapts to context and reasons (approximately) about likely intended text. |
| Dynamic internet routing algorithms | Yes, AI | Adaptive routing (BGP with policy learning, ML-augmented traffic engineering) perceives network state, decides on next hops, and adapts policy from observed outcomes — a rational agent in a stochastic, partially-observable environment. |
(c) Are Intractability and Undecidability Proof that AI is Impossible?
No. Three reasons:
- Intractable is not impossible. NP-hard means worst-case exponential time. In practice, NP-hard problems are routinely solved via heuristics and approximations that run in polynomial time. Humans also solve NP-hard problems (vision, planning) using heuristics; AI can do the same.
- Undecidable applies to specific problems, not to intelligence. The halting problem is undecidable for Turing machines, but a general intelligent agent does not need to solve it — only act usefully in the world. The vast majority of useful reasoning tasks are decidable.
- Bounded rationality. AI does not need to be perfectly optimal, only approximately rational under bounded resources (Herbert Simon). The principle of bounded rationality is precisely the design philosophy that lets AI side-step worst-case complexity results.
In short, difficulty in the worst case does not preclude good performance in the average case, and AI does not require omniscient optimality.
(d) PEAS for "Shopping for Used AI Books on the Internet"
| Component | Description |
|---|---|
| Performance | Price (lower is better, subject to quality), relevance to AI topic, seller reputation, delivery time, condition, total cost including shipping, success rate of finding the desired book. |
| Environment | Internet (search engines, online bookstores such as Amazon, AbeBooks, Facebook groups, university forums); fluctuating prices and availability; honest and fraudulent sellers; potentially misleading descriptions. The environment is partially observable (cannot see all sellers at once), stochastic, sequential, dynamic, continuous, and multi-agent. |
| Actuators | Web browser (HTTP requests), keyboard/mouse for filling forms, payment system, order placement, bookmarking, search query submission. |
| Sensors | Web pages (HTML, prices, reviews), search results, seller ratings, book metadata (title, author, ISBN, edition, condition), email notifications, recommendation lists. |
- Intelligence = ability to perceive, learn, reason and act rationally.
- Four AI approaches: acting humanly, thinking humanly, thinking rationally, acting rationally.
- AI examples: the bar-code scanner is not AI; the routing algorithm is; the telephone menu is borderline; MS Word is yes.
- AI is not doomed by intractability / undecidability — heuristics, average-case analysis and bounded rationality carry it through.
- PEAS = Performance, Environment, Actuators, Sensors as tabulated above.
Whenever a PEAS question appears, label each component in a one-line bullet and then tag the environment with the standard six-axis classification (observable / stochastic / sequential / dynamic / continuous / multi-agent). Examiners reward that classification explicitly.
Students often confuse acting rationally with acting optimally. Optimality requires perfect knowledge and unlimited compute; rational agents act so as to maximise expected performance given what they know and the resources they have.
Modern AI is dominated by the acting rationally paradigm. Other paradigms (Turing test, cognitive modelling) remain useful as research goals but not as engineering targets.
Question 2 — Propositional & First-Order Logic
(a) [3] Differentiate between "Propositional Logic" and "First Order Predicate Logic" with appropriate examples.
(b) [2] Add parenthesis in the following formula so that its structure can be fully understood without any convention.
(c) [3] With : "Annie has a stomachache", : "Annie misses the exam", : "Annie receives a passing grade", translate: (i) ; (ii) ; (iii) .
(d) [6] Transform into FOPL: (i) "Sally sells shells by the sea shore"; (ii) "Only one person is the president"; (iii) "Everyone with the same last name share an ancestor".
Concept Needed
Two-valued vs many-sorted logic, syntactic precedence, English paraphrasing of propositional formulas, FOPL translations with quantifiers.
(a) Propositional vs First-Order Predicate Logic
| Aspect | Propositional Logic (PL) | First-Order Predicate Logic (FOPL) |
|---|---|---|
| Basic element | Whole propositions that are either true or false. | Objects, predicates over objects, functions, variables and quantifiers. |
| Expressiveness | Limited — cannot talk about objects or relations inside the proposition. | Much richer — can state facts about individuals and relations between them. |
| Quantifiers | None. | Universal and existential . |
| Example | for "It is raining". | for "every human is mortal". |
| Decidability | Decidable (truth tables, SAT). | Only semi-decidable in the general case. |
(b) Parenthesising the Formula
The standard precedence (highest → lowest) is . Applying it and grouping left-to-right for same-precedence operators:
Step-by-step grouping:
- , bind tightest: and .
- binds next: .
- binds last: the biconditional is the antecedent, the consequent.
The inner sub-formula is a tautology (always true), so the biconditional reduces to and the whole formula simplifies to .
(c) English Translations
- : "If Annie misses the exam, then she does not receive a passing grade from the subject."
- : "Either if Annie has a stomachache then she does not receive a passing grade, or if she misses the exam then she does not receive a passing grade." Equivalently: "Annie does not receive a passing grade if she has a stomachache or if she misses the exam."
- : "Annie does not miss the exam if and only if she receives a passing grade from the subject." In words: she gets a pass exactly when she does not miss the exam.
(d) FOPL Translations
(d-i) "Sally sells shells by the sea shore."
Let = " sells " and = " is by ".
(d-ii) "Only one person is the president."
Let = " is the president", = " is a person". "Only one" = there exists a president and no two distinct persons are both presidents:
(d-iii) "Everyone with the same last name share an ancestor."
Let = " is a person", = " is 's last name", = " is an ancestor of ".
- PL = propositions + Boolean connectives; FOPL = predicates + quantifiers + functions.
- Parenthesised , which simplifies to .
- The three English paraphrases above.
- The three FOPL translations above.
"Only one" or "exactly one" decomposes into existence () and uniqueness (). Examiners look for both halves.
Conflating "If P then Q" (material implication) with "P only if Q". reads "if P then Q"; " only if " is the logically equivalent ... careful, that one actually flips — re-check the convention with your lecturer.
Operator precedence (high → low): . Knowing this by heart saves exam time.
Question 3 — NLP & Chomsky Hierarchy
(a) [4] Define "Natural Language Processing". Differentiate between syntactic analysis and semantic analysis with appropriate examples.
(b) [6] Describe different levels of Chomsky Hierarchy.
(c) [4] Using the given CFG, create two parse trees for the sentence "He drove down the street in the car".
Concept Needed
NLP pipeline, syntactic vs semantic analysis, the Chomsky hierarchy (regular, context-free, context-sensitive, unrestricted), and attachment ambiguity.
(a) NLP, Syntactic vs Semantic Analysis
Natural Language Processing (NLP) is the branch of AI concerned with the interaction between computers and human (natural) languages. It involves developing algorithms and models that enable machines to read, understand, generate and reason about natural-language text or speech.
| Aspect | Syntactic Analysis | Semantic Analysis |
|---|---|---|
| Goal | Determine the *structure* of a sentence (parse tree). | Determine the *meaning* of the sentence (relations, predicates, world knowledge). |
| Works on | Word categories (noun, verb, ...) and grammar rules. | Predicate-argument structure, word sense, entailments. |
| Question answered | Is this sentence grammatically valid? What is its structure? | What does the sentence *mean*? Is what is said true in the world? |
| Example output | for *The cat sat on the mat*. | — the cat is the agent, the mat is the location. |
| Failure example | *Mat the on sat cat the.* — syntactically invalid. | *Colorless green ideas sleep furiously.* — syntactically valid but semantically anomalous. |
A sentence can be syntactically perfect yet semantically nonsense — hence the two analyses are separate stages of the NLP pipeline.
(b) The Chomsky Hierarchy
| Level | Grammar | Language class | Recogniser |
|---|---|---|---|
| 3 (most restrictive) | Regular (right/left-linear) | Regular | Finite automaton |
| 2 | Context-free (CFG) | Context-free | Push-down automaton |
| 1 | Context-sensitive (CSG) | Context-sensitive | Linear-bounded automaton |
| 0 (most permissive) | Unrestricted (phrase-structure) | Recursively enumerable | Turing machine |
Type-3 — Regular grammars. Productions of the form (right-linear) or (left-linear). Cannot generate nested structures like matched parentheses. Recognised by a finite-state automaton with no memory. Example: is not regular.
Type-2 — Context-free grammars. Productions where is any string of terminals and non-terminals. CFGs capture nested structure (matched brackets, recursive noun phrases). Recognised by a push-down automaton. Used for most programming languages and natural-language phrase structure.
Type-1 — Context-sensitive grammars. Productions with : can be rewritten only in the context . Captures cross-serial dependencies such as Swiss-German nested agreement. Recognised by a linear-bounded automaton. Example: is context-sensitive but not context-free.
Type-0 — Unrestricted grammars. Productions with no restriction except that is non-empty. Generate exactly the recursively enumerable languages, i.e. those decidable by some Turing machine. Includes every other level and many more.
Nesting relation:
(c) Two Parse Trees — Attachment Ambiguity
The sentence "He drove down the street in the car" is ambiguous because the PP "in the car" can attach either to the verb drove or to the NP the street.
Grammar (given): ; ; ; ; ; ; ; ; ; .
Parse 1 — PP attaches to VP. He drove [down the street] [in the car]; the car is the vehicle he drove.
Parse 2 — PP attaches to the inner NP. He drove down [the street in the car]; the car physically is on the street (a noun-modifier PP).
(The simplified tree above shows the second PP nested inside the inner , illustrating noun attachment. Different grammars render it differently — the structural fact is just that some subtree hangs off the noun phrase rather than the verb.)
| Parse | Where 'in the car' attaches | Reading |
|---|---|---|
| 1 | Verb (*drove*) | He used the car to drive down the street (vehicle reading). |
| 2 | Noun (*street*) | The car is somehow physically located in/on the street (modifier reading). |
- NLP = reading, understanding, generating, reasoning about natural language.
- Syntactic analysis builds structure; semantic analysis extracts meaning.
- Chomsky: regular ⊊ context-free ⊊ context-sensitive ⊊ recursively enumerable.
- Two parses differ in whether in the car attaches to the verb (vehicle reading) or to the noun street (modifier reading).
When the question asks for parse trees, draw them top-down: each non-terminal is a node, each production is a branching. The two ambiguities here differ only in where the second PP attaches.
Students often forget that Chomsky's "Colorless green ideas sleep furiously" is syntactically valid but semantically anomalous — the two analyses must be kept strictly separate.
Context-free grammars (CFG) are sufficient for most programming languages and for natural-language syntax; you almost never need the more powerful context-sensitive or unrestricted levels in practice.
Question 4 — Search, Hill Climbing & Backward Chaining
(a) [2] What information does the "Search Space" contain?
(b) [4] Explain different properties of "Hill Climbing" search algorithm.
(c) [4] Using state-space diagram describe different regions of "Hill Climbing" search algorithm.
(d) [4] Rules: R1 IF priority THEN discount 20 %; R2 IF purchase > 200. Goal: will the customer get 20 % discount? Use Backward Chaining.
Concept Needed
State-space search, hill climbing, local maxima / plateaus / ridges, and backward-chaining inference.
(a) What the Search Space Contains
The search space (state space) contains the five items that completely describe any search problem:
- Initial state — where the agent starts.
- Set of states — every configuration the world can be in.
- Successor function — legal moves and what state each move produces.
- Goal test — a predicate that tells whether a state is a goal (or how far it is from one).
- Path cost — the numeric cost of applying action in state to reach .
(b) Properties of Hill Climbing
| Property | What it means |
|---|---|
| Greedy | Always moves to the neighbour that looks best right now (heuristic ); never backtracks. |
| No path memory | Only the current state and its heuristic value are kept; the path taken is not remembered. |
| Incomplete | Can get stuck in local maxima, plateaus and ridges and never reach the global optimum / goal. |
| Not optimal | The solution found is not guaranteed to be globally optimal. |
| Time complexity | where is branching factor and is depth of the path actually taken. |
| Space complexity | — only the current state and a few neighbours are stored. |
| Variants | Steepest-ascent, stochastic, first-choice, random-restart. |
(c) Regions of the State-Space Landscape
- Local maximum — a state better than every neighbour but not the global optimum. Once reached, the algorithm halts because no neighbour is an improvement.
- Global maximum — the best state overall; reachable only if the search happens to start in its basin of attraction.
- Plateau — a flat region where neighbours have the same heuristic value. The algorithm cannot tell which direction to move; a random walk or bounded sideway moves are needed.
- Shoulder / Ridge — a plateau that is not perfectly flat but has a slow slope; the algorithm progresses but more slowly.
Remedies: random restarts (against local maxima), bounded sideway moves (against plateaus), two-step lookahead (against ridges).
(d) Backward Chaining — Discount Example
Backward chaining starts from the goal and reasons backward to the known fact(s).
Rules
- R1: IF THEN
- R2: IF purchase > \200priority$
- R3: IF THEN
Fact: purchase > \200discount(20%)$.
| Step | Sub-goal | Justification |
|---|---|---|
| 1 | Try R1; need . | |
| 2 | Try R2; need purchase > \200$. | |
| 3 | purchase > \200$ | Matches the given fact — success. |
| 4 | Satisfied by R2. | |
| 5 | Satisfied by R1 — goal reached. |
Conclusion: Yes, the customer gets a 20 % discount.
- Search space = initial state + state set + successor function + goal test + path cost.
- Hill climbing is greedy, memory-less (space ), incomplete and non-optimal, but very fast ().
- Four landscape problems: local maximum, global maximum, plateau, shoulder / ridge; remedies are random restarts and sideway moves.
- Backward chaining proves purchase > \200 \Rightarrow priority \Rightarrow discount$.
Always draw the sub-goal stack or AND–OR tree step by step in backward chaining. Examiners want (a) the sub-goal, (b) the rule tried, (c) the new sub-goals it creates and (d) when you backtrack.
Forgetting that hill climbing is incomplete: it can get stuck even when a solution exists. Pair it with random restarts in practice.
Hill climbing is the prototypical local search — perfect when you want speed and the landscape is "nice"; disastrous when the landscape has many local maxima.
Question 5 — Knowledge Representation, Normal Forms & Reasoning
(a) [3] Express "Car, bicycle and Truck are Vehicles. Toyota Corolla is a model of the Car. Both Toyota Corolla and Truck has wheels. Truck can transport a Bicycle." as an associative network.
(b) [2] With an example, show how property can be inheritance in an associative network.
(c) [3] Convert to DNF: (no truth table).
(d) [3] Convert to CNF: .
(e) [3] Name the reasoning type of: (i) "If you are carrying a container that's open on one side, you should carry it with open end up." (ii) "I heard scratching sounds and saw droppings — must be a mice infestation." (iii) "Water on a lit stove boils; turn off the flame and it cools."
Concept Needed
Semantic networks, property inheritance, DNF/CNF conversion, and the three forms of reasoning.
(a) Associative Network
Nodes are concepts / instances; arcs are labelled relations.
Vehicle (concept)
Top-level class.
Car, Bicycle, Truck
Each linked to Vehicle by an is-a arc.
Toyota Corolla
Specific instance linked to Car by an is-a arc.
Wheels
Linked to Toyota Corolla and Truck by has-part arcs.
Truck → Bicycle
Truck can-transport Bicycle.
In tabular form (only labels matter; picture above):
| Source | Arc | Target |
|---|---|---|
| Car | is-a | Vehicle |
| Bicycle | is-a | Vehicle |
| Truck | is-a | Vehicle |
| Toyota Corolla | is-a | Car |
| Toyota Corolla | has-part | wheels |
| Truck | has-part | wheels |
| Truck | can-transport | Bicycle |
(b) Property Inheritance
Suppose we add the property Vehicle has-part wheels. Through the is-a chain, Truck inherits has-part wheels from Vehicle even though we never explicitly attached it to Truck.
The same inheritance gives the property to Car and Bicycle for free. This is the attribute inheritance rule of semantic networks: an instance inherits every attribute of every class on its is-a chain unless overridden.
(c) DNF Conversion
Step 1. Eliminate : . Formula becomes .
Step 2. Push inside using De Morgan: . Formula becomes .
Step 3. Distribute over : is already a disjunction of conjunctions.
(d) CNF Conversion
Step 1. Eliminate and :
- .
- Outer : .
Formula becomes .
Step 2. Push inside: .
Formula becomes .
Step 3. Distribute over :
Step 4. Distribute the left conjunct:
(since is a tautology).
Step 5. Combine.
Both disjunctions are CNF clauses; the formula is in CNF.
(e) Reasoning Types
| Statement | Reasoning type |
|---|---|
| Open container rule | Deduction — general rule applied to a specific case. |
| Mice from observations | Abduction — inference to the best explanation. |
| Water boils / cools | Induction — many cases generalised to a cause–effect law. |
- The associative network above with
is-a,has-part,can-transportarcs. - Inheritance propagates properties along
is-achains. - DNF: .
- CNF: .
- Deduction / Abduction / Induction are the three reasoning types of statements (i), (ii), (iii) respectively.
Use De Morgan as the engine: push in, eliminate double negations, eliminate and first, then distribute. Examiners reward the step-by-step derivation, not just the final clause.
"Only one" and "at most one" are different! "Only one" requires existence + uniqueness; "at most one" requires only uniqueness.
Deduction = truth-preserving (general → specific). Abduction = best-explanation (effect → cause). Induction = generalisation (specific cases → law). Each has different soundness properties.
Question 6 — Fuzzy Logic and Fuzzy Set Operations
(a) [3] Differentiate between "Boolean Logic" and "Fuzzy Logic".
(b) [5] Briefly explain the architecture of a Fuzzy Logic System.
(c) [2] With , , evaluate (i) and (ii) .
(d) [4] With , find the fuzzy sets for: (i) "ANYTHING BUT (A)", (ii) "SOMEWHAT OF (A)", (iii) "VERY OF (A)", (iv) "EXTREMELY OF (A)".
Concept Needed
Two-valued vs many-valued logic, FIS architecture (fuzzifier → knowledge base → inference engine → defuzzifier), Zadeh's connectives, and the four standard linguistic hedges.
(a) Boolean vs Fuzzy Logic
| Aspect | Boolean Logic | Fuzzy Logic |
|---|---|---|
| Truth values | Two: {0, 1} (false / true). | Many-valued: any real in . |
| Set membership | Either in (1) or out (0). | Has a *degree* . |
| Operators | AND, OR, NOT are Boolean. | AND = min / product; OR = max / psum; NOT = . |
| Reasoning style | Crisp rules, sharp boundaries. | Approximate, linguistic rules, smooth boundaries. |
| Founders | Boole, Frege. | Lotfi Zadeh (1965). |
(b) Architecture of a Fuzzy Logic System
1. Fuzzification
Crisp input → membership in each input fuzzy set (e.g. temperature 0.7 in 'high').
2. Knowledge Base
Database (membership functions) + Rule Base (IF-THEN linguistic rules).
3. Inference Engine
Combine fuzzified inputs with rules (Mamdani: min-max; Sugeno: weighted average).
4. Defuzzification
Aggregate fuzzy output → single crisp value via centroid, mean of maxima, etc.
(c) Fuzzy Set Operations
Given
Step 1 — Union. Point-wise maximum:
Step 2 — Complement . Point-wise :
Step 3 — and :
Step 4 — Union of complements:
Observation. . This is the Zadeh De Morgan identity:
(d) Linguistic Hedges
Given . The standard Zadeh hedges apply a power to each membership:
| Hedge | Operation |
|---|---|
| ANYTHING BUT | = |
| SOMEWHAT OF | = |
| VERY OF | = |
| EXTREMELY OF | = |
(i) ANYTHING BUT = :
(ii) SOMEWHAT OF = (square roots):
(iii) VERY OF = :
(iv) EXTREMELY OF = :
- Boolean logic has two truth values; fuzzy logic has the whole unit interval.
- A fuzzy logic system = Fuzzifier → Knowledge Base (rules + MFs) → Inference → Defuzzifier.
- , .
- Hedges: ANYTHING BUT = , SOMEWHAT = , VERY = , EXTREMELY = .
Zadeh's four hedge exponents ( and full complement) are universally accepted in exam settings — write the rule before computing each value so you don't lose marks.
Using min for "AND" in fuzzy logic when the question expects product. Different reference texts use different T-norms: stick with / unless the paper specifies otherwise.
Fuzzy De Morgan differs from Boolean: (Zadeh), not .
Question 7 — Neural Networks & Machine Learning Overview
(a) [4] What is a neural network? Design a fully-connected feedforward neural network for 4 input neurons, one hidden layer with 3 neurons and one output neuron, with activation.
(b) [6] Forward pass the 3-4-2 network with the given weights, biases and inputs using sigmoid.
(c) [4] Brief overview of various machine learning techniques.
Concept Needed
Feedforward neural networks, weighted-sum + activation forward pass, and the three-way classification of ML techniques.
(a) Neural Network Definition and 4-3-1 Architecture
A neural network is a computational model loosely inspired by biological neurons. It consists of layers of interconnected units (neurons); each connection carries a weight, each neuron applies an activation function to the weighted sum of its inputs (plus a bias), and the network learns by adjusting the weights (typically via gradient descent on a loss function).
4-3-1 architecture — four inputs, one hidden layer of three neurons, one output neuron.
The hidden layer activations and the output are computed as
Total trainable parameters: (input→hidden weights) + (hidden biases) + (hidden→output weights) + (output bias) = parameters.
(b) Forward Pass through the 3-4-2 Network
Given:
- , .
- , .
- .
Step 1 — hidden pre-activations :
| Computation | ||
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
Step 2 — hidden activations :
| 1 | |
| 2 | |
| 3 | |
| 4 |
So .
Step 3 — output pre-activations :
Step 4 — output activations :
(c) Overview of Machine Learning Techniques
| Family | Examples | Use case |
|---|---|---|
| Supervised | Decision trees, k-NN, naive Bayes, logistic regression, SVM, neural networks (regression: linear / polynomial, SVR). | Mapping from labelled examples. |
| Unsupervised | k-means, hierarchical clustering, DBSCAN; PCA, t-SNE, UMAP, autoencoders. | Discovering structure in unlabelled data. |
| Reinforcement | Q-learning, SARSA, DQN, REINFORCE, PPO, A3C. | Policy learning via reward signals from an environment. |
| Semi- / Self-supervised | BERT, SimCLR, GPT-style pre-training. | Limited labels with large unlabelled corpora. |
| Ensemble | Bagging (Random Forests), boosting (AdaBoost, XGBoost, LightGBM), stacking. | Combine weak learners for stronger predictions. |
| Deep learning | CNNs (images), RNNs/LSTMs/Transformers (sequences), GANs, VAEs, diffusion models. | High-capacity neural models for high-dimensional data. |
- Neural network = layered units with weighted connections + activation function, trained by gradient descent.
- 4-3-1 architecture has parameters; computation uses weighted sums + activation.
- Forward pass for the 3-4-2 network yields output .
- ML techniques span supervised, unsupervised, reinforcement, semi/self-supervised, ensemble and deep learning families.
Show every weight combination and intermediate value in numerical forward-pass problems. Examiners give partial credit per step.
Mixing up activation functions (sigmoid vs tanh vs ReLU) — they have different formulas and different ranges. Re-read the question.
"Activation function" is what gives neural networks their non-linear modelling power; without it, the whole stack collapses to a linear model.
Question 8 — Robotics
(a) [4] Define a "Robot". What are the basic characteristics of a robot?
(b) [3] Write down the laws of robotics published in Runaround by Isaac Asimov.
(c) [7] Briefly explain the basic components of a robot.
Concept Needed
Robot definition, Asimov's three laws, robot subsystem decomposition.
(a) Definition and Characteristics of a Robot
A robot is a programmable, multi-purpose, electro-mechanical device that can perform tasks autonomously or semi-autonomously by sensing its environment, processing information and manipulating the physical world through actuators. The word comes from Karel Čapek's 1921 play R.U.R. (Rossum's Universal Robots), in which "robota" means "forced labour" in Czech.
| Characteristic | Meaning |
|---|---|
| Sensing | Ability to perceive the environment via cameras, LIDAR, microphones, force sensors, etc. |
| Programmability / Intelligence | Can be programmed for a task and exhibit some decision-making, planning or learning. |
| Actuation | Acts on the environment through motors, grippers, wheels or other effectors. |
| Autonomy | Operates without continuous human guidance (the degree varies from tele-op to full autonomy). |
| Mechanical structure | Has a physical body whose kinematics and dynamics constrain what it can do. |
| Reactivity | Responds in time to changes in the environment (closed-loop behaviour). |
(b) Asimov's Three Laws of Robotics
First formulated in Asimov's 1942 short story Runaround; later collected in I, Robot (1950).
-
First Law. A robot may not injure a human being or, through inaction, allow a human being to come to harm.
-
Second Law. A robot must obey the orders given to it by human beings, except where such orders would conflict with the First Law.
-
Third Law. A robot must protect its own existence, as long as such protection does not conflict with the First or Second Law.
(Later, the Zeroth Law was added: "A robot may not harm humanity, or through inaction allow humanity to come to harm.")
These are normative statements inside a fictional work, not enforceable code. Modern AI-safety researchers treat them as inspiration rather than a working specification — the laws leave "harm" undefined and assume perfect world knowledge.
(c) Basic Components of a Robot
Power Supply
Batteries (Li-ion, lead-acid), solar, or tethered — determines runtime, payload and mobility.
Sensors
Proprioceptive (encoders, IMU) + exteroceptive (camera, LIDAR, ultrasonic, force, GPS).
Controllers
Microcontrollers, CPUs, AI accelerators. Run RTOS software that fuses data, plans and computes actuator commands.
Actuators
DC / stepper / servo / BLDC motors; hydraulics; pneumatics — convert electrical energy into motion.
Mechanical Structure
Links, joints, wheels, tracks, legs, grippers — defines the workspace, payload and dexterity.
Communication Interfaces
Wired (Ethernet, USB, CAN) and wireless (Wi-Fi, Bluetooth, 5G) for tele-operation, fleet management, updates and sensor streaming.
End-effectors / tools (gripper, welding torch, drill, paint nozzle, surgical instrument, etc.) are sometimes listed separately or as part of the mechanical structure; they are task-specific and easily swapped.
- Robot = programmable, sensing, actuating electro-mechanical device.
- Characteristics: sensing, programmability, actuation, autonomy, mechanical structure, reactivity.
- Three Asimov laws as quoted above (First / Second / Third; with the optional Zeroth added later).
- Components: power, sensors, controllers, actuators, mechanical structure, communication (plus end-effectors).
The six canonical components — power, sensors, controllers, actuators, mechanical structure, communication — are worth seven marks. Add a representative technology in each box (encoder, STM32, BLDC, Li-ion, CAN) for the seventh mark.
Conflating an actuator with a sensor — actuators act, sensors measure. A motor is an actuator; an encoder is a sensor.
For "what is a robot?" answers include the Czech origin of the word (robota = forced labour, Čapek 1921) — a one-line bonus point that examiners love.