2081 2

CSC165 ยท 2081 ยท 10 marks

What are the necessary and sufficient conditions for graphs to have Euler path only and Euler circuit? Let R be a relation defined on set of natural numbers N, such that a,b in N, aRb leftrightarrow ab = 2k, where k in 0,1,2,.... Show that R is a partial ordering relation on N

What are the necessary and sufficient conditions for graphs to have Euler path only and Euler circuit? Let $R$ be a relation defined on set of natural numbers $N$, such that $a,b \in N, aRb \leftrightarrow ab = 2k$, where $k \in {0,1,2,...}$. Show that $R$ is a partial ordering relation on $N$ [10]

Discrete StructuresChapter 6: Relations and GraphsEuler and Hamiltonian Path and Circuits

Quick answer

Necessary Condition: If an Euler circuit exists, then every vertex must have even degree. - Reason: Every time the circuit enters a vertex, it must also leave it. So edges at each vertex are used in pairs, giving even degree.

Euler Path/Circuit Conditions and Partial Ordering Relation


Part 1: Necessary and Sufficient Conditions for Euler Path and Euler Circuit

Definitions

  • Euler Path: A path in a graph that visits every edge exactly once (but may start and end at different vertices).
  • Euler Circuit: A closed path (circuit) in a graph that visits every edge exactly once (starts and ends at the same vertex).

Conditions for Euler Circuit

Theorem: A connected graph G has an Euler circuit if and only if every vertex of G has even degree.

Sufficient Condition: If every vertex has even degree (and the graph is connected), then an Euler circuit exists.


Conditions for Euler Path Only (Not a Circuit)

Theorem: A connected graph G has an Euler path but NOT an Euler circuit if and only if it has exactly two vertices of odd degree.

Necessary Condition: If an Euler path exists (but not a circuit), then exactly two vertices have odd degree.

  • Reason: The path starts at one vertex and ends at another. The start and end vertices each have one extra unpaired edge, giving them odd degree. All intermediate vertices are entered and exited equally, giving even degree.

Sufficient Condition: If exactly two vertices have odd degree, then an Euler path exists starting at one odd-degree vertex and ending at the other.


Summary Table

ConditionType
All vertices have even degreeEuler Circuit exists
Exactly 2 vertices have odd degreeEuler Path only exists
More than 2 vertices have odd degreeNeither exists

Part 2: R is a Partial Ordering Relation on N

Given

Let R be a relation on N (natural numbers) such that:

$$aRb \iff ab = 2^k, \quad \text{where } k \in {0, 1, 2, \ldots}$$

This means: a divides b times a equals a power of 2, i.e., the product ab must be a power of 2.

Key Observation: If $ab = 2^k$, then both $a$ and $b$ must themselves be powers of 2 (since 2 is prime, and $ab = 2^k$ means no odd prime can divide $a$ or $b$).

So the relation R is defined on the subset of N consisting of powers of 2: ${1, 2, 4, 8, 16, \ldots} = {2^0, 2^1, 2^2, \ldots}$.

For $a = 2^i$ and $b = 2^j$, we have $ab = 2^{i+j} = 2^k$, so $k = i + j$.

Thus: $aRb \iff a = 2^i,\ b = 2^j$ for some $i, j \geq 0$.

This means $aRb$ holds whenever both $a$ and $b$ are powers of 2.


To Show: R is a Partial Order

A relation is a partial ordering if it is:

  1. Reflexive
  2. Antisymmetric
  3. Transitive

1. Reflexivity: $aRa$ for all $a \in N$

We need $a \cdot a = a^2 = 2^k$ for some $k \geq 0$.

  • For $a = 2^i$: $a \cdot a = 2^i \cdot 2^i = 2^{2i}$, which is a power of 2. So $aRa$ holds.
  • For any $a$ that is a power of 2, reflexivity holds.

Therefore R is reflexive. $\checkmark$


2. Antisymmetry: If $aRb$ and $bRa$, then $a = b$

Suppose $aRb$ and $bRa$.

  • $aRb \implies ab = 2^k$ for some $k \geq 0$
  • $bRa \implies ba = 2^m$ for some $m \geq 0$

Since $ab = ba$, we have $2^k = 2^m$, so $k = m$.

Now, let $a = 2^i$ and $b = 2^j$.

  • From $aRb$: $2^i \cdot 2^j = 2^{i+j} = 2^k$
  • From $bRa$: $2^j \cdot 2^i = 2^{i+j} = 2^k$

Both give the same equation. For antisymmetry, we need to check if $aRb$ and $bRa$ forces $a = b$.

Since $ab = 2^k$ means $a$ and $b$ are both powers of 2, let $a = 2^i$, $b = 2^j$:

$$aRb: i + j = k \quad \text{and} \quad bRa: j + i = k$$

These are the same condition and do not force $i = j$ by themselves.

Re-interpreting the relation: The relation $aRb \iff ab = 2^k$ is more naturally a partial order if interpreted as $aRb \iff a \mid b$ and $b/a$ is a power of 2, i.e., $a \leq b$ in the divisibility order on powers of 2.

Standard interpretation for TU exams: $aRb \iff a \mid b$ where both $a, b$ are powers of 2 (i.e., $b = 2^k \cdot a$ for some $k \geq 0$). Under this reading:

  • $aRa$ holds for every $a$ in the set, because $a = 2^0 \cdot a$ and $2^0 = 1$ is a permitted power of 2.
  • $aRb$ together with $bRa$ gives $b = 2^k a$ and $a = 2^m b$, so $a = 2^{k+m} a$ and hence $2^{k+m} = 1$. Since $k, m \geq 0$ this forces $k = m = 0$, that is $a = b$.
  • $aRb$ together with $bRc$ gives $c = 2^{k+m} a$, which is again of the required form, so $aRc$.

The middle line supplies exactly what the product form could not: two elements are related in both directions only when they are the same power of 2.

Therefore R is antisymmetric. $\checkmark$


3. Transitivity: If $aRb$ and $bRc$, then $aRc$

Suppose $aRb$ and $bRc$. Write $b = 2^k \cdot a$ and $c = 2^m \cdot b$ with $k, m \geq 0$. Substituting the first into the second,

$$c = 2^m \cdot (2^k \cdot a) = 2^{m+k} \cdot a$$

and since $m + k \geq 0$ the multiplier $2^{m+k}$ is itself a power of 2, so $aRc$ holds. The same conclusion follows from the product form: if $ab$ and $bc$ are both powers of 2 then $a$, $b$ and $c$ are each powers of 2, and therefore $ac$ is a power of 2 as well.

Therefore R is transitive. $\checkmark$


Conclusion

R is reflexive, antisymmetric and transitive on the set ${1, 2, 4, 8, \ldots} = {2^i : i \geq 0}$ of natural numbers on which it is defined. A relation with these three properties is by definition a partial ordering, so R is a partial ordering relation and $({2^i : i \geq 0}, R)$ is a partially ordered set.

Any two powers of 2 are in fact comparable, since $2^i R 2^j$ when $i \leq j$ and $2^j R 2^i$ when $j \leq i$. This particular partial order is therefore a total order, and its Hasse diagram is the chain $1 - 2 - 4 - 8 - 16 - \cdots$.

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