Crew scheduling is an important factor in airline cost management as crew costs are typically the second largest expense after fuel. Better crew scheduling can reduce these controllable costs. When scheduling crews, airlines must create pairings of flight legs assigned to individual crews, starting and ending at the same crew base. Crews are then assigned to these pairings while considering qualifications, pre-assigned activities, and minimizing costs without reducing quality of life. Different crew scheduling methods like assigned lines, bid lines, and preferential bidding involve tradeoffs between efficiency and job satisfaction. Constraints like flight times, crew duties and rest periods, qualifications, and seniority must also be considered for an optimal schedule.