Professional Documents
Culture Documents
Institute of Technology
Department: Computer Science & Engineering
6. Determine the order |V| of the graph G=(V,E) in the following cases
a. G is cubic graph with 9 edges
b. G is regular graph with 15 edges
c. G has 10 edges with 2 vertices of degree 4 and all other of degree 3.
10. Let T=(V,E) be a complete m-ary tree with |V|=n. If T has L leaves and I internal
vertices, then prove the following:
a. n=m.i+1
b. l=(m-1)i+1
c. i=(l-1)/(m-1) = (n-1)/m
11. Show that a tree with n vertices has n-1 edges.
12. Determine the BFS and DFS traversals on the following Graph:
13. Determine the order of vertices when they are visited in Inorder, Preorder and
Postorder traversal for the following:
14. Apply Merge sort on the following sequence of numbers: 2,3,5,7,9,12,16,19,24,27
15. Evaluate the following expression: +4/*23+1-9^23
16. Suppose that a tree T has two vertices of degree 2, four vertices of degree 3 and three
vertices of degree 4. Find the number of pendant vertices in T.
17. Construct an optimal prefix code for the symbols a,o,q,u,y,z with frequencies
20,28,4,17,12,7 respectively
18. Construct an optimal prefix code for “Road is good”
19. For the prefix code given below, decode the sequences
a)1001111101
b)10111100110001101
20. If F2=(V2,E2) is a forest with |V2|=62 and |E2=51|, how many trees determine F2?