MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __available_resources

Method __available_resources

other/bankers_algorithm.py:68–74  ·  view source on GitHub ↗

Check for available resources in line with each resource in the claim vector

(self)

Source from the content-addressed store, hash-verified

66 ]
67
68 def __available_resources(self) -> list[int]:
69 """
70 Check for available resources in line with each resource in the claim vector
71 """
72 return np.array(self.__claim_vector) - np.array(
73 self.__processes_resource_summation()
74 )
75
76 def __need(self) -> list[list[int]]:
77 """

Callers 2

mainMethod · 0.95
__pretty_dataMethod · 0.95

Calls 1

Tested by

no test coverage detected