Answer:
18 hours
Step-by-step explanation:
Let the volume of the pool be x. Since pipe A filled the pool in 6 hours, the rate of pipe A = x / 6.
Let the rate of pipe b be y, Hose A filled the pool alone for the first 2 hours, this means that the volume filled in the 2 hours is x/6(2 hours) and the two hoses, working together, then finished filling the pool in another 3 hours for the 3 hours the volume filled is x/6(3) + y(3). hence the total time is:
x/6(2) + x/6(3) + y(3) = x
x/3 + x/2 + 3y = x
Multiply through by 6:
2x + 3x + 18y = 6x
5x + 18y = 6x
18y = x
y = x/18
The rate of pipe B is x/18, this means it would take pipe B 18 hours to full the pool alone
The running time for an input size of 1000 will be 25 seconds.
To calculate the runtime of the Algorithm we need to know what an Algorithm is and how its runtime works.
<h3>What is the runtime of an
Algorithm?</h3>
A finite sequence of rigorous instructions, used to solve a critical problem of a specific class or for computational purposes is called an Algorithm. The time taken to complete the said task is called the runtime of an Algorithm.
Let us now solve the question about linear running time of an algorithm.
Input size(
)=200
Time taken(
)=5 seconds
Final input size(
)=1000
Let the final time taken be T.
Now we know that: 
Substituting the values we get
seconds .
Therefore the linear running time for an input size of 1000 is 25 seconds.
To know more about Algorithm:
brainly.com/question/17780739
#SPJ4
(p, q) are on a ratio table which makes them proportional to each other. This means that each point on the graph can be found by multiplying p and q by this proportion.
(p, q), (2p, 2q), (3p, 3q).... (np, nq)
n = any number.
I believe it is an integer