Effective on-line coloring ofP5-free graphs

An on-line algorithm is given that colors anyP5-free graph withf(ω) colors, wheref is a function of the clique number ω of the graph.