Exercises Videos Notes Multiple-choice questions

Related books

Matching Theory Modern Graph Theory Chromatic Graph Theory Graph Theory Algorithms Introduction to Algorithms Introduction to Graph Theory Algorithms Algorithm Design Graph Coloring Problems Suggest a Book
1

Linear time algorithms on trees

Level: unknown
 

posted Jun 08 '12

kintali gravatar image Shiva Kintali flag of United States
691 1 6 21
http://www.cs.princeton.e...

updated Jun 09 '12

Let $T(V,E)$ be a tree. Design linear time (i.e., $O(|V|)$ time) algorithms for the following problems :

  • Find an optimal vertex cover in $T$.

  • Find a maximum matching in $T$.

  • Find a maximum independent set in $T$.

Source: folklore
Printable version LaTeX source
delete flag offensive retag edit

Stats

Posted: Jun 08 '12

Seen: 61 times

Last updated: Jun 09 '12