Cost-based query optimization

What is meant by cost-based query optimization?