A Composition Algorithm Based on Hot Spot Analysis