NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

Read offline with no ads or diagram watermarks!
The TCP/IP Guide

Google
Web TCP/IP Guide






Table Of Contents  The TCP/IP Guide
 9  Networking Fundamentals
      9  Backgrounder: Data Representation and the Mathematics of Computing

Previous Topic/Section
Binary, Octal and Hexadecimal Arithmetic
Previous Page
Pages in Current Topic/Section
12
3
Next Page
Bit Masking (Setting, Clearing and Inverting) Using Boolean Logical Functions
Next Topic/Section

Boolean Logic and Logical Functions
(Page 3 of 3)

Combining Boolean Functions to Create Boolean Expressions

The functions described above can also be combined in arbitrary ways to produce more complex logical conditions. Boolean logic expressions are used in many different contexts in the computing field. A common place that most people use them is in a World Wide Web search engine. For example, if you enter “cheese AND (cheddar OR swiss) NOT wisconsin” into a search engine, the program will return pages that contain the word “cheese” that also contain the word “cheddar” or “swiss” (or both), but that do not contain the word “wisconsin”.

(Sorry, Wisconsinite cheese lovers—but I live in Vermont! J)

Boolean functions are the building blocks of much of the circuitry within computer hardware. The functions are implemented as tiny gates that are designed to allow electrical energy to flow to the output only based on certain combinations of inputs as described by the truth tables for functions like NOT, AND, OR and others. In networking, boolean logic is important for describing certain conditions and functions in the operation of networks. Boolean functions are also very important because they are used to set, clear and mask strings of binary digits, which we will explore in the next topic.

Key Concept: Boolean logic is a system that uses boolean functions to produce outputs based on varying conditions in their input data. The most common boolean functions are NOT, which produces as output the opposite of its input; AND, which is true (1) only if all of its inputs are true (1); OR, which is true if any of its inputs is true; and XOR, which is true only if exactly one of its inputs is true (or put another way, if the inputs are different). These functions can be used in boolean logic expressions that represent conditional states for making decisions, and can also be used for bit manipulation.



Previous Topic/Section
Binary, Octal and Hexadecimal Arithmetic
Previous Page
Pages in Current Topic/Section
12
3
Next Page
Bit Masking (Setting, Clearing and Inverting) Using Boolean Logical Functions
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.