File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 591
591
592
592
## Scheduling
593
593
* [ First Come First Served] ( https://github.com/TheAlgorithms/Python/blob/master/scheduling/first_come_first_served.py )
594
- * [ Shortest Job First Algorithm] ( https://github.com/TheAlgorithms/Python/blob/master/scheduling/shortest_job_first_algorithm.py )
594
+ * [ Round Robin] ( https://github.com/TheAlgorithms/Python/blob/master/scheduling/round_robin.py )
595
+ * [ Shortest Job First] ( https://github.com/TheAlgorithms/Python/blob/master/scheduling/shortest_job_first.py )
595
596
596
597
## Searches
597
598
* [ Binary Search] ( https://github.com/TheAlgorithms/Python/blob/master/searches/binary_search.py )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ def calculate_waiting_times(burst_times: List[int]) -> List[int]:
23
23
rem_burst_times = list (burst_times )
24
24
waiting_times = [0 ] * len (burst_times )
25
25
t = 0
26
- while 1 :
26
+ while True :
27
27
done = True
28
28
for i , burst_time in enumerate (burst_times ):
29
29
if rem_burst_times [i ] > 0 :
@@ -33,7 +33,7 @@ def calculate_waiting_times(burst_times: List[int]) -> List[int]:
33
33
rem_burst_times [i ] -= quantum
34
34
else :
35
35
t += rem_burst_times [i ]
36
- waiting_times [i ] = t - burst_times [ i ]
36
+ waiting_times [i ] = t - burst_time
37
37
rem_burst_times [i ] = 0
38
38
if done is True :
39
39
return waiting_times
File renamed without changes.
You can’t perform that action at this time.
0 commit comments