Every semester, the CS faculty has to figure out who is going to teach what.
We try to assign faculty to teach all the courses (one course per professor, one professor per course), but if some important course would go untaught, we bring in a grad student or local researcher to help out, or have someone do double duty.
So, it's important to do as good a job as possible at assigning faculty to courses on the first try.