< Return to Video

https:/.../emt171080p.mp4

  • 0:18 - 0:22
    Welcome to the next video on
    the Boolean algebra and in
  • 0:22 - 0:25
    this video we're going to
    look at simple truth tables.
  • 0:27 - 0:31
    Now before we start to look at
    examples, I'd like to talk a
  • 0:31 - 0:36
    little bit about why do we use
    the three tables and what are
  • 0:36 - 0:41
    these two tables. For now we use
    the truth tables because these
  • 0:41 - 0:44
    are simple visual representation
    of what an actual Boolean
  • 0:44 - 0:48
    expression can do. So for
    example, you have a Boolean
  • 0:48 - 0:51
    expression combining together
    two or three input values, and
  • 0:51 - 0:55
    then you want to know what are
    all of those different
  • 0:55 - 0:59
    combinations. Expression can
    take as an input combination and
  • 0:59 - 1:03
    you would want to know what is
    the corresponding output for
  • 1:03 - 1:07
    every single one of those
    combinations. So a Boolean
  • 1:07 - 1:11
    expression using the through
    table can really easily show you
  • 1:11 - 1:14
    all of those different
    combinations. Now, how do we
  • 1:14 - 1:18
    construct the truth table while
    a through table which you have
  • 1:18 - 1:23
    seen in the previous video in
    their most basic cases is just
  • 1:23 - 1:26
    showing you the input
    combinations in the columns and
  • 1:26 - 1:30
    then. Breaking the complex
    Boolean expression down into its
  • 1:30 - 1:34
    constituent parts and then
    combining those parts together
  • 1:34 - 1:38
    according to different
    operations that take place in
  • 1:38 - 1:42
    the actual expression. Now
    depending on how many inputs we
  • 1:42 - 1:48
    have, you can use the following
    rule to establish how many
  • 1:48 - 1:53
    combinations of inputs you can
    have while every inputs can be
  • 1:53 - 1:58
    true or false or zero or one, so
    that gives you.
  • 1:58 - 2:03
    Two possible input values. Now,
    depending on how many different
  • 2:03 - 2:09
    input values you have, that will
    be 2 to a certain power. So for
  • 2:09 - 2:14
    example, if I have got two
    different input values, let's
  • 2:14 - 2:18
    say P&Q, then the possible
    combination of these input
  • 2:18 - 2:26
    values will be two to two, which
    is 4 if I have got three input
  • 2:26 - 2:28
    values, let's say PQ and.
  • 2:28 - 2:32
    Are then the possible
    combination of all of these
  • 2:32 - 2:35
    input values will be two to
    three, which is 8.
  • 2:36 - 2:43
    So how can we build up the start
    of our three table for these two
  • 2:43 - 2:48
    combinations if I, let's say,
    have two input values P&QI know
  • 2:48 - 2:53
    that I will have to end up with
    four combinations of these. Now
  • 2:53 - 2:59
    everyone of these inputs can be
    true or false. Now half of four
  • 2:59 - 3:05
    is 2. So if I place down to
    trues two forces and then just
  • 3:05 - 3:06
    alternating tuzan forces.
  • 3:07 - 3:11
    Then I will have all the four
    different combinations without
  • 3:11 - 3:15
    repeating any of them. Well,
    it's my big too obvious for the
  • 3:15 - 3:19
    two combinations, but let's see
    what happens if we have three
  • 3:19 - 3:23
    combinations. So let's
    say if I had P.
  • 3:24 - 3:29
    Q. And R as my input
    combinations, but half
  • 3:29 - 3:34
    of eight is 4, so I can
    put down four truths.
  • 3:35 - 3:37
    And four forces.
  • 3:39 - 3:42
    Then I can put down to truths.
  • 3:42 - 3:47
    Two forces, two throughs to
    forces Alternatingly and then
  • 3:47 - 3:53
    just one through 1/4 until I
    fill up the whole table.
  • 3:56 - 3:59
    Now opposed to the two
    combinations, which is
  • 3:59 - 4:02
    relatively simple because you
    can just follow through OK. Both
  • 4:02 - 4:08
    of them can be true. Both of
    them can be false, or 1314 when
  • 4:08 - 4:12
    it comes to three combinations
    that starts to become a little
  • 4:12 - 4:16
    bit more complicated. So if you
    don't remember this simple rule,
  • 4:16 - 4:21
    you might end up repeating one
    or the other of the rows in this
  • 4:21 - 4:24
    combination, which would end up
    you producing the wrong or
  • 4:24 - 4:26
    incomplete truth table for your.
  • 4:26 - 4:31
    Exercise and other important
    things when it comes to these
  • 4:31 - 4:35
    three tables is to being able to
    breakdown these different
  • 4:35 - 4:40
    expressions. So let's say that
    you have got a complicated
  • 4:40 - 4:42
    expression P and not.
  • 4:43 - 4:44
    Q.
  • 4:45 - 4:47
    Or pee.
  • 4:48 - 4:50
    Now what's going on in here?
  • 4:51 - 4:55
    But I have got brackets just
    like in BODMAS. I'm using the
  • 4:55 - 4:59
    bracket to rearrange the order
    of operations, so the brackets
  • 4:59 - 5:03
    will Tammy that I need to
    combine the inputs of P and not
  • 5:03 - 5:08
    Q before I can apply the OR
    operation so that straight away
  • 5:08 - 5:12
    tells me that the priority to be
    able to calculate things first
  • 5:12 - 5:17
    we will need to happen in the
    bug inside the bracket. Now
  • 5:17 - 5:20
    inside the bracket I have got P
    and not Q.
  • 5:21 - 5:26
    To be able to combine them
    together, I will need to know
  • 5:26 - 5:30
    the values of P, which I can
    just start from the beginning of
  • 5:30 - 5:35
    the table and then not Q. Now
    where I'm building up the table,
  • 5:35 - 5:39
    I will have P&Q input values.
    Therefore I will need to
  • 5:39 - 5:44
    calculate and not Q first to be
    able to combine P and not Q
  • 5:44 - 5:48
    together. Once I've got not Q,
    combined it together with the
  • 5:48 - 5:51
    using the end operation. Then I
    can combine that.
  • 5:51 - 5:57
    Partial output with the OR and
    the P. Now let's see how does it
  • 5:57 - 5:59
    work in practice.
  • 5:59 - 6:00
    So be.
  • 6:03 - 6:03
    Cute.
  • 6:05 - 6:06
    Not key.
  • 6:08 - 6:10
    B end not key.
  • 6:12 - 6:15
    And P and not Q or
  • 6:15 - 6:22
    P. So these are the different
    input values that I need to be
  • 6:22 - 6:27
    able to calculate before I will
    end up with the final answer, so
  • 6:27 - 6:32
    I've only got P&Q. I've only got
    two different letters in my
  • 6:32 - 6:36
    expression, therefore I'm going
    to use only two of those
  • 6:36 - 6:40
    combinations and the truth
    values to start with are going
  • 6:40 - 6:45
    to be true to force force
    through force 3/4. Now what does
  • 6:45 - 6:47
    the not due to an input?
  • 6:48 - 6:52
    Drew turns into force force,
    turns into 2.
  • 6:54 - 6:58
    So that's what happens if I
    apply the not operation to
  • 6:58 - 7:03
    the cube. What I need to do
    next? I need to pick up the
  • 7:03 - 7:08
    note Q and I need to combine
    that together with the P
  • 7:08 - 7:09
    using the end operation.
  • 7:11 - 7:17
    And This is why you need to
    remember what every single one
  • 7:17 - 7:21
    of these different operations
    do, because you need to be able
  • 7:21 - 7:26
    to apply them to certain
    situations. So true and force
  • 7:26 - 7:31
    makes it force true and true
    makes it true. Force and force
  • 7:31 - 7:37
    makes a force and force, and two
    makes a force. So now I have got
  • 7:37 - 7:41
    answers to this operation for
    each of the different
  • 7:41 - 7:46
    combinations. But that's not my
    final goal, 'cause my final goal
  • 7:46 - 7:51
    is to have the answer for this
    operation. So for that what I
  • 7:51 - 7:54
    need to do is pick up this.
  • 7:55 - 7:56
    Which is this spot?
  • 7:57 - 8:01
    And I need to use the
    operation. Combine it
  • 8:01 - 8:03
    together with P again.
  • 8:05 - 8:09
    So what I'm going to do in this
    case? I'm going to look at these
  • 8:09 - 8:16
    two. Input values and using the
    rules of the OR operation true
  • 8:16 - 8:23
    or force gives me true true or
    true gives me true force or
  • 8:23 - 8:28
    force gives me force force or
    force gives me force.
  • 8:29 - 8:30
    What have I found?
  • 8:32 - 8:38
    What I found is that what is
    this operation does to every
  • 8:38 - 8:44
    possible input combinations of
    P&Q? What will be the output? So
  • 8:44 - 8:47
    if both of them are true?
  • 8:48 - 8:54
    The output will be true if P is
    true, Q is forced, the output
  • 8:54 - 8:59
    will be true, but in the other
    two cases, when PS4's and Q
  • 8:59 - 9:04
    history, the output overall
    output will be for Stan. If both
  • 9:04 - 9:09
    of them are forced, the overall
    output will be force. So with
  • 9:09 - 9:13
    this combination I have been
    able to filter out these two
  • 9:13 - 9:17
    first input values. I'm letting
    those go through this
  • 9:17 - 9:21
    combination. And these two I'm
    going to stop. Remember that
  • 9:21 - 9:25
    these input values are always.
    You can think about the movies
  • 9:25 - 9:30
    like electric circuits do I let
    the signal go through or do I
  • 9:30 - 9:34
    not? And for some reasons it's
    important for me to only allow
  • 9:34 - 9:38
    these two signals combinations
    to and stop these two signals.
  • 9:39 - 9:41
    Let's look at another example.
  • 9:42 - 9:44
    P&Q
  • 9:47 - 9:53
    axor. P. Again, I've
    only got two different letters
  • 9:53 - 9:58
    P&Q, so the overall different
    inputs just P&Q, so I'm going to
  • 9:58 - 10:00
    have just a combination.
  • 10:00 - 10:06
    Do again the truth table will be
    2 to force force or three
  • 10:06 - 10:10
    fourths 3/4 now and I'm looking
    at the expression what are the
  • 10:10 - 10:15
    different inputs that I need to
    combine together first before I
  • 10:15 - 10:20
    can calculate the overall
    output. Now there is an X or
  • 10:20 - 10:25
    gate but there is a bracket
    bracket is my priority just like
  • 10:25 - 10:30
    him but mass. So I need to
    calculate the P&Q first before I
  • 10:30 - 10:37
    can apply. The P&QX or P so
    the Exor gate will be the final
  • 10:37 - 10:43
    operation that I'm going to use
    in here. So for P&Q simply.
  • 10:45 - 10:47
    Just use the end operation.
  • 10:48 - 10:53
    The end operation only returns
    true if both of them are true.
  • 10:53 - 10:56
    In every other cases, the end
    will be false.
  • 10:58 - 11:05
    And the X or what do I know
    about the X or the X? Or is to
  • 11:05 - 11:09
    distinguish between the signals
    being the same both through both
  • 11:09 - 11:13
    force or the signals being
    different one through 1 force
  • 11:13 - 11:16
    and only letting through when
    the signals are actually
  • 11:16 - 11:19
    different? That's why it's
    called exclusive or it's
  • 11:19 - 11:25
    exclusively one or the other. So
    what do I need to look? But the
  • 11:25 - 11:28
    first input will be the
    combination that we just
  • 11:28 - 11:33
    calculated. And the other one is
    the P so.
  • 11:34 - 11:39
    P and this combination is the
    same, so the exclusivo returns
  • 11:39 - 11:44
    force. B and the combination is
    different, so the exclusive or
  • 11:44 - 11:46
    gives you true.
  • 11:47 - 11:52
    These are again the same, so it
    returns a force and these are
  • 11:52 - 11:55
    again the same, so it's again
    returns of force.
  • 11:58 - 12:05
    So again, what have we found? We
    know that P&Q can take all these
  • 12:05 - 12:09
    different input combinations and
    the expression which is using
  • 12:09 - 12:14
    P&QX or P. We return these
    output values. The interesting
  • 12:14 - 12:19
    thing about this expression is
    it only let's through one
  • 12:19 - 12:23
    combination the true Force
    combination. It stops every
  • 12:23 - 12:28
    other combination. So you can
    see it. You can use these
  • 12:28 - 12:31
    combinations of different
    operations of filtering.
  • 12:31 - 12:36
    Out certain inputs and only
    allowing to go through one
  • 12:36 - 12:37
    type of input.
  • 12:39 - 12:43
    The next expression P or Q.
  • 12:46 - 12:48
    If then. Q.
  • 12:50 - 12:56
    So how many different letters do
    I have? I only have P&Q, so this
  • 12:56 - 13:00
    through table again just gonna
    have to input combinations.
  • 13:01 - 13:06
    The start will be again
    true through Force Force
  • 13:06 - 13:11
    3, Four 3/4. Now try to
    breakdown the expression.
  • 13:13 - 13:17
    There is a bracket again that
    tells me the priority, so I will
  • 13:17 - 13:21
    need to find the P or Q first
    before I can use.
  • 13:23 - 13:26
    D. Eve, then operation.
  • 13:28 - 13:35
    So B or Q both of them are true,
    so this will be true. One of
  • 13:35 - 13:40
    them is true. This will be true.
    Both of them are force. This
  • 13:40 - 13:45
    will be force. So that was very
    simple. But how about if them
  • 13:45 - 13:50
    well? Just to make sure that
    we remember what we've done
  • 13:50 - 13:51
    is, let's recall.
  • 13:52 - 13:55
    The truth table of the if then.
  • 13:58 - 14:07
    3344343
    of course. Now what does the if
  • 14:07 - 14:12
    then do if both of them are
    true? If then returns true if A
  • 14:12 - 14:19
    is true, but B is force if then
    returns force if A is forced but
  • 14:19 - 14:26
    B is 2 if then returns true, and
    if both of them are forced to if
  • 14:26 - 14:27
    then again returns true.
  • 14:28 - 14:32
    So this is one of the more
    difficult tables to remember,
  • 14:32 - 14:35
    so I suggest that you learn
    it very well so.
  • 14:36 - 14:38
    Back to our original table.
  • 14:39 - 14:46
    What are the two inputs that we
    need to look into now? This one
  • 14:46 - 14:54
    is my A and this one is my
    B. So if a is true and B
  • 14:54 - 15:01
    is true, the if then returns are
    true if A is true, but B is
  • 15:01 - 15:04
    force that if done returns a
  • 15:04 - 15:09
    force. If both of them are
    true, if then returns a true,
  • 15:09 - 15:13
    and if both of them are force,
    which is the last guess in here
  • 15:13 - 15:14
    if then again returns true.
  • 15:18 - 15:21
    In the next video we will
    look at few more simple
  • 15:21 - 15:24
    examples, but for now I have
    a couple of practice
  • 15:24 - 15:28
    questions for you. You will
    find the answers to these
  • 15:28 - 15:30
    questions at the end of the
    video.
  • 15:32 - 15:33
    So these are the practice
    questions.
  • 15:39 - 15:41
    And here are the answers.
Title:
https:/.../emt171080p.mp4
Video Language:
English
Duration:
16:21

English subtitles

Revisions