Tribhuvan University

Institute of Science and Technology

2078

Bachelor Level / second-semester / Science

Computer Science and Information Technology( CSC160 )

Discrete Structure

Full Marks: 60 + 20 + 20

Pass Marks: 24 + 8 + 8

Time: 3 Hours

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

The figures in the margin indicate full marks.

**Group A**

**Attempts any TWO questions**

1

Prove that for all integers x and y, if x^{2} + y^{2} is even then x + y is even. Using induction prove that 1^{3} + 2^{3} + 3^{3} + ………………. + n^{3} = n^{2}(n + 1)^{2} / 4

2

State division and remainder algorithm. Suppose that the domain of the propositional function P(x) consists of the integer 0, 1, 2, 3 and 4. Write out each of the following propositions using disjunctions, conjunctions and negations.

- ∃x P(x)
- ∀x P(x)
- ∃x ¬P(x)
- ∀x ¬P(x)
- ¬∃x P(x)
- ¬∀x P(x)

3

List all the necessary conditions for the graph to be isomorphic with an example. Find the maximal flow from the node SOURCE to SINK in the following network flow.

**Group B**

**Attempts any EIGHT questions**

4

What is the coefficient of x^{2} in (1 + x)^{11}? Describe how relation can be represented using matrix.

5

Solve the recurrence relation a_{n} = 5a_{n-1} – 6a_{n-2} with initial conditions a_{0} = 1, a_{1} = 4.

6

Prove that if n is positive integer, then n is odd if and only if 5n + 6 is odd.

7

Define preposition. Consider the argument “John, a student in this class knows how to write program in C. Everyone who knows how to write program in C can get a high paying job. Therefore, someone in this class can get high paying job”. Now, explain which rules of inferences are sed for each step.

8

Show that if there are 30 students in a class, then at least two have same names that begin with the same letter. Explain the pascal’s triangle.

9

Illustrate the Dijkstra’s Algorithm to find the shortest path from source node to destination node with an example.

10

What are the significance of Minimum Spanning Tree? Describe how Kruskal’s algorithm can be used to find the MST.

11

Define zero-one matrix. Explain the types of function.

12

Represent any three set operations using Venn-diagram. Give a recursive defined function to find the factorial of any given positive integer.

HAMROCSIT.COM