Figure 1 It can be noted that the Boolean expression minimization is an NP-complete problem which an efficient exact algorithm is difficult to find. As shown in [7] and [8], Espresso-II is a fast and efficient heuristic algorithm used in practice. In [6], the authors give an efficient linear time solution to find the minimum Boolean expression for a range. An other well known technique for resolving the range matching problem specially in TCAM solutions is the range to ternary strings conversion. A ternary strings ft is of the form b;b2---b, with b; € {0,1,*}. Converting an arbitrary range into a minimum number of ternary strings is the Boolean expression minimization problem as shown in [6]. This technique gives 2w — 4 overlapping ternary strings. For better illustration of the conversion problem, we can use Karnaugh map technique (K-map) as a visual diagram to show all possibilities as shown in Figure 1. The K-map rule is to minimize the number of grouping and to maximize their sizes. Hence, the range [1, 14] can be expressed using only 4 ternary strings in 4 manners as follows: B. Non-Adjacent Form