Abstract:Based on the length of the comparison method, the checksum value, and the detection algorithm based on behavior is a classic of three kinds of virus detection algorithm, this paper will these three algorithms together and put forward a new algorithm, the algorithm of the idea is: first, through the corresponding algorithm to detect the length of the calibration value of a program with the program is changed. If there is a change, the computer virus weight calculation formula is used to determine whether the host program is infected by the virus. If a program becomes the host of the virus, the included Angle cosine formula is used to detect the virus in the host and determine which kind of virus the virus belongs to, so as to achieve the purpose of computer virus detection.