Skip to content

Commit 4db4786

Browse files
committed
Improve class documentation
1 parent aae1814 commit 4db4786

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main/java/com/thealgorithms/scheduling/HighestResponseRatioNextScheduling.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
import java.util.Arrays;
44

55
/**
6-
* The HighestResponseRatioNext class implements the HRRN scheduling algorithm.
7-
* It calculates the Turn Around Time (TAT) and Waiting Time (WT) for a set of processes.
6+
* The HighestResponseRatioNextScheduling class implements
7+
* the Highest Response Ratio Next (HRRN) scheduling algorithm.
8+
* HRRN is a non-preemptive scheduling algorithm that
9+
* selects the process with the highest response ratio for execution.
10+
* The response ratio is calculated as (waiting time + burst time) / burst time.
11+
* This algorithm aims to reduce the average waiting time
12+
* and improve overall system performance by balancing short and long processes.
813
*/
914
public class HighestResponseRatioNextScheduling {
1015

0 commit comments

Comments
 (0)