1
00:00:00,840 --> 00:00:07,620
Hello and welcome to this lecture, where you were going to learn a laundering part and concept which

2
00:00:07,620 --> 00:00:09,360
is cross over.

3
00:00:09,780 --> 00:00:18,600
We can see in the complete diagram of the genetic algorithm that we are in this part here.

4
00:00:19,170 --> 00:00:23,430
The crossover is considered a genetic operator.

5
00:00:23,940 --> 00:00:33,600
It is important to emphasize that we are implementing each separate parts and after we will put it all

6
00:00:33,600 --> 00:00:34,410
together.

7
00:00:34,680 --> 00:00:37,500
Now let's look at some definitions.

8
00:00:38,000 --> 00:00:49,890
Crossover combines parts of the chromosome from two bearings to generate a feeder child, so the population

9
00:00:49,890 --> 00:00:58,320
tends to evolve and we can create diversity through these combination in our implementation.

10
00:00:58,530 --> 00:01:08,400
We have only one individual, so we will need to create another individual to combine the chromosomes

11
00:01:08,400 --> 00:01:11,340
to generate new individuals.

12
00:01:11,820 --> 00:01:17,430
Remembering again, that the chromosome is this solution of the problem.

13
00:01:17,910 --> 00:01:27,840
This sets off zeros and ones that indicate whether up products will be loaded on a truck to be easier

14
00:01:27,840 --> 00:01:28,860
to understand.

15
00:01:29,160 --> 00:01:33,090
You will learn how to use this genetic operator.

16
00:01:33,510 --> 00:01:44,820
Let's suppose that we have two parents are individuals parent one, and parents chew with their corresponding

17
00:01:44,820 --> 00:01:45,690
solutions.

18
00:01:46,080 --> 00:01:58,830
For example, one zero one one zero one and zero and parents two zero one zero zero one one and one.

19
00:01:59,520 --> 00:02:03,150
The arrows show the cut off point.

20
00:02:03,480 --> 00:02:08,450
And here we have a new term, which is gene.

21
00:02:08,760 --> 00:02:20,580
You have already learned that this sets off zeros and ones is called chromosome, while each value is

22
00:02:20,580 --> 00:02:21,840
called gene.

23
00:02:22,140 --> 00:02:28,230
For example, the first gene of parent one is one.

24
00:02:28,620 --> 00:02:33,750
And the third gene of parents, two is zero.

25
00:02:34,170 --> 00:02:38,400
The cut off points separate the genes.

26
00:02:38,940 --> 00:02:44,280
Now in these two randomly selects a cut off point.

27
00:02:44,640 --> 00:02:51,390
That's why the name here is one point two splits the chromosome.

28
00:02:51,900 --> 00:02:54,900
Let's pick this point here.

29
00:02:55,290 --> 00:03:02,790
We have genes on the left side and genes on the right sides.

30
00:03:03,360 --> 00:03:06,210
Three here and four here.

31
00:03:06,510 --> 00:03:12,240
And it doesn't matter in which genes you create the cutoff points.

32
00:03:12,660 --> 00:03:25,980
For example, if it was here in this part, we would to have one gene on the left side and six genes

33
00:03:25,980 --> 00:03:27,550
on the right sides.

34
00:03:28,050 --> 00:03:40,230
If we select these good off point here, we would have one gene on the right side and six genes on the

35
00:03:40,230 --> 00:03:41,490
left side.

36
00:03:41,940 --> 00:03:47,280
Later on, we will implement a function to randomly selected.

37
00:03:47,910 --> 00:03:58,320
Then next step is to generate two children, as you can see here, child one and child two.

38
00:03:59,010 --> 00:04:11,460
For example, we can see that's child one is composed of the first bards of parent one, one, zero

39
00:04:11,460 --> 00:04:12,360
and one.

40
00:04:12,570 --> 00:04:20,880
And with this sequence, parts of parents two, zero, one, one and one.

41
00:04:21,060 --> 00:04:30,070
And regarding child's chew, it is composed of the first part of parents.

42
00:04:30,090 --> 00:04:30,560
Sure.

43
00:04:30,840 --> 00:04:41,610
And with this sequence, parts of parent, when we have a kind of cross combining the chromosomes,

44
00:04:42,150 --> 00:04:48,630
as we can see here, this part is combined it with these parts.

45
00:04:48,990 --> 00:04:59,550
The left side of parent one is combined with the right side of parents chew and on the other two hands

46
00:04:59,880 --> 00:05:00,150
before.

47
00:05:00,280 --> 00:05:11,680
First parts of Paradise, Chu is combined with this second part of parents when we applied this operation

48
00:05:11,950 --> 00:05:21,040
because the banned this is that's if we combine the solutions are the individuals our chromosomes will,

49
00:05:21,040 --> 00:05:24,910
we will have bad results over two generations.

50
00:05:25,300 --> 00:05:36,730
For example, this chu individuals here are from the first generation, while these other two are from

51
00:05:36,730 --> 00:05:42,250
this second generation and evolution of the first generation.

52
00:05:42,760 --> 00:05:50,170
And that's all for this lecture, where you will learn the theory behind the crossover and in the next

53
00:05:50,170 --> 00:05:52,110
one will implement it.

54
00:05:52,630 --> 00:05:53,350
See you there!
