CHAPTER 6 - Computational Intelligence

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/106

encourage image

There's no tags or description

Looks like no tags are added yet.

107 Terms

1
New cards

Computational Intelligence

CI

2
New cards

CI

nature-inspired computing approaches that enable systems to learn from data, adapt, make intelligent decisions. Handles uncertainty, imprecision, incomplete information - unlike rule based AI. Emphasizes learning, adaptation, self organization, evolutionary computation

3
New cards

Neural Networks

Historical Background of Computational Intelligence. 1940s: (McCulloch & Pitts)

4
New cards

Neural Networks

Historical Background of Computational Intelligence. 1960-1970s: (Emergence of Evolutionary Algorithms)

5
New cards

Swarm Intelligence and Fuzzy Logic

Historical Background of Computational Intelligence. 1980-1990s

6
New cards

ML, DL

Historical Background of Computational Intelligence. 2000s to present: Integration with __ and __

7
New cards

strict logic

"Historically, CI developed as researchers sought methods to handle complex, nonlinear problems—those that couldn't be solved with ______ _____ or classical computation."

8
New cards

Neural networks, fuzzy logic, evolutionary computation, swarm intelligence, heuristic and metaheuristic search

5 major paradigms of CI (NFESH). These paradigms are not isolated they often integrate

9
New cards

Neural Networks (NN)

major paradigm of CI. Learn from data by adjusting weights.

10
New cards

Fuzzy Logic (FL)

major paradigm of CI. Models uncertainty using degrees of truth.

11
New cards

Evolutionary Computation (EC)

major paradigm of CI. Mimics natural evolution.

12
New cards

Swarm Intelligence (SI)

major paradigm of CI. Models collective behavior of agents.

13
New cards

Heuristic and Metaheuristic Search

major paradigm of CI. Uses guided search strategies for problem solving.

14
New cards

Ill-defined, nonlinear, uncertain, mathematical, adapts, large, optimization

Why Computational Intelligence is needed?

1. Handles ___-_______, _________, and _________ problems.

2. Does not require exact ____________ models.

3. ______ and learns in real-time.

4. Efficient in _____ search spaces.

5. High performance in ____________ and classification problems.

15
New cards

Hybrid systems

combine the strengths of multiple CI paradigms — examples are Neuro-Fuzzy and Genetic-Fuzzy systems

16
New cards

Symbolic AI vs CI

symbolic AI uses explicit models — CI uses experiential learning and optimization

17
New cards

Applications of CI

healthcare diagnostics, robotics and autonomous systems, energy optimization and smart grids, financial forecasting and fraud detection, supply chain and logistics optimization, natural language and image processing

18
New cards

Optimization

finding the best solution among many possible solutions

19
New cards

Formal definition of optimization

minimize f(x) subject to constraints g(x)

20
New cards

Objective function f(x)

the goal you want to minimize (or maximize) in an optimization problem

21
New cards

Constraints g(x)

the rules a solution must follow to be valid

22
New cards

Search space

all the possible choices (values of x) that can be checked

23
New cards

Continuous optimization

variables take real-valued (decimal) numbers

24
New cards

Discrete optimization

variables are distinct choices — such as picking from a list or yes/no decisions

25
New cards

Unconstrained optimization

no rules limit the solution — any point in the search space is allowed

26
New cards

Constrained optimization

solutions must satisfy rules (constraints) to be valid

27
New cards

Single-objective optimization

only one goal is optimized

28
New cards

Multi-objective optimization

two or more goals are optimized at the same time

29
New cards

Convex optimization

only one valley (a single optimum) — easy to find the bottom

30
New cards

Non-convex optimization

many valleys and hills (many local optima) — harder to solve

31
New cards

Global optimum

the best solution in the entire search space

32
New cards

Local optimum

a solution better than its neighbors but not the best overall — traditional methods get stuck here

33
New cards

Exploration

trying new areas of the search space to escape local optima — CI aims to escape local optima this way

34
New cards

Exploitation

using what is already known to be good — such as mixing good parents through crossover

35
New cards

Work

total fitness evaluations (total operations = sequential time) — work-efficient algorithms avoid extra useless work

36
New cards

Span

the longest dependence chain — the time taken with infinite processors

37
New cards

Parallelism

work divided by span (work/span)

38
New cards

Fitness evaluation

the most expensive (work-heavy) GA step — can be parallelized

39
New cards

Genetic Algorithms (GAs)

search and optimization methods inspired by Darwinian evolution. Solutions evolve using operators like selection, crossover, and mutation

40
New cards

John Holland

proposed Genetic Algorithms in 1975

41
New cards

Survival of the fittest, inheritance, variation, mutation

key ideas of Genetic Algorithms

42
New cards

Selection, crossover, mutation

3 main operators used to evolve solutions in a GA

43
New cards

Uses of GA

function optimization, scheduling, Traveling Salesman Problem, feature selection, neural network optimization — all are optimization problems

44
New cards

Population

the set of potential solutions (chromosomes) that a GA evolves over generations

45
New cards

Chromosome

a complete candidate solution

46
New cards

Gene

smallest unit (variable) of a chromosome

47
New cards

Initialization, Evaluation, Selection, Crossover, Mutation, Replacement, Termination

7 steps of the GA workflow in order. (IESCMRT). Loop steps 2-6 until termination — output best chromosome

48
New cards

Initialization

GA workflow step 1. Generate random population of solutions

49
New cards

Evaluation

GA workflow step 2. Compute fitness for each solution

50
New cards

Selection

GA workflow step 3. Select best individuals based on fitness

51
New cards

Crossover (Recombination)

GA workflow step 4. Exchange information between parents

52
New cards

Mutation

GA workflow step 5. Randomly alter some genes to maintain diversity

53
New cards

Replacement

GA workflow step 6. Form a new generation

54
New cards

Termination

GA workflow step 7. Stop when maximum generations or target fitness achieved

55
New cards

Binary, real-valued, permutation

3 representation types / encoding methods

56
New cards

Binary encoding

chromosome is a string of 1s and 0s — simple and used in theoretical models, such as knapsack yes/no

57
New cards

Real-valued encoding

chromosome holds continuous values — faster convergence and higher precision, such as sensor coordinates

58
New cards

Permutation encoding

chromosome is an ordered sequence — used for routing/scheduling and needs specialized crossover like OX

59
New cards

Population size

affects exploration — larger gives better coverage but is slower, smaller is faster but may miss the global optimum

60
New cards

Fitness function

mathematical formulation evaluating solution quality — the guiding force of the GA. Problem-specific design is the most important. Determines selection probability

61
New cards

Higher fitness

means a better solution quality (or lower if minimization via inverse)

62
New cards

Goal of selection

prefer individuals with higher fitness. Simulates survival of the fittest

63
New cards

Roulette wheel, tournament, rank

3 common techniques for GA Selection operation

64
New cards

Roulette Wheel Selection (Fitness Proportionate Selection)

probability of being selected is proportional to fitness (Probability ∝ fitness value)

65
New cards

Steps of Roulette Wheel Selection

Step 1 compute total fitness — Step 2 compute probability (P_i = f_i / F_total) — Step 3 compute cumulative probability — Step 4 spin the wheel (generate random number r in [0,1])

66
New cards

Premature convergence

population becomes too similar too quickly and gets stuck in a local optimum — roulette wheel selection is prone to it when one fitness dominates

67
New cards

Tournament Selection

randomly select k individuals and pick the best among them — repeat until you have enough parents

68
New cards

Tournament size (k)

number of individuals competing in one tournament — larger k means higher selection pressure and faster convergence, smaller k keeps more diversity

69
New cards

Rank Selection

rank individuals (1 = worst, n = best) then assign probability based on rank (Rank / Total Ranks) — avoids domination by very fit individuals and maintains diversity

70
New cards

Single point, two-point, uniform, order

4 common techniques for GA Crossover operation

71
New cards

Crossover

produces new offspring by mixing genes of parents and encourages exploration of new areas

72
New cards

Crossover rate

chance that crossover is applied to a pair of parents — usually 70-90%, otherwise parents are copied directly

73
New cards

Single Point Crossover

one crossover point is randomly chosen — genes before the point come from Parent 1 and genes after the point from Parent 2. Two offspring are created by exchanging segments after the point

74
New cards

Two-Point Crossover

two points are randomly selected — the genes between the two points are swapped between parents. Mixes larger gene segments for more diversity

75
New cards

Uniform Crossover

each gene in the offspring is chosen randomly from either parent with equal probability — a random mask decides (1 = take from P1, 0 = take from P2) and child 2 takes the opposite parent at each position. Highest diversity

76
New cards

Order (OX) Crossover

preserves relative order of genes from parents — copy a segment from Parent 1 then fill the remaining positions from Parent 2 in order, skipping duplicates. Always gives a valid permutation

77
New cards

Partially Mapped Crossover (PMX)

crossover for permutations that maintains valid tours (no duplicate genes)

78
New cards

Arithmetic crossover

blends parent values to make the child (for example averaging colors or positions) — used for real-valued chromosomes

79
New cards

Mutation

introduces random changes in an individual's chromosome. Helps the GA maintain diversity in the population and avoid premature convergence (getting stuck in a local optimum)

80
New cards

Bit-flip, swap, scramble, Gaussian

4 common mutation types

81
New cards

Bit-Flip Mutation

randomly flips bits (0 → 1 or 1 → 0) — used for binary chromosomes

82
New cards

Swap Mutation

swaps positions of two genes — used for permutation chromosomes because it never creates duplicates

83
New cards

Scramble Mutation

randomly rearranges a subset of genes — a bigger change than swap, still a valid permutation

84
New cards

Inversion Mutation

reverses a segment of genes — used for permutation chromosomes

85
New cards

Gaussian Mutation

adds small random noise to real-valued genes — creates new values never seen before

86
New cards

Mutation rate

probability that a gene mutates — kept very low (typically 0.001 to 0.05) so good solutions are kept

87
New cards

Elitism / Replacement

strategy that ensures the best individuals (chromosomes) from the current generation are copied directly into the next generation without modification. Guarantees the best fitness never decreases

88
New cards

N and E

in elitism, N = population size and E = number of elites

89
New cards

How elitism works

sort population by fitness (highest to lowest) — copy the top E individuals directly to the next generation — fill the remaining N − E spots with offspring from crossover and mutation

90
New cards

Too many elites

the population fills with copies of the same elites — loses diversity and causes premature convergence

91
New cards

Termination

the stopping condition. It is the point when the algorithm decides that further evolution will not significantly improve the solution

92
New cards

Maximum generations reached, fitness threshold achieved, no improvement (convergence), time limit reached, manual termination

5 common termination criteria

93
New cards

Maximum Generations Reached

stop when a preset number of generations have been produced

94
New cards

Fitness Threshold Achieved

stop when the best fitness value is good enough (meets or exceeds a target)

95
New cards

No Improvement (Convergence)

stop if fitness doesn't improve for a number of generations

96
New cards

Time Limit Reached

stop if the algorithm has run for a set duration

97
New cards

Manual Termination

human stops the GA based on inspection

98
New cards

Fitness threshold vs convergence

threshold stops because the result is good enough even if still improving — convergence stops because the search is stuck even if the target was not reached

99
New cards

Traveling Salesman Problem (TSP)

given a list of cities and the distances between each pair, find the shortest possible route that visits every city exactly once and returns to the starting point

100
New cards

GA setup for TSP

representation: permutation of cities — fitness: f = 1 / total distance — selection: tournament or roulette wheel — crossover: OX or PMX — mutation: swap or inversion — termination: convergence