AI-701 Soft Computing

Soft Computing (AI-701) Important Questions

RGPV · B.Tech · CSE-AI · Semester 7 · Current scheme · 9 papers (2014 to 2020)

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Soft Computing important questions

Download Paperwala Imp Question & Answer (PDF)

Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.

Soft Computing important questions with answers

Each answer starts with the short answer. Then come the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.

Q1. Knowledge representation and reasoning: predicate logic, resolution, forward and backward, monotonic and non monotonic

Asked 8 times in 2014, 2015, 2016, 2017, 2018, 2019, 2020 · Unit 1

From the papers

  • “Differentiate the following: i) Forward Reasoning Vs Backward Reasoning ii) Monotonic Reasoning Vs Non Monotonic Reasoning” (Jun 2016, Nov 2019)
  • “Consider the following sentences: a) Marcus was a man. b) Marcus was a Roman. c) All men are people. d) Caesar was a ruler. e) All Romans were either loyal to Caesar or hated him (or both). f) Everyone is loyal to someone. g) People only try to assassinate rulers they are not loyal to. h) Marcus tried to assassinate Caesar. I. Translate above sentences into predicate logic. II. Convert them into clausal form. III. Prove using resolution that Marcus hated Caesar.” (Jun 2020)
  • “Describe the various issues in knowledge representation with suitable example.” (May 2018)
  • “What are the properties of good knowledge representation technique? Explain each of them in brief.” (Jun 2017)

The short answer

Knowledge representation stores facts in a form a program can reason with, such as predicate logic. Resolution proves a statement by adding its negation and deriving a contradiction. Forward reasoning goes from facts to goals, while backward reasoning goes from the goal to the facts.

Write these points

The Marcus problem in predicate logic

  1. man(Marcus).
  2. Roman(Marcus).
  3. ∀x man(x) → person(x).
  4. ruler(Caesar).
  5. ∀x Roman(x) → loyalto(x, Caesar) ∨ hate(x, Caesar).
  6. ∀x ∃y loyalto(x, y).
  7. ∀x ∀y person(x) ∧ ruler(y) ∧ tryassassinate(x, y) → ¬loyalto(x, y).
  8. tryassassinate(Marcus, Caesar).

Clausal form (remove → and ∀, Skolemise ∃)

  • 3: ¬man(x1) ∨ person(x1).
  • 5: ¬Roman(x2) ∨ loyalto(x2, Caesar) ∨ hate(x2, Caesar).
  • 6: loyalto(x3, f(x3)).
  • 7: ¬person(x4) ∨ ¬ruler(y1) ∨ ¬tryassassinate(x4, y1) ∨ ¬loyalto(x4, y1).

Forward and backward, monotonic and non-monotonic

PointForwardBackward
Starts fromKnown factsThe goal
Also calledData drivenGoal driven
ExampleMedical alarm systemProlog, MYCIN
  • Monotonic: adding a fact never removes a conclusion (classical logic).
  • Non-monotonic: a new fact can cancel a conclusion. "Birds fly" is dropped when we learn Tweety is a penguin.

Proof that Marcus hated Caesar.

Add the negated goal: ¬hate(Marcus, Caesar).

Resolve with 5 (x2 = Marcus): ¬Roman(Marcus) ∨ loyalto(Marcus, Caesar). With 2: loyalto(Marcus, Caesar).

Resolve with 7 (x4 = Marcus, y1 = Caesar): ¬person(Marcus) ∨ ¬ruler(Caesar) ∨ ¬tryassassinate(Marcus, Caesar).

With 4 and 8: ¬person(Marcus). With 3: ¬man(Marcus). With 1: the empty clause. So hate(Marcus, Caesar) is proved.

Real-life example

A detective lists every fact about a case, assumes the suspect is innocent and keeps checking facts until the assumption breaks. That is proof by resolution. A doctor who starts from symptoms works forward. A doctor who suspects malaria and orders a test to confirm it works backward.

Figure: proof by resolution
Figure: proof by resolution

Same or opposite: forward and backward reasoning

PointForwardBackwardSame or opposite
DirectionFacts to goalGoal to factsOpposite
Uses rulesYesYesSame
Good whenFew facts, many goalsOne clear goalOpposite
ExampleMonitoring systemsDiagnosisOpposite

Exam tip. Number every sentence, write it in logic, convert to clauses and show each resolution step. Examiners give marks for every correct clause.

Back to the topic list

Q2. Error back propagation: MLP, activation functions, derivation, momentum, characteristics

Asked 7 times in 2014, 2015, 2016, 2017, 2018, 2019 · Unit 3

From the papers

  • “Give the mathematical derivation of error back propagation algorithm when activation function is sigmoidal. Also explain the importance of momentum in EBPA.” (Jun 2016, Nov 2019)
  • “What is Multi-layer perceptron? Explain different types of activation functions.” (Dec 2016, Nov 2019)
  • “Define activation function. Explain the purpose of activation function in multilayer neural networks. Give any two activation functions.” (May 2018)
  • “Write the characteristics and applications of Error Back Propagation Algorithm.” (May 2018)

The short answer

Error back propagation (EBPA) trains a multi-layer perceptron. It passes the input forward to get an output and measures the error. Then it sends the error backward and changes every weight a little to reduce the error (gradient descent).

Write these points

Activation functions

FunctionFormulaRange
Step1 if net > 0 else 00 or 1
Sigmoid1 ÷ (1 + e^−net)0 to 1
Tanh(e^net − e^−net) ÷ (e^net + e^−net)−1 to 1
ReLUmax(0, net)0 to ∞

A sigmoid is used instead of a step because it is smooth. Its derivative f′ = f(1 − f) exists everywhere, so gradient descent can work.

Derivation with a sigmoid

  1. Error E = ½ Σ (t_k − o_k)².
  2. Output unit: δ_k = (t_k − o_k) o_k (1 − o_k).
  3. Hidden unit: δ_j = o_j (1 − o_j) Σ_k δ_k w_jk.
  4. Weight change: Δw_ij = η δ_j x_i.
  5. With momentum: Δw(t) = η δ x + α Δw(t − 1), with α about 0.9.

Momentum, characteristics and limits

  • Momentum speeds learning on flat parts and damps zig-zags.
  • Learns any smooth mapping with enough hidden units.
  • Limits: slow, can stop in local minima, needs many samples, learning rate must be tuned.
  • Applications: handwriting and speech recognition, forecasting, medical diagnosis.

One weight update.

Input x = 1, weight w = 0.5, target t = 1, learning rate η = 0.5.

Forward: net = 0.5, o = 1 ÷ (1 + e^−0.5) = 0.6225.

Error term δ = (1 − 0.6225) × 0.6225 × 0.3775 = 0.0887.

Δw = 0.5 × 0.0887 × 1 = 0.0444. New w = 0.5444, so the next output moves closer to 1.

Real-life example

A cricket coach watches a bowler's wide ball and corrects the run-up, then the wrist, then the release, each by a small amount. The correction flows back from the result to every step that caused it. Back propagation corrects each weight in the same way.

Figure: a multi-layer perceptron with forward and backward passes
Figure: a multi-layer perceptron with forward and backward passes

Same or opposite: single layer perceptron and MLP with back propagation

PointSingle layerMLP with EBPASame or opposite
Hidden layersNoneOne or moreOpposite
Solves XORNoYesOpposite
Learns from labelled examplesYesYesSame
ActivationStepSigmoid or similarOpposite

Exam tip. Draw the three layer network. Write the four equations of the derivation in order, then one line on momentum. A small numeric update earns extra marks.

Back to the topic list

Q3. Counter propagation network: architecture, functioning, characteristics

Asked 7 times in 2014, 2015, 2016, 2018, 2020 · Unit 3

From the papers

  • “What are the difference in learning approach of counter propagations network to feed forward network.” (Dec 2016, Jun 2020)
  • “Explain the working of counter propagation network by giving its architecture.” (May 2018, Dec 2020)
  • “Explain counter propagation network in terms of the following: i) Architecture ii) Functioning iii) Characteristics” (Jun 2016)
  • “Explain the architecture of counter propagations algorithm.” (Dec 2016)

The short answer

A counter propagation network (CPN) joins two layers trained in different ways. The Kohonen layer groups inputs by competition (unsupervised). The Grossberg layer maps the winning group to the desired output (supervised). It learns much faster than back propagation.

Write these points

Architecture

  1. Input layer: passes the input vector.
  2. Kohonen (competitive) layer: each unit has a weight vector; the closest one wins.
  3. Grossberg (outstar) layer: gives the output tied to the winner.

Functioning

  • Find the winner: the Kohonen unit with the smallest distance ‖x − w‖.
  • Update only the winner: w = w + α (x − w).
  • Then update the Grossberg weights of the winner: v = v + β (t − v).
  • In use, the winner's Grossberg weights are the output.

Learning compared with a feed forward (EBPA) network

PointCPNFeed forward with EBPA
TrainingCompetitive, then supervisedFully supervised
Weights changedOnly the winner'sAll weights
SpeedFastSlow
AccuracyLike a lookup tableSmooth mapping

Characteristics and uses

  • Works as a look-up table that generalises.
  • Full CPN can map both ways (x to y and y to x).
  • Used for data compression, pattern mapping, image classification.

Choosing and updating the winner.

Input x = (0.8, 0.2). Kohonen weights w1 = (0.9, 0.1), w2 = (0.2, 0.7).

Distance² to w1 = 0.01 + 0.01 = 0.02. To w2 = 0.36 + 0.25 = 0.61. So unit 1 wins.

With α = 0.5: w1 = (0.9, 0.1) + 0.5 × (−0.1, 0.1) = (0.85, 0.15).

Only w1 moves. Unit 2 is not changed.

Real-life example

In a school, students first sort themselves into houses by who is most like whom (Kohonen layer). Then each house captain is told what uniform colour the house wears (Grossberg layer). A new student finds the nearest house and gets its colour.

Figure: counter propagation network
Figure: counter propagation network

Same or opposite: Kohonen layer and Grossberg layer

PointKohonenGrossbergSame or opposite
LearningUnsupervisedSupervisedOpposite
RuleWinner takes allOutstarOpposite
Part of CPNYesYesSame
OutputIndex of winnerFinal outputOpposite

Exam tip. Draw the three layers with the winner marked. Write the two update rules. Add the table if the question compares CPN with feed forward learning.

Back to the topic list

Q4. Associative memory, BAM, Hopfield and recurrent networks

Asked 7 times in 2014, 2015, 2016, 2017, 2019, 2020 · Unit 3

From the papers

  • “What do you understand by Associative Memory?” (Jun 2015, Dec 2016, Jun 2016)
  • “Consider the two pairs of patterns with bipolar symbols. Calculate the weights for 2 x 2 Bidirectional Associative Memory (BAM).” (Jun 2017, Nov 2019)
  • “Differentiate hopfield with Boltzmann machine.” (Jun 2016)
  • “What is recurrent network? Explain stability constraints.” (Jun 2016)

The short answer

An associative memory recalls a stored pattern from a partial or noisy cue, by content and not by address. A BAM (bidirectional associative memory) stores pairs (A, B) and recalls in both directions. A Hopfield network is a single layer recurrent network that settles into a stored pattern.

Write these points

Types

  • Auto-associative (HAM, Hopfield): recalls the same pattern from a noisy copy.
  • Hetero-associative (BAM): recalls B from A and A from B.

Hopfield and recurrent network

  • Every unit feeds back to every other. Weights are symmetric (w_ij = w_ji) and w_ii = 0.
  • Stability constraint: with symmetric weights an energy function falls at each update, so the net settles.
  • Limits: capacity about 0.15 N patterns for N units; can fall into false (spurious) states.
  • Uses: noise removal, simple optimisation such as small TSP.

Hopfield and Boltzmann machine

PointHopfieldBoltzmann machine
UnitsDeterministicStochastic (probability)
Hidden unitsNoYes
Escapes local minimaNoYes, by temperature

BAM weights for the June 2017 pairs.

A1 = (1, 1, −1), B1 = (−1, 1, −1, 1). A2 = (1, −1, 1), B2 = (1, −1, 1, −1).

A1ᵀB1 rows: (−1 1 −1 1), (−1 1 −1 1), (1 −1 1 −1). A2ᵀB2 rows: (1 −1 1 −1), (−1 1 −1 1), (1 −1 1 −1).

W = sum = rows (0 0 0 0), (−2 2 −2 2), (2 −2 2 −2).

Check: A1 W = (−4, 4, −4, 4), sign = B1. A2 W = (4, −4, 4, −4), sign = B2. Both pairs are recalled.

Real-life example

Hearing the first two lines of an old Bollywood song brings back the whole song. That is auto-associative memory. Seeing a friend's face and remembering their phone number is hetero-associative, like BAM.

Figure: BAM with the June 2017 weight matrix
Figure: BAM with the June 2017 weight matrix

Same or opposite: auto-associative and hetero-associative memory

PointAuto (Hopfield)Hetero (BAM)Same or opposite
RecallSame patternPaired patternOpposite
LayersOneTwoOpposite
Stores patterns in weightsYesYesSame
Uses Hebb's ruleYesYesSame

Exam tip. Define associative memory and give the two types. For BAM, show W = Σ AᵀB and check one recall. For Hopfield, state the symmetric weight condition.

Back to the topic list

Q5. Genetic algorithm operators: selection, crossover and mutation

Asked 7 times in 2014, 2016, 2017, 2018, 2020 · Unit 5

From the papers

  • “Explain different types of mutation function in Genetic Algorithm?” (Jun 2017, Dec 2020)
  • “What is cross over? Explain various types of cross over operators used in GA.” (Jun 2016)
  • “Under the reproduction phase of genetic algorithm what are the various selection techniques and which is the most effective of the rest.” (Dec 2016)
  • “What is Reproduction? Give various methods of selecting chromosomes for parents to cross over.” (Jun 2014)

The short answer

A genetic algorithm uses three operators. Selection picks fitter strings as parents. Crossover mixes two parents to make children. Mutation flips a few bits to keep variety.

Write these points

Selection methods

MethodHow it works
Roulette wheelChance in proportion to fitness
TournamentPick k strings at random; the best one wins
RankChance by rank, not by raw fitness
ElitismCopy the best few unchanged

Tournament selection is often the most effective: it is simple, fast and keeps pressure even when fitness values are close.

Crossover types

  • Single point: swap tails after one cut.
  • Two point: swap the middle part.
  • Uniform: each bit from either parent by a coin toss.
  • Order and PMX crossover for permutations such as TSP routes.

Mutation types

  • Bit flip (binary strings).
  • Swap and inversion (permutations).
  • Random resetting or Gaussian (real numbers).
  • Usual rate: 0.001 to 0.05 per bit.

Roulette and tournament on four strings.

Fitness of 13, 5, 10, 3 is 2.44, 3.44, 3.75, 2.44. Total = 12.06.

Chances: 0.20, 0.29, 0.31, 0.20. Cumulative: 0.20, 0.49, 0.80, 1.00.

A random number 0.55 falls in 0.49 to 0.80, so string 10 is chosen.

Tournament of two: 13 and 5 are picked; 5 wins because 3.44 > 2.44.

Real-life example

Choosing a college cricket team is like selection: better players are more likely to be picked. Two good players training together and sharing skills is crossover. One player trying a brand new shot is mutation. It may fail, but sometimes it wins the match.

Figure: single point crossover and bit flip mutation
Figure: single point crossover and bit flip mutation

Same or opposite: crossover and mutation

PointCrossoverMutationSame or opposite
Parents neededTwoOneOpposite
RateHigh, about 0.6 to 0.9Low, about 0.01Opposite
Makes new stringsYesYesSame
Main roleExploit good partsExplore new partsOpposite

Exam tip. Give a table for each operator, then draw single point crossover with real bits. Name the best selection method and give one reason.

Back to the topic list

Q6. Working of a genetic algorithm: steps, fitness function, generation cycle, worked maximisation

Asked 7 times in 2014, 2015, 2016, 2017, 2018, 2020 · Unit 5

From the papers

  • “Let a function f(x) = x − x²/16 be defined on the interval [0, 31]. Apply Genetic Algorithm for determining the maximum of the given function (Assume suitable missing data).” (Jun 2017, Dec 2020)
  • “Explain in detail the generation cycle of genetic algorithm.” (Dec 2016, Dec 2020)
  • “Explain the steps of Genetic Algorithm (GA).” (May 2018)
  • “Mention the role of fitness function in GA and what are the requirements of GA?” (Jun 2017)

The short answer

A genetic algorithm (GA) is a search method based on Darwin's idea of survival of the fittest. It keeps a population of coded solutions and improves it generation by generation through selection, crossover and mutation. The fitness function scores how good each solution is.

Write these points

Steps

  1. Encode a solution as a string (binary for x in 0 to 31: 5 bits).
  2. Create a random initial population.
  3. Evaluate fitness of each string.
  4. Select parents.
  5. Apply crossover and mutation.
  6. Form the new generation.
  7. Repeat until the best fitness stops improving.

Role of the fitness function

  • It is the only link between the GA and the problem.
  • It must give a higher value for a better solution.
  • It must be quick to compute, because it runs thousands of times.

Requirements of a problem for GA

  • Solutions can be coded as strings.
  • A fitness value can be computed for any string.

Maximise f(x) = x − x²/16 on [0, 31] (December 2020 and June 2017).

Population: 13 (01101), 5 (00101), 10 (01010), 3 (00011). f = 2.44, 3.44, 3.75, 2.44. Average = 3.02.

Selected pairs: (10, 5) cut after bit 3 gives 9 (01001) and 6 (00110). (10, 13) cut after bit 4 gives 11 (01011) and 12 (01100).

New f = 3.94, 3.75, 3.44, 3.00. Average rises to 3.53.

Mutating the last bit of 9 gives 8 (01000), f = 8 − 4 = 4. This is the true maximum, since f′ = 1 − x/8 = 0 at x = 8.

Real-life example

A mango farmer plants seeds from his sweetest trees each year and sometimes grafts two good varieties together. Over many seasons the orchard gets sweeter. A genetic algorithm improves solutions the same way.

Figure: the generation cycle of a genetic algorithm
Figure: the generation cycle of a genetic algorithm

Same or opposite: generation cycle and one GA run

PointOne generationFull GA runSame or opposite
ContainsSelection, crossover, mutation onceMany generationsOpposite
Uses the fitness functionYesYesSame
OutputNew populationBest solution foundOpposite
Stops whenPopulation is replacedFitness stops improvingOpposite

Exam tip. Draw the cycle and write the steps. In the numerical, show the population table before and after one generation. Say that average fitness rose.

Back to the topic list

Q7. Perceptron: architecture, linear separability, training algorithm, Hebb and delta rules, ADALINE and MADALINE

Asked 7 times in 2015, 2016, 2018, 2019, 2020 · Unit 3

From the papers

  • “Define the architecture of a perceptron? What do you mean by linear separability?” (May 2018, Nov 2019, Dec 2020, Jun 2020)
  • “Explain in detail the algorithm for Hoff rule used in pattern association.” (Dec 2020)
  • “State and explain the Hebb's learning rule for Neural network.” (May 2018)
  • “Write and explain Delta rule.” (Jun 2016)

The short answer

A perceptron is a single neuron that adds weighted inputs and a bias, then applies a step function to give +1 or −1. It can learn any problem that is linearly separable, which means one straight line (or plane) can split the two classes.

Write these points

Perceptron training algorithm

  1. Set weights and bias to 0 or small values. Choose a learning rate α.
  2. For each input, find net = Σ w_i x_i + b and output y.
  3. If y ≠ target t, update w_i = w_i + α t x_i and b = b + α t.
  4. Repeat over all inputs until no weight changes.

Linear separability

  • AND and OR are linearly separable.
  • XOR is not: no single line splits (0,1), (1,0) from (0,0), (1,1).
  • Fix: add a hidden layer (MLP) or new features.

Learning rules

RuleWeight changeUsed in
HebbΔw = x yAssociative memory
PerceptronΔw = α t x when wrongPerceptron
Delta (Widrow-Hoff, LMS)Δw = α (t − net) xADALINE
  • ADALINE: one unit trained by the delta rule on the net input.
  • MADALINE: many ADALINEs feeding a majority or AND/OR unit; can solve XOR.

Training a bipolar AND.

Inputs (1,1)→1, (1,−1)→−1, (−1,1)→−1, (−1,−1)→−1. Start w = (0, 0), b = 0, α = 1.

(1,1): net = 0, wrong. w = (1, 1), b = 1. (1,−1): net = 1, wrong. w = (0, 2), b = 0.

(−1,1): net = 2, wrong. w = (1, 1), b = −1. (−1,−1): net = −3, right.

Second pass: all four are right. Final w = (1, 1), b = −1.

Real-life example

A security guard lets a person in only if they have both an ID card and a pass. He weighs both and opens the gate when the total crosses a limit. That simple yes or no decision on weighted evidence is what a perceptron does.

Figure: a trained perceptron for bipolar AND
Figure: a trained perceptron for bipolar AND

Same or opposite: perceptron rule and delta rule

PointPerceptron ruleDelta ruleSame or opposite
UsesOutput after stepNet input before stepOpposite
Changes weightsOnly when wrongAlways, by error sizeOpposite
Needs a learning rateYesYesSame
Converges onSeparable dataLeast squares fitOpposite

Exam tip. Draw the perceptron, write the four training steps and show the AND example. Then say why XOR is not linearly separable.

Back to the topic list

Q8. Neural network basics and learning: neuron, ANN vs brain, characteristics, applications, supervised, unsupervised and reinforcement learning

Asked 7 times in 2014, 2015, 2016, 2017, 2018, 2020 · Unit 2

From the papers

  • “Compare and contrast Supervised, Unsupervised and Reinforcement learning.” (May 2018, Dec 2020)
  • “What is ANN? Explain characteristics and applications of ANN.” (Dec 2016, Jun 2016)
  • “Distinguish between supervised learning and unsupervised learning?” (Jun 2017)
  • “Define structure and function of single neuron.” (Dec 2016)

The short answer

An artificial neural network (ANN) is a network of simple units modelled on brain neurons. Each unit adds weighted inputs and passes the sum through an activation function. The network learns by changing its weights from examples.

Write these points

Biological and artificial neuron

BiologicalArtificial
DendritesInputs x_i
Synapse strengthWeights w_i
Cell bodySummation Σ w_i x_i + b
AxonOutput f(net)

ANN and human brain

  • Brain: about 86 billion neurons, slow units, massively parallel, learns for life.
  • ANN: far fewer units, fast, needs much data, does one task well.

Characteristics and applications

  • Learns from examples, generalises, tolerates noise and faults, works in parallel.
  • Uses: face and speech recognition, credit scoring, weather forecasting, medical diagnosis.

Types of learning

TypeDataExample
SupervisedInputs with correct answersSpam filter, perceptron, EBPA
UnsupervisedInputs onlyKohonen map, customer groups
ReinforcementReward or penalty after actionsGame playing robot

Output of one neuron.

Inputs x = (0.5, 0.8), weights w = (0.4, 0.6), bias b = 0.1.

net = 0.5 × 0.4 + 0.8 × 0.6 + 0.1 = 0.2 + 0.48 + 0.1 = 0.78.

Sigmoid output = 1 ÷ (1 + e^−0.78) = 1 ÷ 1.458 = 0.686.

If the target is 1, the error 0.314 is used to change the weights during learning.

Real-life example

Learning to ride a cycle with a parent holding the seat and correcting you is supervised learning. Sorting your clothes into piles without anyone telling you the groups is unsupervised. Learning a video game from the score alone is reinforcement learning.

Figure: types of learning in neural networks
Figure: types of learning in neural networks

Same or opposite: supervised and unsupervised learning

PointSupervisedUnsupervisedSame or opposite
Labels neededYesNoOpposite
Learns from dataYesYesSame
Typical taskClassificationClusteringOpposite
Example netPerceptron, MLPKohonen SOMOpposite

Exam tip. Draw or table the neuron mapping, then list characteristics and applications. For learning types, the three row table is the answer.

Back to the topic list

Q9. Hill climbing and its limitations

Asked 6 times in 2016, 2017, 2018, 2019, 2020 · Unit 1

From the papers

  • “Discuss with example hill climbing techniques.” (Nov 2019, Dec 2020)
  • “What are the limitations of Hill climbing techniques? Explain each of them in brief.” (May 2018)
  • “What are the limitations of Hill Climbing? Give the possible solutions of these limitations.” (Jun 2017)
  • “What are the problems associated with hill climbing, explain each of them?” (Jun 2016)

The short answer

Hill climbing is a heuristic search that moves from the current state to a better neighbour, again and again, until no neighbour is better. It is fast and uses little memory, but it can stop at a point that is not the best.

Write these points

Algorithm

  1. Evaluate the start state. If it is the goal, stop.
  2. Apply an operator to make a neighbour.
  3. If the neighbour is better, make it the current state.
  4. Repeat until no better neighbour exists.

Types

  • Simple: take the first better neighbour.
  • Steepest ascent: look at all neighbours and take the best.
  • Stochastic: pick randomly among better neighbours.

Limitations and their solutions

ProblemWhat happensFix
Local maximumAll neighbours are worse but a higher peak existsBacktrack or random restart
PlateauAll neighbours equal, no directionMake a big jump
RidgeHigher ground lies only in a diagonal directionApply two moves together

Compared with generate and test

Generate and test tries solutions blindly. Hill climbing uses a heuristic to guide each step, so it is faster but not complete.

Stuck on a local maximum.

Values: start S = 3. Its neighbours: A = 5, B = 4. Move to A.

A's neighbours: C = 6, D = 2. Move to C.

C's neighbours: A = 5, E = 5. None is better, so the search stops at 6.

But E leads to G = 9. A random restart from E would reach the true best value 9.

Real-life example

Climbing a hill in fog, you take each step that goes up. You may reach a small hilltop and think you are at the summit, because every direction goes down. You cannot see the higher peak beyond the valley.

Figure: local maximum, plateau and global maximum
Figure: local maximum, plateau and global maximum

Same or opposite: hill climbing and best first search

PointHill climbingBest first searchSame or opposite
States rememberedOnly currentOpen list of manyOpposite
Uses a heuristicYesYesSame
Can backtrackNoYesOpposite
MemoryVery lowHigherOpposite

Exam tip. Write the steps, then draw the curve with local maximum, plateau and global maximum labelled. The three row problem table gets most marks.

Back to the topic list

Q10. Genetic algorithm compared with traditional methods, applications, advances and convergence

Asked 6 times in 2014, 2015, 2016, 2017, 2020 · Unit 5

From the papers

  • “Discuss the applications of Genetic algorithm.” (Dec 2020)
  • “What is similarity between GA and other traditional methods?” (Dec 2020)
  • “How does Genetic Algorithm differ from conventional algorithm? Give the advantages of GA over conventional algorithms.” (Jun 2017)
  • “Write a note on: Advances in GA” (Jun 2016)

The short answer

A genetic algorithm differs from traditional search and optimisation methods because it works on a population of coded strings, uses only fitness values and moves by probabilistic rules. It does not need derivatives.

Write these points

GA and traditional methods compared

PointGATraditional (calculus, hill climbing)
Works onCoded stringsThe variables themselves
Search fromMany points at onceOne point
NeedsOnly fitnessDerivatives or problem detail
RulesProbabilisticDeterministic
Local optimumRarely stuckOften stuck

Similarities

  • Both search for the best value of an objective.
  • Both stop on a convergence rule.
  • Both are iterative.

Applications

  • Timetable and exam scheduling.
  • Route planning (TSP, vehicle routing).
  • Design of aircraft wings and circuits.
  • Training or tuning neural networks.
  • Stock portfolio selection.

Advances and convergence

  • Advances: real coded GA, multi-objective GA (NSGA-II), parallel GA, hybrid neuro-genetic and fuzzy GA.
  • Convergence: the population becomes similar and best fitness stops rising. Too fast convergence (premature) is avoided by mutation and diversity.

Why GA searches better than one point.

For f(x) = x − x²/16 on 0 to 31 there are 32 possible x values.

A GA with 4 strings looks at 4 points per generation and shares good bits between them.

In the worked run, the maximum x = 8 was found in the second generation.

A hill climber started at x = 31 also reaches 8 here, but on a curve with two peaks it can stop at the wrong one.

Real-life example

A traditional method is one student solving a puzzle alone, step by step. A GA is a whole class trying different answers, sharing what works and trying new ideas. The class is less likely to get stuck.

Figure: where genetic algorithms are used
Figure: where genetic algorithms are used

Same or opposite: GA and calculus based optimisation

PointGACalculus basedSame or opposite
Needs a derivativeNoYesOpposite
Searches for an optimumYesYesSame
Points at a timePopulationOneOpposite
ResultNear optimal, rarely stuckExact if smoothOpposite

Exam tip. Make the five row table first. Then list three applications and one line on convergence. That covers every version of this question.

Back to the topic list

Q11. Fuzzy sets: crisp and fuzzy sets and relations, properties, operations and membership functions

Asked 6 times in 2016, 2017, 2018, 2020 · Unit 4

From the papers

  • “Give the properties on fuzzy sets and also explain the operations involved in it?” (Jun 2017, Dec 2020)
  • “What are the features of membership functions?” (Dec 2016, Jun 2016)
  • “Define membership function with its features. Also, state its importance in Fuzzy logic.” (May 2018)
  • “Explain why law of contradiction and law of exclusive middle are violated in fuzzy set theory.” (Jun 2016)

The short answer

A fuzzy set lets an element belong partly, with a membership value between 0 and 1. A crisp set allows only 0 (out) or 1 (in). A membership function gives the membership value for every input.

Write these points

Crisp and fuzzy

PointCrispFuzzy
Membership0 or 10 to 1
BoundarySharpGradual
RelationPairs are related or notPairs related to a degree μ_R(x, y)

Operations

  • Union: μ_A∪B = max(μ_A, μ_B).
  • Intersection: μ_A∩B = min(μ_A, μ_B).
  • Complement: μ_A′ = 1 − μ_A.

Properties

  • Commutative, associative, distributive, idempotent and De Morgan's laws hold.
  • Law of contradiction (A ∩ A′ = ∅) and law of excluded middle (A ∪ A′ = X) do not hold. An element can be partly in both.

Features of a membership function

  • Core: where μ = 1.
  • Support: where μ > 0.
  • Boundary: where 0 < μ < 1.
  • Common shapes: triangle, trapezoid, Gaussian, sigmoid.

Operations and the broken laws.

A = {0.3, 0.7, 1.0}, B = {0.6, 0.4, 0.5} over x1, x2, x3.

A ∪ B = {0.6, 0.7, 1.0}. A ∩ B = {0.3, 0.4, 0.5}. A′ = {0.7, 0.3, 0}.

A ∩ A′ = {0.3, 0.3, 0}. It is not empty, so the law of contradiction fails.

A ∪ A′ = {0.7, 0.7, 1.0}. It is not the full set, so the law of excluded middle fails.

Real-life example

Is 16 °C cold? A crisp rule says cold below 18, so 17.9 is cold and 18.1 is not. A person would say 16 °C is a little cold and a little pleasant. Fuzzy sets let a computer say the same.

Figure: membership functions for cold, warm and hot
Figure: membership functions for cold, warm and hot

Same or opposite: crisp set and fuzzy set

PointCrispFuzzySame or opposite
Membership values0 or 1Any value 0 to 1Opposite
Union and intersection definedYesYesSame
Excluded middle holdsYesNoOpposite
Models vague wordsNoYesOpposite

Exam tip. Draw the three membership curves and mark core and support on one. Then do union, intersection and complement on a small set.

Back to the topic list

Q12. Fuzzy logic, fuzzy rule base, fuzzy inference system and defuzzification

Asked 6 times in 2014, 2015, 2016, 2018, 2019 · Unit 4

From the papers

  • “What is fuzzy inference system? Discuss various methods of fuzzy inference system.” (Dec 2016, Nov 2019)
  • “What is fuzzy logic? Explain its importance.” (Nov 2019)
  • “With neat diagram, explain the working of Fuzzy Inference System (FIS).” (May 2018)
  • “What is the need of fuzzification? Explain the methods used for defuzzification.” (Jun 2016)

The short answer

A fuzzy inference system (FIS) maps crisp inputs to a crisp output using fuzzy IF-THEN rules. It has four steps: fuzzification, rule evaluation, aggregation and defuzzification.

Write these points

Parts of a fuzzy rule base system

  1. Fuzzifier: turns a crisp input into membership values.
  2. Rule base: rules like IF temperature is hot AND humidity is high THEN fan is fast.
  3. Inference engine: finds each rule's strength (min for AND, max for OR) and clips its output set.
  4. Aggregator: joins all clipped output sets with max.
  5. Defuzzifier: turns the joined set into one crisp number.

Methods of fuzzy inference

MethodRule outputNote
MamdaniA fuzzy setEasy to read, needs defuzzification
Sugeno (TSK)A formula, such as ax + bFast, good for control
TsukamotoA monotonic functionWeighted average output

Defuzzification methods

  • Centroid (COA): centre of area, x* = Σ μ(x) x ÷ Σ μ(x).
  • Centre of sums (COS).
  • Mean of maximum (MOM): average of x where μ is largest.

Importance of fuzzy logic

  • Handles vague words like "hot" and "fast".
  • Needs no exact maths model.
  • Used in washing machines, ACs, metro braking, camera focus.

Centroid defuzzification.

Output set: μ(10) = 0.2, μ(20) = 0.6, μ(30) = 1.0, μ(40) = 0.4.

Σ μ x = 2 + 12 + 30 + 16 = 60. Σ μ = 0.2 + 0.6 + 1.0 + 0.4 = 2.2.

Centroid x* = 60 ÷ 2.2 = 27.3.

Mean of maximum gives 30, because μ = 1 only at 30.

Real-life example

A fully automatic washing machine senses how dirty the clothes are and how big the load is. Its rules say "very dirty and big load means long wash". It then picks an exact time such as 52 minutes. That is a fuzzy inference system.

Figure: fuzzy inference system
Figure: fuzzy inference system

Same or opposite: Mamdani and Sugeno inference

PointMamdaniSugenoSame or opposite
Rule outputFuzzy setFunctionOpposite
DefuzzificationNeededWeighted averageOpposite
Uses IF-THEN rulesYesYesSame
SpeedSlowerFasterOpposite

Exam tip. Draw the four step flow. Name the three inference methods in a table and do one centroid sum.

Back to the topic list

Q13. Search algorithms: BFS, DFS, A* and AO*

Asked 6 times in 2015, 2016, 2017, 2018, 2020 · Unit 1

From the papers

  • “Write and explain AO* algorithm.” (Jun 2016, Jun 2017, Jun 2020)
  • “Give the comparison between Breadth First Search and Depth First Search with their pros and cons.” (May 2018)
  • “Define Breadth first and depth first search techniques.” (Dec 2016)
  • “Explain A* and AO* algorithm with suitable example.” (Jun 2015)

The short answer

Search finds a path from a start state to a goal. BFS and DFS search blindly, level by level or branch by branch. A* uses f(n) = g(n) + h(n), the cost so far plus an estimate to the goal. AO* searches AND-OR graphs, where a problem splits into sub-problems.

Write these points

BFS and DFS

PointBFSDFS
Data structureQueueStack
Finds shortest path (equal costs)YesNo
MemoryHighLow
Can get lost in deep branchesNoYes

A* algorithm

  1. Put the start on OPEN with f = h(start).
  2. Take the node with the lowest f from OPEN. If it is the goal, stop.
  3. Expand it. For each child, g = g(parent) + cost, f = g + h.
  4. Put children on OPEN (keep the lower g if seen before). Repeat.

If h never overestimates (admissible), A* finds the cheapest path.

AO* algorithm

  • Works on AND-OR graphs: an AND arc means all sub-problems must be solved.
  • Expands the best partial solution graph, then revises costs upward to the root.
  • Marks nodes SOLVED when all needed children are solved.

A* trace on the figure's graph.

Start S: OPEN = {A: f = 1 + 6 = 7, B: f = 4 + 4 = 8}. Expand A.

From A: B with g = 3, f = 3 + 4 = 7 (better than 8). G with g = 13, f = 13. Expand B.

From B: G with g = 3 + 5 = 8, f = 8. OPEN has G at f = 8, the lowest, so stop.

Path S → A → B → G with cost 8. The direct S → B → G costs 9.

Real-life example

Google Maps does not try every road in India. It grows the route from your home and keeps choosing the road that looks best by distance travelled plus straight-line distance left. That is the idea of A*.

Figure: an A* search graph
Figure: an A* search graph

Same or opposite: A* and AO*

PointA*AO*Same or opposite
Graph typeOR graphAND-OR graphOpposite
Uses a heuristicYesYesSame
ResultOne pathA solution graphOpposite
ExampleRoute findingProblem decompositionOpposite

Exam tip. Write the A* steps and trace a small graph. For AO*, explain AND arcs with a small sketch. Add the BFS and DFS table if asked.

Back to the topic list

Q14. Soft computing and hard computing, AI and soft computing techniques

Asked 5 times in 2014, 2015, 2016, 2020 · Unit 1

From the papers

  • “Define the following: i) Artificial Intelligence ii) Soft Computing” (Jun 2016, Jun 2020)
  • “Differentiate between soft computing and hard computing.” (Jun 2014, Dec 2016)
  • “What is artificial intelligence? How it differ from natural Intelligence?” (Jun 2014, Jun 2015)
  • “What is soft computing? Compare soft computing with hard computing. OR Explain various soft computing techniques.” (Jun 2020)

The short answer

Soft computing is a group of methods that give good, approximate answers to hard real-world problems by tolerating imprecision and uncertainty. Hard computing needs exact inputs and exact models and gives precise answers. AI is the field of making machines act intelligently.

Write these points

Soft and hard computing compared

PointSoft computingHard computing
ModelApproximateExact
LogicFuzzy, probabilisticBinary, crisp
InputCan be noisy or vagueMust be exact
ProgramsLearn or evolveWritten fully by hand
ExampleFace recognitionPayroll calculation

Why it is called "soft"

It accepts some error in exchange for low cost, speed and tolerance of noise, like human reasoning. The term was given by Lotfi Zadeh.

Soft computing techniques

  • Neural networks: learn from examples.
  • Fuzzy logic: reason with vague terms.
  • Genetic algorithms and swarm methods: search and optimise.
  • Probabilistic reasoning: Bayesian networks.
  • Hybrids: neuro-fuzzy (ANFIS), fuzzy GA.

AI and natural intelligence

  • Natural intelligence learns from little data, is creative and general.
  • AI is fast and tireless but limited to the task it was built for.

Same task, two approaches.

Task: set the AC to keep a room comfortable.

Hard computing: IF temperature > 25 THEN cooling ON, else OFF. At 25.1 °C the AC jumps to full power.

Soft computing: temperature is "a little warm" (0.6) so cooling is set to about 40%.

The fuzzy AC changes power smoothly. It saves energy and feels more comfortable.

Real-life example

Asking a friend for "a little sugar" in tea works fine, because people handle vague words. A recipe machine that needs "7.5 grams exactly" is hard computing. Soft computing lets computers work more like your friend.

Figure: soft computing techniques
Figure: soft computing techniques

Same or opposite: soft computing and hard computing

PointSoftHardSame or opposite
PrecisionApproximateExactOpposite
Handles uncertaintyYesNoOpposite
Runs on computersYesYesSame
Best forRecognition, controlAccounts, sortingOpposite

Exam tip. Start with both definitions. Give the five row table and list four techniques. Mention Zadeh when asked why it is called soft.

Back to the topic list

Q15. Adaptive resonance theory (ART)

Asked 4 times in 2014, 2015, 2016, 2018 · Unit 3

From the papers

  • “Explain the operation of Adaptive resonance Theory for binary pattern.” (May 2018)
  • “Explain ART with respect to: i) Architecture ii) Working” (Jun 2016)
  • “What is ART? Explain Rules and Applications.” (Jun 2015)
  • “Explain Chinese character Recognition method using ART2.” (Jun 2015)

The short answer

Adaptive resonance theory (ART) networks learn new patterns without forgetting old ones, which solves the stability-plasticity dilemma. A new input either matches a stored category closely enough (resonance) or creates a new category.

Write these points

Architecture of ART1

  1. F1 (comparison) layer: holds the input.
  2. F2 (recognition) layer: category units that compete; one wins.
  3. Bottom-up and top-down weights link F1 and F2.
  4. Reset unit: compares the match with the vigilance ρ.
  5. Gain control units manage when each layer is active.

Working

  • The input activates F2. The best category wins.
  • Its top-down prototype is compared with the input. Match = |I ∧ W| ÷ |I|.
  • If match ≥ ρ, there is resonance. The prototype learns (W = I ∧ W).
  • If match < ρ: reset that unit and try the next. If none fits, make a new category.

Types and uses

  • ART1 (binary inputs), ART2 (analog inputs), ARTMAP and fuzzy ARTMAP (supervised).
  • Uses: character recognition (including Chinese characters with ART2), radar signals, medical diagnosis.

Vigilance decides a match.

Vigilance ρ = 0.7. Stored prototype W = 1110.

Input I = 1100. I ∧ W = 1100. Match = 2 ÷ 2 = 1.0 ≥ 0.7, so resonance. W becomes 1100.

Next input I = 0011. I ∧ W = 0000. Match = 0 ÷ 2 = 0 < 0.7, so reset.

No other category fits, so a new category with prototype 0011 is created.

Real-life example

A librarian shelves a new book with similar books if it fits a section well enough. If it fits no section, she starts a new shelf instead of forcing it into the wrong one. Old shelves stay as they were. ART learns the same way.

Figure: one ART1 learning step
Figure: one ART1 learning step

Same or opposite: ART and back propagation network

PointARTBPNSame or opposite
New learning erases oldNoOften yesOpposite
LearningUnsupervised (ART1)SupervisedOpposite
Neural networkYesYesSame
Number of classesGrows as neededFixedOpposite

Exam tip. Name the stability-plasticity dilemma first. Draw F1, F2 and the reset unit, then show the vigilance test with two inputs.

Back to the topic list

Start with the latest papers

Soft Computing - Jun 2020 (old code CS-801)

Soft Computing - Dec 2020 (old code CS-801)

Soft Computing - Nov 2019 (old code CS-801)

See all 9 papers →

Soft Computing (AI-701) FAQs

What are the most important topics in Soft Computing?

By how often they were asked in the papers on this site: Knowledge representation and reasoning: predicate logic, resolution, forward and backward, monotonic and non monotonic (8 times); Error back propagation: MLP, activation functions, derivation, momentum, characteristics (7 times); Counter propagation network: architecture, functioning, characteristics (7 times); Associative memory, BAM, Hopfield and recurrent networks (7 times); Genetic algorithm operators: selection, crossover and mutation (7 times).

How were these Soft Computing important questions chosen?

Each topic was counted from the questions in the past papers listed on this site (2014-2020). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Soft Computing important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Soft Computing is free to download from this page.

The 15 most repeated topics of Soft Computing (AI-701) for RGPV B.Tech CSE-AI semester 7, counted from the previous year papers on this site. Soft Computing is also searched for as CS-801.

Also known as CS-801