Docsity

Advanced Algorithms - Assignment 3 Questions | CS 5050, Assignments of Algorithms and Programming

Toggle sidebar
bg1
Assignment 3 (100 points)
Due Time: 11:59 pm on Wednesday (Mar 5)
R -6.6 (25 points)
C-6.9 (25 points) (see paragraph 1 of page 293 for the definition of free trees)
Question A) (25 points)
Given that
If A is a friend of B then, B is a friend of A.
For all A, A is not a friend of A.
Prove that, in any group of n >= 2 people, there are at least two people with the same
number of friends in the group.
(Hints: Let v be a vertex of a undirected graph G that has no self loops and no parallel
edges. Then deg(v) must be in the range of [0,n-1], where n is the number of vertices in
G.)
Question B) (25 points)
Prove that every undirected graph has an even number of odd degree vertices.

Partial preview of the text

Download Advanced Algorithms - Assignment 3 Questions | CS 5050 and more Assignments Algorithms and Programming in PDF only on Docsity!

Assignment 3 (100 points)

Due Time: 11:59 pm on Wednesday (Mar 5) R -6.6 (25 points) C-6.9 (25 points) (see paragraph 1 of page 293 for the definition of free trees) Question A) (25 points) Given that  If A is a friend of B then, B is a friend of A.  For all A, A is not a friend of A. Prove that, in any group of n > = 2 people, there are at least two people with the same number of friends in the group. (Hints: Let v be a vertex of a undirected graph G that has no self loops and no parallel edges. Then deg(v) must be in the range of [0,n-1], where n is the number of vertices in G.) Question B) (25 points) Prove that every undirected graph has an even number of odd degree vertices.