1 00:00:18,720 --> 00:00:22,691 Welcome to the next video. In the Boolean series. In this 2 00:00:22,691 --> 00:00:27,023 video I'm going to show you what Boolean expressions are and how 3 00:00:27,023 --> 00:00:30,994 we can use the laws of logic to make them simpler. 4 00:00:31,960 --> 00:00:38,162 But I've shown you a lot of Lowe's and I've shown you a lot 5 00:00:38,162 --> 00:00:41,706 of operations, but what are actually Boolean expressions? 6 00:00:41,706 --> 00:00:45,250 But Boolean expressions are basically just input values. 7 00:00:45,250 --> 00:00:49,680 Peace, QS, and Rs combined together with all these logical 8 00:00:49,680 --> 00:00:52,781 operations, so different letters representing different input 9 00:00:52,781 --> 00:00:56,325 values and combined together with these logical operations 10 00:00:56,325 --> 00:00:58,540 just like in algebra for 11 00:00:58,540 --> 00:01:05,030 example. P&Q XRR is a Boolean expression, 12 00:01:05,030 --> 00:01:08,486 another somewhat more complicated Boolean expression 13 00:01:08,486 --> 00:01:10,790 is something like P&Q. 14 00:01:11,650 --> 00:01:13,950 Call 15 00:01:15,040 --> 00:01:22,000 Not Q&R Or P if then K. 16 00:01:23,620 --> 00:01:25,600 And not Q. 17 00:01:26,310 --> 00:01:31,290 If an only if R, so whichever operation you want to put 18 00:01:31,290 --> 00:01:35,855 together, and then how many inputs are there, it is again 19 00:01:35,855 --> 00:01:39,590 different for each expressions. As I mentioned, these different 20 00:01:39,590 --> 00:01:42,910 expressions will carry out different instructions for the 21 00:01:42,910 --> 00:01:45,400 computer, so the computer can do 22 00:01:45,400 --> 00:01:49,230 different things. And allow through certain input 23 00:01:49,230 --> 00:01:53,102 combinations and stop certain input combinations from going 24 00:01:53,102 --> 00:01:55,038 through in the circuit. 25 00:01:56,520 --> 00:02:01,428 Now let's talk a little bit about the rules of the brackets. 26 00:02:01,428 --> 00:02:07,563 So if I have got the expression of not P&Q, and if I have got 27 00:02:07,563 --> 00:02:12,471 the expression of not P&Q, what is the difference in here? What 28 00:02:12,471 --> 00:02:16,970 am I doing by placing the bracket? Well, just as in 29 00:02:16,970 --> 00:02:20,242 algebra by pressing a bracket somewhere, I'm emphasizing 30 00:02:20,242 --> 00:02:25,150 priority in this expression. The knot is only applied to pee and 31 00:02:25,150 --> 00:02:27,604 to be able to calculate the. 32 00:02:27,660 --> 00:02:30,476 Overall, output of this expression. I need to 33 00:02:30,476 --> 00:02:34,348 calculate not P and combine it together with the key using 34 00:02:34,348 --> 00:02:38,220 the end operation as opposed to hear hear the bracket is 35 00:02:38,220 --> 00:02:42,796 applied to the P&Q. So I need to calculate the P&Q 1st and 36 00:02:42,796 --> 00:02:47,020 then the note is applied to the all of it with the 37 00:02:47,020 --> 00:02:51,244 bracket. So once I found the P&Q output values then I need 38 00:02:51,244 --> 00:02:55,116 to invert them. I need to apply the not operation to 39 00:02:55,116 --> 00:02:59,692 those output values to get to the whole output so it will be 40 00:02:59,692 --> 00:03:02,156 very different in the two different cases. 41 00:03:03,280 --> 00:03:07,090 Similarly, if I have got P&Q. 42 00:03:08,260 --> 00:03:14,756 X or R or P&QX or R. The bracket tells me what I need to do 43 00:03:14,756 --> 00:03:19,222 first. Here I need to use the end operation and combined 44 00:03:19,222 --> 00:03:23,282 together P&Q then find the output and combined it together 45 00:03:23,282 --> 00:03:28,560 with the I using the axe or while in this case is the 46 00:03:28,560 --> 00:03:33,432 opposite way around. I need to use the exit gate combined Q&R 47 00:03:33,432 --> 00:03:37,898 together 1st and then use the end operation to combine output 48 00:03:37,898 --> 00:03:41,980 from here. Which P to get to the final output of the 49 00:03:41,980 --> 00:03:42,913 overall Boolean expression. 50 00:03:44,050 --> 00:03:49,795 Now the last thing I'd like to show you in this video is how we 51 00:03:49,795 --> 00:03:54,008 can use these laws of logic to reduce the Boolean expressions. 52 00:03:54,008 --> 00:04:00,136 So I have this expression not P or not Q. So how can I use the 53 00:04:00,136 --> 00:04:04,732 lose of logic to reduce this expression? Now I can use the 54 00:04:04,732 --> 00:04:09,328 Morgan low to distribute the not over the bracket. So what does 55 00:04:09,328 --> 00:04:15,073 the De Morgan do? I can break it up into not P and not not. 56 00:04:15,230 --> 00:04:20,906 Cute and then I can use the double negation and applied the 57 00:04:20,906 --> 00:04:24,690 not not key so that gives me not 58 00:04:24,690 --> 00:04:30,839 P&Q. Well, I think he would like to agree with me that instead of 59 00:04:30,839 --> 00:04:33,983 this bracketed expression, this expression is rather similar. 60 00:04:36,050 --> 00:04:38,910 One more example, not. 61 00:04:39,560 --> 00:04:41,330 Key or P? 62 00:04:43,910 --> 00:04:44,390 Or 63 00:04:47,170 --> 00:04:53,976 Not P&Q What I have here is key or P and I have 64 00:04:53,976 --> 00:04:59,380 here not P&Q. So I have got the same things in here but I 65 00:04:59,380 --> 00:05:04,398 have got them in the opposite order so why can do? First I 66 00:05:04,398 --> 00:05:09,030 can apply the commutative low and bring them up in the same 67 00:05:09,030 --> 00:05:10,188 kind of order. 68 00:05:16,010 --> 00:05:21,158 Then what I can use next is the Morgan loads to distribute the 69 00:05:21,158 --> 00:05:26,306 not inside the bracket. So that gives me not P and not Q. 70 00:05:29,010 --> 00:05:36,358 Or Not P&Q now what I have in here now. It's like 71 00:05:36,358 --> 00:05:38,470 in algebra you spot. 72 00:05:38,990 --> 00:05:41,560 That the first term here. 73 00:05:42,780 --> 00:05:47,411 Is the same, so you can do something called in algebra, 74 00:05:47,411 --> 00:05:52,042 factorization and in this case I can use the backwards operation. 75 00:05:52,042 --> 00:05:56,673 The backwards version of the distributive law so I can bring 76 00:05:56,673 --> 00:05:58,357 out the note P. 77 00:05:59,640 --> 00:06:01,530 And the end. 78 00:06:02,260 --> 00:06:05,800 And what remains is the not 79 00:06:05,800 --> 00:06:07,740 Q. Or key. 80 00:06:09,200 --> 00:06:11,352 Now what do I know about not Q 81 00:06:11,352 --> 00:06:16,845 or key? But I know about Nokia or cubes that that is always 82 00:06:16,845 --> 00:06:21,850 true because it doesn't matter which not Q or Q is force, the 83 00:06:21,850 --> 00:06:26,470 other will be always true and true. Or force always gives you 84 00:06:26,470 --> 00:06:31,090 true. So this is also the same as not P and true. 85 00:06:33,090 --> 00:06:33,800 And. 86 00:06:35,330 --> 00:06:37,090 Not P and true. 87 00:06:38,020 --> 00:06:43,116 That is always equal to not pee. I can apply the identity law 88 00:06:43,116 --> 00:06:48,212 here, which states that P and two is always P for the special 89 00:06:48,212 --> 00:06:53,308 case of not PN 2 is always not paying. So this long complicated 90 00:06:53,308 --> 00:06:56,444 expression is actually nothing else but not P. 91 00:06:57,230 --> 00:07:01,990 I hope that you now have a good idea of how to use the 92 00:07:01,990 --> 00:07:05,050 lose of logic to simplify Boolean expressions in the 93 00:07:05,050 --> 00:07:09,130 next slide you will have some questions to allow you to do 94 00:07:09,130 --> 00:07:13,210 some practice on your own and you will find the answers to 95 00:07:13,210 --> 00:07:14,570 these questions shortly after. 96 00:07:16,190 --> 00:07:18,218 So these are the practice questions. 97 00:07:24,270 --> 00:07:25,890 And here are the answers.