Skip to content

Commit 83df529

Browse files
tianyizheng02github-actions
authored andcommitted
Speed up dijkstra_bankers_algorithm.py (TheAlgorithms#10861)
* updating DIRECTORY.md * Rename dijkstra_bankers_algorithm.py * Remove sleep() call * updating DIRECTORY.md --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent dfbb2d0 commit 83df529

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: DIRECTORY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@
774774
## Other
775775
* [Activity Selection](other/activity_selection.py)
776776
* [Alternative List Arrange](other/alternative_list_arrange.py)
777+
* [Bankers Algorithm](other/bankers_algorithm.py)
777778
* [Davis Putnam Logemann Loveland](other/davis_putnam_logemann_loveland.py)
778-
* [Dijkstra Bankers Algorithm](other/dijkstra_bankers_algorithm.py)
779779
* [Doomsday](other/doomsday.py)
780780
* [Fischer Yates Shuffle](other/fischer_yates_shuffle.py)
781781
* [Gauss Easter](other/gauss_easter.py)

Diff for: other/dijkstra_bankers_algorithm.py renamed to other/bankers_algorithm.py

-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
from __future__ import annotations
1919

20-
import time
21-
2220
import numpy as np
2321

2422
test_claim_vector = [8, 5, 9, 7]
@@ -216,7 +214,6 @@ def __pretty_data(self):
216214
"Initial Available Resources: "
217215
+ " ".join(str(x) for x in self.__available_resources())
218216
)
219-
time.sleep(1)
220217

221218

222219
if __name__ == "__main__":

0 commit comments

Comments
 (0)