__________     __ __     __  _______    ________
  / ____/ __ \   / // /    / / / /  _/ |  / / ____/
 / / __/ / / /  / // /_   / /_/ // / | | / / __/
/ /_/ / /_/ /  /__  __/  / __  // /  | |/ / /___
\____/\____/     /_/    /_/ /_/___/  |___/_____/

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Mathematics - Discrete Mathematics - Boolean Algebra

BY: @drifter1 | CREATED: May 13, 2022, 12:28 p.m. | VOTES: 51 | PAYOUT: $6.26 | [ VOTE ]

[IMAGE: https://upload.wikimedia.org/wikipedia/commons/4/4a/Truth_table_for_AND%2C_OR%2C_and_NOT.png]

[Image 1]

Introduction

Hey it's a me again @drifter1!

Today we continue with Mathematics, and more specifically the branch of "Discrete Mathematics", in order to get into Boolean Algebra.

This will be a small introduction to the topic. For more information I highly suggest checking out Logic Design in general.

So, without further ado, let's get straight into it!

Boolean Algebra

Boolean algebra is a branch of mathematics, which studies the algebra of 0 and 1, or false and true. It finds many applications in computer science, with logical circuits being the most direct application, but it's also useful in programming / coding in general.

Boolean Operations

The three main boolean operations are:

These are the same exact operations that were covered in the article about Propositional Logic.

Notation

In Boolean algebra the AND and OR operations are commonly symbolized using multiplication and addition respectively, meaning that AND uses "*" or even nothing, and OR uses "+". Using the symbols ∧ and ∨ is of course also valid. Lastly, negation is usually represented by an apostrophe (') or an overline (-) instead of an tilde (~) in front of the respective boolean variable.

Boolean Properties

Boolean operations satisfy the properties shown in the table below.

[IMAGE: https://i.ibb.co/71kZKMP/boolean-properties.jpg]

Boolean algebra is basically a complemented, distributive lattice, with boolean operations AND (∧ or *), OR (∨ or +) and a unique complement or unary operation defined for each element. The elements are only two: 0 and 1.

Boolean Expressions

Boolean expressions are expressions defined over boolean Algebra. Each element in such an expression is an boolean expression itself (i.e. 0 and 1 are boolean expressions on their own).

For example:

[IMAGE: https://quicklatex.com/cache3/f2/ql_a6c9ab8c71c51ab1a83e6474a55261f2_l3.png]

is a valid boolean expressions with boolean variables x and y.

Such expressions are evaluated by assigning either 0 or 1 to each boolean variable, yielding a final result of 0 or 1.

Equivalent Expressions

Of course, there can be multiple boolean expressions giving the same result for the same assignment of values. These so called equivalent expressions have the same truth table.

Canonical Forms

It's common to write boolean expressions in either disjunctive or conjunctive normal form, and so basically as a sum of products (SOP) or a product of sums (POS). In a SOP, the product terms are known as min-terms (resulting in 1), whilst in a POS the sum terms are called max-terms (resulting in 0).

RESOURCES:

References

  1. https://www.javatpoint.com/discrete-mathematics-tutorial
  2. https://brilliant.org/wiki/discrete-mathematics/

Images

  1. https://commons.wikimedia.org/wiki/File:Truth_table_for_AND,_OR,_and_NOT.png

Mathematical equations used in this article, have been generated using quicklatex.

Block diagrams and other visualizations were made using draw.io.

Previous articles of the series

Final words | Next up

And this is actually it for today's post!

Not sure about the next article's topic yet.

See ya!

[IMAGE: https://steemitimages.com/0x0/https://media.giphy.com/media/ybITzMzIyabIs/giphy.gif]

Keep on drifting!

Posted with STEMGeeks

TAGS: [ #mathematics ] [ #science ] [ #education ] [ #boolean ] [ #algebra ] [ #operations ] [ #properties ] [ #laws ] [ #expressions ] [ #stem ]

Replies

@luizeba | May 13, 2022, 2:40 p.m. | Votes: 1 | [ VOTE ]

!1UP

@curation-cartel | May 13, 2022, 2:46 p.m. | Votes: 1 | [ VOTE ]

[IMAGE: https://files.peakd.com/file/peakd-hive/curation-cartel/23wgDhXHXhDmLCUp4RXCi4QwSwg2eCBXYV3b8uBMLvQ7BDWDG4eFSyWTp58qTjfu5ULQD.png] |
You have received a 1UP from @luizeba! The following @oneup-cartel family members will soon upvote your post: @stem-curator And they will bring !PIZZA 🍕
-|-

Learn more about our delegation service to earn daily rewards. Join the family on Discord.

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>