Tribhuwan University

Institute of Science and Technology

2078

Bachelor Level / First Year / Second Semester / Science

Bachelors in Information Technology (BIT152)

(Discrete Structure)

Full Marks: 60

Pass Marks: 24

Time: 3 Hours

Candidates are required to give their answers in their own words as for as practicable.

The figures in the margin indicate full marks.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
Explain direct proof, indirect proof, and proof by contradiction. Use direct proof to show that 'If n is an odd integer, then n' is an odd integer'. Also use indirect proof to show that 'If n is an integer and n' then n is odd'.[10]

Proof Methods: Direct Proof, Indirect Proof, and Proof by Contradiction

A. Definitions of Proof Methods

i. Direct Proof

Direct Proof is a method where we assume the hypothesis pp is true and use logical steps, definitions, and theorems to directly show that the conclusion qq is true.

  • Structure: Assume pp → use logical reasoning → conclude qq
  • We move forward from hypothesis to conclusion in a straight path

ii. Indirect Proof (Proof by Contrapositive)

Indirect Proof is a method where instead of proving pqp \rightarrow q, we prove its contrapositive ¬q¬p\neg q \rightarrow \neg p, which is logically equivalent.

  • Structure: Assume ¬q\neg q → use logical reasoning → conclude ¬p\neg p
  • Since pq¬q¬pp \rightarrow q \equiv \neg q \rightarrow \neg p, proving the contrapositive proves the original statement

iii. Proof by Contradiction

Proof by Contradiction is a method where we assume the negation of what we want to prove, and then show that this assumption leads to a logical contradiction.

  • Structure: Assume ¬(pq)\neg(p \rightarrow q), i.e., assume p¬qp \land \neg q → derive a contradiction → conclude pqp \rightarrow q must be true
  • Also called Reductio ad Absurdum

B. Direct Proof: "If nn is an odd integer, then n2n^2 is an odd integer"

Proof:

  • Assume nn is an odd integer
  • By definition of odd, n=2k+1n = 2k + 1 for some integer kk
  • Now compute n2n^2:

n2=(2k+1)2=4k2+4k+1n^2 = (2k + 1)^2 = 4k^2 + 4k + 1

n2=2(2k2+2k)+1n^2 = 2(2k^2 + 2k) + 1

  • Let m=2k2+2km = 2k^2 + 2k, which is an integer
  • So n2=2m+1n^2 = 2m + 1, which is of the form of an odd integer

Conclusion: Therefore, n2n^2 is odd. \blacksquare


C. Indirect Proof: "If nn is an integer and n2n^2 is odd, then nn is odd"

Proof (by Contrapositive):

  • The contrapositive of the statement is: "If nn is not odd (i.e., nn is even), then n2n^2 is not odd (i.e., n2n^2 is even)"
  • Assume nn is even
  • By definition of even, n=2kn = 2k for some integer kk
  • Now compute n2n^2:

n2=(2k)2=4k2=2(2k2)n^2 = (2k)^2 = 4k^2 = 2(2k^2)

  • Let m=2k2m = 2k^2, which is an integer
  • So n2=2mn^2 = 2m, which is of the form of an even integer
  • Therefore, n2n^2 is even (not odd)

Conclusion: Since the contrapositive is true, the original statement "If n2n^2 is odd, then nn is odd" is also true. \blacksquare


Summary Table

Method What we assume What we show
Direct Proof pp is true qq is true
Indirect Proof ¬q\neg q is true ¬p\neg p is true
Contradiction p¬qp \land \neg q A contradiction arises
2.
What is linear nonhomogeneous recurrence relation of degree k with constant coefficients? Find all the solutions of the recurrence relation a, 4a+n. Also find the solution of the relation with initial condition a, 1.[10]
3.
Define spanning tree and minimum spanning tree with suitable example. Use Kruskal's algorithms to find minimum spanning tree in the given graph
question image
[10]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
What is tautology? Show (pq)(pq)(p \land q) \rightarrow (p \lor q) is a tautology. [5]
5.
Define cartesian product. Find A3 for the set A = (a, b, c). [5]
6.
How can you represent relations using matrices? Suppose that A={1,2,3}A = \{1,\,2,\,3\} and B={1,2}B = \{1,\,2\}. Let RR be the relation from AA to BB containing (a,b)(a,\,b) if aAa \in A, bBb \in B, and a>ba > b. What matrix representing RR if a1=1a_1 = 1, a2=2a_2 = 2, a3=3a_3 = 3, and b1=1b_1 = 1 and b2=2b_2 = 2? [5]
7.
Use mathematical induction to show that the sum of first n positive integers is n(n+1)/2. [5]
8.
What is congruent modulo? Determine whether 20 is congruent to 8 modulo 6 and 25 is congruent to 17 modulo 5. [5]
9.
Explain trial division with example? Using trial division, show that 101 is prime. [5]
10.
Explain product rule. How many strings are there of four lowercase letters that have the letter x in them? [5]
11.
What is graph? Explain simple graph and pseudograph with example. [5]
12.
What is Euler path? Compare it with Hamilton path. [5]