Answer:
def brute_force(array1, array2):
for item in array1:
for element in array 2:
if element == item:
print(f"{element} and {item} are a match")
Explanation:
A brute-force algorithm is a direct-to-solution algorithm that searches and compares variables. It is like trying to unlock a safe but not knowing its four-digit combination, brute-force starts from 0000 through 9999 to get a match.
The python program implements the algorithm using two nested for loops. The first loop iterates over array1 while the second, over array2. For every item in the first array, the program loops through the length of the second array. For every match, the items are printed on the screen.
Answer:
Windows
Explanation:
It is down to preference. I prefer windows due to its large compatibility with a wide range of apps.
Pull him away from the fridge with a non-conducting material and begin cardiopulmonary resuscitation .
<h3>What is meant by electric shock?</h3>
When a human comes into contact with an electrical energy source, they experience an electric shock. A shock is produced when electrical energy passes through a section of the body. Exposure to electrical energy has the potential to cause fatalities or absolutely no injuries.
The tangible and tangible result of an electrical current entering the body is electrical shock. The shock could be anything from a dangerous discharge from a power line to an uncomfortable but safe jolt of static electricity after walking over a thick carpet on a dry day. trauma; related topics.
The complete question is : Michael is stuck due to an electric shock generated at the fridge. What should you do to save Michael?
A. push the fridge away with a non-conducting material and begin cardiopulmonary resuscitation
B. push the fridge away from him and begin cardiopulmonary resuscitation
C. pull him away from the fridge with a non-conducting material and begin cardiopulmonary resuscitation
D .pull him away from the fridge with your hands and begin cardiopulmonary resuscitation
To learn more about electric shock refer to:
brainly.com/question/28361869
#SPJ1
Answer:
a. 100.
b. 31500.
Explanation:
So, we are given the following data which is going to help in solving this particular question.
The time required to execute (on the average) = 1/2 microsecond , a page fault takes of processor time to handle = 250 microseconds and the disk time to read in the page = 10 milliseconds.
Thus, the time taken by the processor to handle the page fault = 250 microseconds / 1000 = 0.25 milliseconds.
The execution time = [ 1/2 microseconds ]/ 1000 = 0.0005 milliseconds.
The number of Pages sent in a second by the disc = 1000/10 milliseconds = 100.
Assuming U = 1.
Hence, the disc transfer time = [2/3 × 1 } + [ 1/3 × 0.25 milliseconds + 15 ] × 2.
=0.667 + 15.083.
= 15.75 millisecond.
Average number of instruction = 15.75/0.0005 = 31500.