Shaojun Z. answered 05/10/22
Rich experiences at Google, Facebook, Amazon, and etc. Ph.D in A.I.
The short answer is:
A problem is said to be in P, is independent of the kind of Turing Machines you use (model independent, but also has to be reasonable, details ignored).
However, it is not algorithms independent. You might come up with an EXP algorithm to solve a problem in P. That does not mean the problem is not in P.
A problem is in P means *there is an algorithm* that solves the problem in polynomial time.