I quickly looked over the links you gave, and I have to admit that I really dislike your textbook (1st pdf): they consider NP-completeness, barely mentioning the solution problems. The provided definition of an NP-complete problem is also slightly different from what I expect from the tutorial. I guess it was a conscious decision to make the introduction more attractive ...
I will give a short answer, followed by a more detailed explanation of related concepts.
Short version
Intuitively (and informally) the problem is in NP , if its solutions are easily verified .
, NP-hard, , .
NP-, NP, NP-hard. , NP-. , .
, - . , , . TSP, TSP-OPT NP-, . , pdf 8.1 , , TSP TSP-OPT .
TSP TSP-OPT , (, ) , . , TSP , NP-. , , . TSP-OPT, , NP, , NP-. ( .)
Tl; dr - , TSP-OPT , TSP .
, , , , .
, , .
NP-, NP-, NP, P .. , .
.
- , YES, NO.
TSP
: G, b
: G b? (/)
TSP
: G, b
: G b, .
TSP
: G
: G .
TSP . , TSP, - . TSP TSP-OPT .
, . , , . , .
? NP- , . , , , NP-complete/NP-hard /, , . , - , NP-, .
, , , . , - , 8.1 8.2 . , , , , .