Figure 4:
The process of NPC algorithm.