Description
CENG223
Discrete Computational Structures
Homework 5
Question 1
What is the largest possible number of vertices in a graph with 23 edges all vertices having degree at least 4?
Question 2
Suppose G is a graph with n vertices, each of which has degree . Prove that G contains a Hamiltonian path.
Hint: Dirac’s theorem
Question 3
Let A be the adjacency matrix of a bipartite graph. Prove that the diagonal entries of A37 are equal to 0.
Question 4
Show your work for both algorithms as in the textbook, i.e. give the table with columns Choice-Edge-Weight, displaying your choice at each step. Draw the minimum spanning tree you obtained.
a. Use Kruskal’s algorithm to find a minimum spanning tree for the given graph.
b. Use Prim’s algorithm to find a minimum spanning tree for the given graph.
1
1 Regulations
1. You have to write your answers to the provided sections of the template answer file given. Other than that, you cannot change the provided template answer file. If a latex structure you want to use cannot be compiled with the included packages in the template file, that means you should not use it.
2. Do not write any other stuff, e.g. question definitions, to answers’ sections. Only write your answers. Otherwise, you will get 0 from that question.
3. Late Submission: Not allowed
5. Newsgroup: You must follow the newsgroup (news.ceng.metu.edu.tr) for discussions and possible updates on a daily basis.
2 Submission
Submission will be done via COW. Download the given template file, “hw5.tex”, when you finish your exam upload the .tex file with the same name to COW.
Note: You cannot submit any other files. Don’t forget to make sure your .tex file is successfully compiled in Inek machines using the command below.
$ pdflatex hw5.tex
2




Reviews
There are no reviews yet.