This repository contains a Java implementation of the Lecture Scheduling problem, solved using a Greedy Algorithm.
Given a list of lectures with start times, schedule them in such a way that:
- Lectures are arranged chronologically.
- (Optional extension) You can also maximize the number of non-overlapping lectures.
The core of this solution is a Greedy Strategy:
- Sort the lectures by their
start_H(start hour) andstart_M(start minute). - Print the sorted lectures.
- (Optional enhancement) Extend to classic greedy scheduling by sorting based on end times to select the maximum number of non-overlapping lectures.
Created by Ali Razavi
π GitHub: AliRazaviJ