Creating a Class Schedule
Imagine you’re trying to decide what classes you should sign up for for the fall semester. You can choose from the following classes: Algorithms, Artificial Intelligence, Calculus, Chemistry, Data Structures, Discrete Math, History, Literature, Physics, and Volleyball. You can only take eighteen credits. Additionally, you weigh each of these classes based on their difficulty, usefulness to you, and your own interest in them. You’ve rated each class in each of these categories from 1 to 10. To keep things simple, you weigh each of these criteria evenly.
Your goal is to make the best possible schedule according to these criteria that also meets your credit-hour limitation. You’ve already assigned weights to each class ...
Get Genetic Algorithms in Elixir now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.