One key problem for intrusion detection system is the correctness and efficiency of detection algorithm.This paper presents a revised detection algorithm through the use of Bayes decision. Bayes decision is a random pat-tern classified recognition method of the pattern recognition theory. The algorithm in this paper is designed refer tothe lest-risk Bayes decision. Experiments show that this algorithm has better performance. In the paper,we firstly in-troduce the Bayes algorithm and threshold selection algorithm. Then depending on the decision,the detection algo-rithm of intrusion detection system is designed. In the end,the experiment results are provided.
The MVC designed pattern was developed in Smalltalk-80 and was wildly used in the task of software design. This paper introduces MVC to Web application design, and describes a design pattern based MVC in detail. This design pattern not only detaches the transaction and expression form, but only can improve the maintainability, expandability and performance by using the module library, template library, message object and queue cache. In conclusion, this paper presents a novel Web application design pattern based on MVC.