2082 9

BIT152 ยท 2082 ยท 5 marks

Define Boolean and exponential function. Discuss about partial ordering. [2+3]

Define Boolean and exponential function. Discuss about partial ordering. [2+3]

Discrete StructureChapter 4: Functions and MappingsBoolean functions

Quick answer

It takes $n$ binary inputs (each either 0 or 1) and produces a single binary output (0 or 1). Boolean functions are expressed using Boolean operations: AND, OR, and NOT.

Boolean Function, Exponential Function, and Partial Ordering


1. Boolean Function (2 marks)

A Boolean function is a function of the form:

$$f: {0, 1}^n \rightarrow {0, 1}$$

Example:

$$f(x, y) = x \cdot y + \bar{x}$$

where inputs $x, y \in {0, 1}$ and output $f \in {0, 1}$.


2. Exponential Function (3 marks, shared with partial ordering below)

An exponential function is a function of the form:

$$f(x) = a^x, \quad a > 0, ; a \neq 1$$

where $a$ is the base (a positive real constant) and $x$ is the exponent (variable).

Key properties:

  • Domain: all real numbers $\mathbb{R}$
  • Range: $(0, \infty)$
  • $f(0) = 1$ for any base $a$
  • If $a > 1$: function is increasing (growth)
  • If $0 < a < 1$: function is decreasing (decay)

Example: $f(x) = 2^x$ is an exponential growth function.


3. Partial Ordering

Definition

A partial order is a binary relation $R$ on a set $A$ that satisfies the following three properties:

PropertyDefinition
Reflexivity$\forall a \in A: (a, a) \in R$
Antisymmetry$\forall a, b \in A: (a,b) \in R \text{ and } (b,a) \in R \Rightarrow a = b$
Transitivity$\forall a, b, c \in A: (a,b) \in R \text{ and } (b,c) \in R \Rightarrow (a,c) \in R$

A set $A$ together with a partial order $R$ is called a partially ordered set (POSET), denoted $(A, R)$.

Note: In a partial order, it is not necessary that every pair of elements be comparable. If some elements cannot be compared, the order is called partial (as opposed to a total/linear order).


Example 1: Divisibility on Natural Numbers

Let $A = {1, 2, 3, 6}$ and $R$ = "divides" ($a \mid b$).

  • Reflexive: $1|1,; 2|2,; 3|3,; 6|6$ โœ“
  • Antisymmetric: If $a|b$ and $b|a$, then $a = b$ โœ“
  • Transitive: $1|2$ and $2|6 \Rightarrow 1|6$ โœ“

So $(A, |)$ is a POSET.


Example 2: Subset Relation

Let $A = \mathcal{P}({1,2}) = {\emptyset, {1}, {2}, {1,2}}$ and $R$ = "$\subseteq$".

  • Reflexive: Every set is a subset of itself โœ“
  • Antisymmetric: $X \subseteq Y$ and $Y \subseteq X \Rightarrow X = Y$ โœ“
  • Transitive: $X \subseteq Y$ and $Y \subseteq Z \Rightarrow X \subseteq Z$ โœ“

So $(\mathcal{P}({1,2}), \subseteq)$ is a POSET.


Hasse Diagram

A partial order can be represented visually using a Hasse diagram, where:

  • Elements are nodes
  • If $a < b$ and no element lies between them, draw $b$ above $a$ with a line connecting them
{1,2}
 /  \
{1} {2}
 \  /
  {}

This is the Hasse diagram for $(\mathcal{P}({1,2}), \subseteq)$.


Summary

TermMeaning
POSETSet with a partial order relation
Comparable$a \leq b$ or $b \leq a$ holds
IncomparableNeither $a \leq b$ nor $b \leq a$
Total OrderEvery pair is comparable

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.