NIC Flashcards

1
Q

Base principle of evolution

A

Beneficial mutations in children will be carried forward and become widespread in future generations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the steps to making a Genetic EA?

A
Generate Population
Calculate fitness of pop
Select two parents
Apply variation
Possibly recombine
Reintroduce/replace population
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a fitness function?

A

Evaluates how well a candidate solution solves the problem at hand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an approximate algorithm?

A

Delivers solutions in a reasonable time
Finds near-optimal solutions
Cannot guarantee an optimal solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Hillclimbing?

A

The process of keeping/rejecting mutated candidate solutions depending on if they are better or worse than their previous solution - when graphed this looks like a hill
The issue can be finding local maxima instead of the main hill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a neighborhood?

A

A set of all mutants of a candidate solution

The neighbourhood can be searched using a local search to try to find an improved version of the solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the different types of fitness landscapes?

A

Unimodal
Plateau
Multimodal
Deceptive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a population-based search?

A

Create a population of possible solutions, rather than just a single solution (as with local search)
Requires a selection method (maybe monte carlo)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the features of Genetic Algorithms?

A
  • Generational (new populations generated)

- Steady state (genetic operators are applied n times)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the problem with random candidate selection?

A

Result in little to no evolutionary progress

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the problem with high pressure candidate selectoin?

A

You’ll probably get stuck on a local maximum

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is roulette wheel selection?

A

Probability of getting picked is proportional to the fitness of the solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is rank based selection?

A

Population’s fitnesses are ranked from n to 1, selection probabilities are proportional to the rank
Sometimes a function is applied to rank such as rank^0.5 or rank^2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is tournament selection?

A

Select a random subset of pop. Rank the subset. Return the best candidate
Easy and cheap to implement
Avoids superfit and superpoor solutions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is K-ary encoding?

A

K is a parameter - when k = 2 its binary encoding, when 3, its ternary etc.
A candidate solution is a list L of numbers ranging from 0 to k-1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does mutation work in k-ary encoding?

A
Single gene mutation (choose at random - change to random new value)
M-gene mutation (single mutation M times)
Swap mutation (choose two genes at random and swap)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the 1-point crossover in k-ary recombination?

A

Pick an index in the list L, take the head of L up to the index of parent 1 and the tail of L from the index of parent 2
Swap these two parts making two children

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the 2-point crossover in k-ary recombination?

A

Pick two indexes, swap parts of parents 1 and 2 which are inside and outside of those indices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is uniform crossover in k-ary recombination?

A

Make a binary mask of length L filled with randomised 1s and 0s
Apply to parents
Create two children where any 1s in the binary mask swap P1 to P2 and where any 0s in the mask swap P2 to P1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is direct encoding?

A

A feature is directly described by one gene
Straightforward genotype to phenotype encoding
Easy to estimate the effects of mutation
Fast interpretation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is indirect encoding?

A

Easier to exploit domain knowledge
Possible to encode away undesirable features
Can seriously cut down the size of the search space
Slow interpretation
neighborhoods are highly rugged

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is the best representation for generating random computer programs in chromosomes?

A

Trees are the best way of achieving this in tandem with fixed rules regarding syntax and which functions can be used with which functions
To mutate a random program, select a random subtree and replace with a random subtree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

How do you compute the fitness of a random genetic program?

A

Counting the number of errors - i.e. how close is its result to the desired result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is semantic mutation?

A

When a child is semantically similar to its parents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is semantic crossover?

A

When a child is semantically intermediate to its parents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What is swarm intelligence?

A

When a collection of animals collectively complete a task together which they’d be unable to complete alone
The ability to perform the task is an emergent property of the swarm
Every element is the same there is no central controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What are the two main types of Swarm Algorithm?

A

Ant Colony Optimisation (ACO)

Particle Swarm Optimisation (PSO)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What is stigmergy?

A

Indirect communication via interaction with the environment

e.g. ants don’t communicate with each other directly they leave pheromone to change the environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

What is semantic stigmergy?

A

The action of the agent directly related to problem-solving and affects behavior
E.g. an individual may position itself in the environment to influence others

30
Q

What is sign-based stigmergy?

A

The action of agent affects the environment not directly related to problem-solving activity
Swarm behaviour emerges from the way individuals communicate through and affect their environment
Ants have highly sophisticated sign-based stigmergy va pheromones

31
Q

What is a flocking behavior?

A

Collective movement focusing on coordinated movements (e.g. formation flying)
Flocking requires some form of local interaction

32
Q

What are the characteristics of flocking?

A
Rapid directed movement of whole flock
Reactivity to predators
No collisions
Coalescing and splitting of flocks
No dedicated leader
33
Q

What are the flocking mechanisms?

A

Attraction and repulsion

Self organised coordination based on mimicking neighbor

34
Q

What are the benefits of flocking?

A

Energy saving (formation flying allows for drafting)
Dealing with predators
Reduce overall error of system (reduce navigation error)

35
Q

What is involved in a basic Particle Swarm Optimisation?

A

Update the positions of all particles based upon their velocity
Velocity calculated by taking current velocity and adding a random multiple of the difference between its current position and it’s best recorded position

36
Q

What are the main parameters of a PSO?

A

Swarm size
Neighborhood size
Number of iterations
Acceleration coefficients

37
Q

What are the applications of a PSO?

A

Theoretically any task that EAs can be applied to

Design of : aircraft antennae, controllers, circuits etc.

38
Q

What is a PSO?

A

Based loosely on principles of swarming
Has simple formula to update positions according to vellocity
Has intuitive set of parameters

39
Q

What is the purpose of a Multi-Objective Evolutionary Algorithm?

A

Finding the best tradeoff between multiple factors in a problem

40
Q

What is a Pareto Front?

A

A curve of the best solutions consisting of non-dominated points

41
Q

What are the most desirable characteristics of the Pareto front?

A

Evenly spaced solutions covering the largest possible area of the front

42
Q

How does a MO-EA discriminate between multiple objectives?

A

It uses a ranking approach to discriminate between different sets/fronts of solutions

43
Q

How do we tell the difference between two MO-EA solutions which are non-dominated?

A

The use of a Pareto Domination tournament:

Selection of two random solutions a & b and a comparison set c, if a & b are non dominated WRT c then select

44
Q

How is crowding distance computed in an MO-EA?

A

For each objective of the MO-EA sort the pop by that objective
Set crowding distance sum to 0
For each pop item (i) add to the sum (i+1)*m - (i-1) *m

45
Q

What is NSGAII execution?

A

Process of:
create an initial population (size N)
select, crossover and mutate
create sorted intermediate population with children (size 2N)
sort intermediate pop by crowding distance
split sorted crowding distances into ranks
discard all but first 3 ranks

46
Q

Why have elitist MO-EAs superseded non-elitist versions?

A

They execute and converge faster

Require no extra parameters (NSGAII for example)

47
Q

What is Hebbian Learning?

A

Learning is essentially the strengthening of neuron pathways

When 2 neurons fire together the connection between the neurons is strengthened

48
Q

What are the two categories of Neural Network?

A

Supervised

Unsupervised

49
Q

What are the differences between supervised and unsupervised neural networks?

A

Supervised: NN output compared to known result, weightings tweaked based on error from actual result
Unsupervised: network organises itself based on patterns in the data, no external output provided

50
Q

What is a perceptron?

A

A set of weighted connectors, the neuron, and the output axion
Uses a threshold/activation function
Learning is the process of tweaking the weights until the output is consistent with the input

51
Q

How are weights modified in a perceptron?

A

if output = desired then no change
if output < desired then increase weight by factor
if output > desired then decrease weight by factor

52
Q

What does a learning rate parameter do in a perceptron?

A

Learning rate is a factor which adjusts how much a weight is tweaked on each iteration
Sometimes learning rate is tweaked proportionally to the error in a perceptron

53
Q

What are the limitations of a perceptron?

A

A problem is only solvable by a perceptron if it is linearly separable into two group
XOR is not solvable by a perceptron for this reason

54
Q

What is a multi-layer perceptron?

A

A set of perceptrons which feed into each other
Overcomes limitations of a single perceptron
Basic example is three layer: input, hidden, output§

55
Q

What is the Feed Forward Algorithm?

A

Initialises weights and thresholds to small random values
Present input and desired output
Calculate actual output: multiply incoming signal by weight, pass through activation func (sigmoid), pass on output to units in the next layer

56
Q

What is the Back Propagation Algorithm?

A

Starts at output layer and works backwards

New weight = old weight + (learning rate * error)

57
Q

What are the two ways to update weights?

A

Batch updating - update weights after all patterns have been presented and all errors have been calculated
Online updating - weights are updated after the presentation of each pattern

58
Q

What is the difference between Symbolic AI and Connectionism?

A

Symbolic AI grounded in cognitive psychology whereas connectionism grounded in neuroscience

59
Q

What are the properties of a Neural Network?

A

Able to relate input variables to the required output
Able to generalize between samples
Shows graceful degradation

60
Q

What is the difference between classification and regression?

A

Classification: function learns a class (discrete)
Regression: function learns a value (continuous)

61
Q

What is graceful degradation?

A

In regular programs, the removal of a component will likely cause total failure
In NNs removal of neurons will likely reduce performance but not result in overall failure

62
Q

How does generalization differ from NNs to Symbolic AI?

A

NNs can learn common patterns in data
Symbolic AI is programmed rather than learned meaning it has to be changed for each implementation and will quickly fail if taken out of environment

63
Q

How do set up NNs for classification?

A

Create two datasets: training and testing
Overcome any data representation issues
Work out any discrete categories so that the NN does not become confused

64
Q

What is underfitting and overfitting?

A

Underfitting is when nothing is really learned - e.g using too simple a model etc
Overfitting is when too much is learned from the data, i.e. noise is also learned and the model becomes less general as false results will arise from new data

65
Q

What is the best way to apply a NN to a dynamic problem?

A

Using a shifting time window on the most recent data to try to predict the future

66
Q

What are Recurrent Neural Networks?

A

Similar to Multi Layer Perceptrons however they have links to previous layer allowing for a short term memory
This can be useful for stock market analysis, protein sequence analysis etc as knowledge of previous values can be useful
Generally harder to train

67
Q

What are cellular automata?

A

Method of simulating large scale problems on small scale using simple rules affecting local interactions
Automatons are grids of cells with a binary set of states
Each cell has a neighborhood (cells immediately adjacent to them)
State transition rules define how a cell’s state changes over time subject to other cell’s states

68
Q

What is Conway’s game of life?

A

A famous example of cellular automata

69
Q

What are the applications of cellular automata?

A

Modelling of spatial processes (forest fires, diseases)
Modelling of physical processes (crystal formation)
Modelling biological processes (self-replication)
Solving computational models
Parallel processing architectures

70
Q

What are fractals?

A

Geometric shapes that can be subdivided into parts which is exactly or statistically a reduced sized copy of the whole