CSE331 HW3

# CSE331 HW3 - CSE 331 Introduction to Algorithm Analysis and...

This preview shows pages 1–2. Sign up to view the full content.

CSE 331: Introduction to Algorithm Analysis and Design Fall 2011 Homework 3 Due Friday, September 30, 2011 by 1:15pm in class IMPORTANT: Please submit each problem separately, i.e. each problem should begin on a new page and only the pages for one problem should be stapled together. Failure to do so might result in some problem(s) not being graded. For general homework policies and our suggestions, please see the policy document. For this homework, you can assume that addition, subtraction, multiplication and division of two numbers can be done in O (1) time. (Side question: Is this assumption justified?) No collaboration is allowed on the first problem. 1. (40 points ) ( You must work on this problem on your own: NO collaboration is allowed ) A forest with c components is a graph that is the union of c disjoint trees. Note that a tree is a forest with 1 component. Prove that an n -vertex forest with c components has n - c edges. (Recall that we have proved the statement above for c = 1 in class.) ( Hint : The above can be proven by induction.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern