I get that problems can have constant/linear/polynomial/exponential complexity to solve so I (think) I understand ‘P’.
Over at NP I get confused around what constitutes a test/validating that a solution is true in polynomial time.
For example, a problem, “what’s the shortest path between two points” I get that a brute force breadth-depth first algorithm is going to rapidly take longer as more branches are added, but what constitutes verifying the solution?
In that example does verifying a solution mean having access to some prior list of all possible permutations and sorting them to find the shortest path, and because sorting is easy then this is an example of easily verifying?