Match is an important research subject for the production systems. RETE and TREAT are two representative match algorithms. Through the analysis of advantages and disadvantages of the two algorithms, a new match algorithm--COMP is put forward. According to the theoretical analysis, the time complexity of this algorithm is O(W C), and is better than that of RETE even in the worst case. Experimental tests indicate that in common cases, COMP algorithm outperforms TREAT algorithm, and it outperforms RETE algo...