← 回題庫

卷別

資料結構與演算法

計算

國立中興大學 2025 · 考試 · 第 21 題

考科演算法

(5%) You are given the following set of activities, where each activity has a start time and an end time. Your task is to select the maximum number of non-overlapping activities that can be scheduled.

ActivityStart TimeEnd Time
A13
B25
C46
D68
E57
F89

Using a greedy algorithm, compute the maximum number of non-overlapping activities that can be selected.

標準解析

AI 已複查