Professional Documents
Culture Documents
10. Prove that a simple graph with vertices and components can have at most
edges.
Tutorial – 2
Subject Code: CS-106
Subject: DISCRETE STRUCTURES: Graph Theory (2) Date: 9 January 2015
1. Given the set of cubes represented by the graph below, is it possible to stack all four
cubes into a column such that each side shows only one color?
4. Draw a graph in which an Euler line is also a Hamiltonian circuit. What can you say
about such a graph in general?
5. Is it possible, starting from any of the squares of the chessboard, to move a
knight such that it occupies every square exactly once and returns to the initial
position? If so, give one such tour.
6. Prove that a graph with vertices always has a Hamiltonian path if the sum of the
degrees of every pair of vertices in satisfies the condition
6. Prove that every tree is a bipartite graph. Which trees are complete bipartite
graphs.
7. Draw all the spanning trees of the graphs:
8.
9. The degrees of the vertices of a certain tree of order are and . If has
exactly three vertices of degree , how many pendant vertices does it have?
10. Prove that every forest of order with components has many edges.
11. Give an example of a tree of order containing six vertices of degree 1 and two
vertices of degree .
12. A tree with pendant vertices has an equal number of vertices of degree , ,
and and not vertices of degree greater than . What is the order to ?
Tutorial – 4
Subject Code: CS-106
Subject: DISCRETE STRUCTURES: Number Theory (1) Date: 5 February 2015
7. Implement a polynomial version of the Euclid algorithm for finding . Assume that
the coefficients are from the field where is a prime.
8. Modify your program for the of two polynomials so it computes the inverse of a
polynomial modulo .
10. Find the smallest nonnegative solution of each of the following systems:
a)
b)
c)
Tutorial – 5
Subject Code: CS-106
Subject: DISCRETE STRUCTURES
3. In show that there are four elements satisfying and three elements
satisfying .
10. Let denote the integers relatively prime to under multiplication modulo . Show
that is not a cyclic group whereas is a cyclic group.
Tutorial – 6
Subject Code: CS-106
Subject: DISCRETE STRUCTURES
2. Let where
. Prove that is a group. Is it abelian? What is the order of this
group?
8. Let Compute
and under the assumption that the coefficients are from where
.
Tutorial – 7
Subject Code: CS-106
Subject: DISCRETE STRUCTURES
1. Let be a symmetric and transitive relation on a set . Show that if for every
there exists such that , then is an equivalence relation. Is the
conclusion true if symmetric is replaced by reflexive?
2. Define a relation on the set of all integers if and only if mod
. Show that is an equivalence relation on . Determine the number of
equivalence classes.
3. Verify that the commutative, associative and distributive laws hold for addition and
multiplication on .
4. Consider the relation on the integers defined by iff there exists an
integer such that (i.e., divides ).
(a) Prove that is a partial ordering on the set of integers .
(b) Prove that is not a lattice ordering on .
(c) What are the minimal elements of the set with respect to ?
5. Prove that if is a partial ordering on a set , then for , there cannot be a
sequence of distinct elements of such that .
6. Let . Let be the relation on with adjacency matrix
By using Warshall’s algorithm find the transitive closure of the following relation.