mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Speed up dijkstra_bankers_algorithm.py
(#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>
This commit is contained in:
parent
69f7f3208e
commit
579250363d
|
@ -774,8 +774,8 @@
|
|||
## Other
|
||||
* [Activity Selection](other/activity_selection.py)
|
||||
* [Alternative List Arrange](other/alternative_list_arrange.py)
|
||||
* [Bankers Algorithm](other/bankers_algorithm.py)
|
||||
* [Davis Putnam Logemann Loveland](other/davis_putnam_logemann_loveland.py)
|
||||
* [Dijkstra Bankers Algorithm](other/dijkstra_bankers_algorithm.py)
|
||||
* [Doomsday](other/doomsday.py)
|
||||
* [Fischer Yates Shuffle](other/fischer_yates_shuffle.py)
|
||||
* [Gauss Easter](other/gauss_easter.py)
|
||||
|
|
|
@ -17,8 +17,6 @@ before deciding whether allocation should be allowed to continue.
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import time
|
||||
|
||||
import numpy as np
|
||||
|
||||
test_claim_vector = [8, 5, 9, 7]
|
||||
|
@ -216,7 +214,6 @@ class BankersAlgorithm:
|
|||
"Initial Available Resources: "
|
||||
+ " ".join(str(x) for x in self.__available_resources())
|
||||
)
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
Loading…
Reference in New Issue
Block a user