Doodle_EN

Doodle
2026
Programming Exercise

Summer Semester 2026 – Practical Computer Science II, University of Bremen
Programming in Java

Students are to be assigned to tutorials. To do so, they indicate which time slots they are available for, and based on this information, they are assigned to the tutorials.

In this exercise, an assignment is calculated using the principle of backtracking, allowing the preferences of all students to be taken into account. If no such combination is possible, the program returns the result ‘-1’.

All students specify their availability.
In this case, 10 students each provide availability data for 5 tutorials (true = available, false = unavailable)

Each tutorial has a capacity limit. In this case, there are 5 tutorials with 2 slots each.

A feasible assignment is then calculated, in which every student is assigned to a tutorial.

Programming Step: The result for each student.

Programming Step: The result for each tutorial.

Programming Step: The assignment for each student with names.

Programming Step: Display the assignment for each tutorial, including student names.

©Nanako oizumi

Information icon

Wir benötigen Ihre Zustimmung zum Laden der Übersetzungen

Wir nutzen einen Drittanbieter-Service, um den Inhalt der Website zu übersetzen, der möglicherweise Daten über Ihre Aktivitäten sammelt. Bitte überprüfen Sie die Details in der Datenschutzerklärung und akzeptieren Sie den Dienst, um die Übersetzungen zu sehen.