Sorry for this simple question but I am having a little trouble understanding what is meant by a poly-time reduction?. So supposeSuppose I have two algorithms A$A$ and B$B$ and then I say that A$A$ is reducible to B does$B$. Does polytime reduction mean that the algorithm that solves A$A$ using B$B$ as a helper runs in $O(n^k)$ for some $k$?
So for example suppose:
A$A$ is thean algorithm that takes input as input a list of numbers and returns whether there is a sublist whose sum is 0$0$.
B$B$ is thean algorithm that takes inout as input a list of numbers, and an integer k$k$, and returns whether there is a sublist of length k$k$ whose sum is 0$0$.
Then
def A(L):
for i in range (1, len(L)+1)"
if B(L, i):
return true
return false
and sinceSince this A$A$ calling B$B$ as a helper runs in $O(n)$ so can this be described as a polytime reduction from A$A$ to B$B$?