As it is known that the gene mutations of KRAS, BRAF, TP53, and PI3K play key roles in progression of cancer cell invasion and metastasis, the algorithm based on the combinational mutation profiles of these key genes may reflect the nature of cancer metastasis. The gene discussed is KRAS; the disease is cancer.