{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# 09 - Spring 2010 CS530 Analysis of Algorithms Homework 9...

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

Spring 2010 CS530 – Analysis of Algorithms Homework 9 H OMEWORK 9, DUE A PRIL 21 You must prove your answer to every question. Problems with a ( * ) in place of a score may be a little too advanced, or too challenging to most students, so I do not assign a score to them. But I will still note if you solve them. Problem 1. (15pts) Consider the following problem P 2 : given a graph G decide whether it has a path of length n - 1, where n is the size of the graph. Show that if there is a polynomial algorithm A to solve P 2 then there is a polynomial algorithm to solve the Hamiltonian circuit problem. [ Hint: Use algorithm A repeatedly, after deleting various edges of G . For example, to find out whether there is a path of length n - 1 ending in a given edge at a given point. ] Solution. Take points u , v , connected by an edge e , and another edge f adja- cent to u and yet another edge g adjacent to v (they should not be between u and v ). Deleting all edges from G that are adjacent to u or v but are different from f , g

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