Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Suppose a connected graph G has a cycle C of length n. Prove that in any breadth-first search tree of G, any two vertices in C are at most $\lfloor\frac{n}{2}\rfloor$ levels apart.

No idea how to work this one. some hints on where to start will be appreciated!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The level of a vertex in such a tree is the number edges in a shortest path to the root. Any two vertices in $C$ are at most $\lfloor \tfrac{n}{2} \rfloor$ edges apart. So traveling from one vertex in $C$ via another one in $C$ to the root...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.