Swarm intelligence versus direct cover algorithms in synthesis of Multi-Valued Logic functions

Mostafa Abd-El-Barr (Department of Information Science, College of Life Sciences, Kuwait University, Kuwait City, Kuwait)
Kalim Qureshi (Department of Information Science, College of Life Sciences, Kuwait University, Kuwait City, Kuwait)
Bambang Sarif (Department of Electrical and Computer Engineering, University of British Columbia, Vancouver, Canada)

Applied Computing and Informatics

ISSN: 2634-1964

Article publication date: 3 August 2020

Issue publication date: 5 January 2024

839

Abstract

Ant Colony Optimization and Particle Swarm Optimization represent two widely used Swarm Intelligence (SI) optimization techniques. Information processing using Multiple-Valued Logic (MVL) is carried out using more than two discrete logic levels. In this paper, we compare two the SI-based algorithms in synthesizing MVL functions. A benchmark consisting of 50,000 randomly generated 2-variable 4-valued functions is used for assessing the performance of the algorithms using the benchmark. Simulation results show that the PSO outperforms the ACO technique in terms of the average number of product terms (PTs) needed. We also compare the results obtained using both ACO-MVL and PSO-MVL with those obtained using Espresso-MV logic minimizer. It is shown that on average, both of the SI-based techniques produced better results compared to those produced by Espresso-MV. We show that the SI-based techniques outperform the conventional direct-cover (DC) techniques in terms of the average number of product terms required.

Keywords

Citation

Abd-El-Barr, M., Qureshi, K. and Sarif, B. (2024), "Swarm intelligence versus direct cover algorithms in synthesis of Multi-Valued Logic functions", Applied Computing and Informatics, Vol. 20 No. 1/2, pp. 2-19. https://doi.org/10.1016/j.aci.2020.03.002

Publisher

:

Emerald Publishing Limited

Copyright © 2019, Mostafa Abd-El-Barr, Kalim Qureshi and Bambang Sarif

License

Published in Applied Computing and Informatics. Published by Emerald Publishing Limited. This article is published under the Creative Commons Attribution (CC BY 4.0) license. Anyone may reproduce, distribute, translate and create derivative works of this article (for both commercial and non-commercial purposes), subject to full attribution to the original publication and authors. The full terms of this license may be seen at http://creativecommons.org/licences/by/4.0/legalcode


1. Introduction

It is widely recognized by researchers as well as the chip industry that on-chip complex binary systems exhibit a number of curbs, such as large layout area for interconnections, limitations of data storage, increased power consumption, and limitation of available bandwidth. These limitations can be mostly overcome by using Multiple-Valued Logic (MVL) systems [1–3]. Digital information processing using MVL is carried out using more than two discrete logic levels. MVL-based information processing include arithmetic operations/processors, memory, and special purpose processors [1]. Reported MVL (sub)-systems have shown considerable reduction both in time and speed compared to their binary counterparts [2–5]. It should however be noted that the search space for MVL synthesis problem is huge when compared to the binary one. There are r(rn)=442=232 2-variable 4-valued functions as compared to 16 2-variable binary functions. This makes exact minimization of MVL functions prohibitively expensive both in time and complexity. Therefore, modern heuristic optimization techniques were employed. These algorithms can be classified into iterative based [6], decomposition-based [7], algebraic based [8], direct cover-based [9–11], and evolutionary-based algorithms. The latter include Genetic algorithms (GAs) [12–13], Ant Colony (ACO) [14–15], and PSO-based [16]. Fuzzy-based synthesis of MVL functions has also been reported in the literature [21].

The Direct Cover (DC) algorithm is an iterative heuristic in the synthesis of MVL functions [9–11]. Swarm intelligence models (SIMs) are computational models inspired by real life swarm systems. The two main SIMs are the Ant Colony Optimization (ACO) [25] and the Particle Swarm Optimization (PSO) [26]. The main idea in the ACO is to model a given problem as a search conducted by ants for the optimal path guided by a substance deposited on the path called pheromone. Real ants were found to be skillful in finding the shortest path between their nests and a food source in the presence of hurdles. Particle swarm optimization (PSO) is inspired by the observation that birds fly in large groups and for long distances without collision. It is hypothesized that birds are able to achieve that through experience-sharing by maintaining an optimum distance between themselves and their neighbors. Hence, PSO is a search strategy that uses a set of flying particles with velocities that are dynamically adjusted based on past experience of individual particle and that of their neighbors in the search space. The PSO algorithm was first introduced in 1995 [21] and was later on extended as in [22,23]. There has been growing interest in the use of PSO for optimization problems [25,28,29,35–40,44–46] and in synthesis of circuits [26,27]. A number of recent research work, books, and book chapters on the issue of swarm and nature-inspired algorithms have been published in the literature [47–49]. However, very few articles were reported on the synthesis of MVL functions, see for example [16].

The paper provides a concise coverage and comparison of both the conventional synthesis techniques of MVL functions represented by the Direct Cover algorithm and those based on the emerging functional synthesis techniques using the swarm intelligent-based algorithms. We aim to provide a useful data analytics for researchers in the area of digital synthesis for high-radix (beyond binary) logic functions. The paper also illustrates the adaptation of the discrete PSO algorithms in the area of MVL functional synthesis while showing the adopted processes used in the selection of the appropriate minterms and the appropriate implicants (product terms) to cover them. We also provide a comparison among the ACO and the PSO on one hand and the Espresso-MV standard algorithm on the other hand.

It should be noted that the two swarm intelligence based algorithms ACO and the PSO are selected in this work because of them being among the well-known swarm intelligence techniques and also in order to align our work with similar research work identified in the literature, e.g. [50].

The paper is organized as follows. Section 2 provides some background material. In Section 3 we provide a coverage of the related work published in the literature. Section 4 covers simulation results conducted using the ACO and the PSO algorithms using a benchmark consisting of 50,000 4-valued 2-varaible functions. In Section 5 we provide comparison among the results obtained out of the simulation conducted in Section 4. In Section 6 we provide a number of concluding remarks.

2. Background material

This section provides enough of the foundation material needed to make the paper self-stand and to help the reader to follow through the paper easily and with the minimum interruption.

Table 1 shows the MVL logic operators used in this paper [15].

Definition 1

[15]: Define an n-variable r-valued function, f(X), as a mapping f:RnR.

In the above definition R={0,1,,r1} is a set of = r logic values with r2 and X={x1,x2,,xn} is a set of r-valued n variables. An example 4-valued (r4), 2-variable (n = 2) function is shown in Figure 1.

Definition 2

[15]: Define a product term (PT), P(x1,x2,,xn), as the minimum of a set of window literals such that P(x1,x2,,xn)=C·a1x1b1·a2x2b2·anxnbn=min(C,a1x1b1,a2x2b2,,anxnbn) where ai,biR,aibi and c{1,2,,r1} is the value of the product term.

Example: the product terms in Figure 1 include 1, 1·2x13·1x22,2·0x10·0x23, and 3·1x12·1x22. In the first case c=1,a1=2,b1=3,a2=1,b2=2, in the second case c=2,a1=0,b1=0,a2=0,b2=3 and in the third case c=3,a1=1,b1=2,a2=1,b2=2.

Definition 3

[15]: Define a minterm as the assignment x1=a1,x2=a2,,xn=an, in an MVL function f(x1,x2,,xn) if and only if:f(x1,x2,,xn)0.

In the above definition ai{0,1,,r1}. If the value of a minterm is r, then it is considered as don’t care and is represented as d. There are 12 minterms in the function shown in Figure 1.

Definition 4

[15]: A PT, I(x1,x2,,xn) of a function f(x1,x2,,xn) is called an implican if f(x1,x2,,xn)I(x1,x2,,xn) for all assignments of xi’s.

Example: Figure 1 shows an example 4-valued 2-varaibale function.

The objective of MVL synthesis to find the minimum form of an MVL function that can be completely or incompletely specified. As indicated above exact minimization of MVL functions is prohibitively expensive both in time and complexity and that a number of modern heuristic optimization techniques were employed. These include the direct cover-based (DC) [9–11], the Ant Colony (ACO) [14,15], and PSO-based [16]. In Section 5 we provide a comparison of the performance of the ACO and the PSO in the context of synthesis of MVL functions. However the following table (adapted from [50]) illustrates the fundamental difference between the two models of computation.

CriteriaACOPSO
Communication MechanismIndirect communication through the environment (Stigmergy).Direct communication.
Problem TypeBoth discrete (combinatorial) and continuous optimization problems.Both Continuous and discrete (combinatorial) optimization problems.
Problem RepresentationUsing weighted (construction) graph.Set of n-dimensional points.
Algorithm ApplicabilityProblems with predefined source and destinationProblems where previous and next particle positions at each point are uniquely defined.

Having covered the needed background material, we provide a coverage of the DC, ACO, and the PSO algorithms in Section 3.

3. Related work

3.1 The Direct cover heuristic algorithm for synthesis of MVL functions

The Direct Cover (DC) algorithm is an iterative heuristic in the synthesis of MVL functions [9–11]. Figure 2 shows an adapted version of the DC.

A detailed analysis of the DC-based algorithms has been conducted jointly by the author in [17]. The results of such analysis have indicated that improvements to the conventional DC are still possible [20] and [24]. In the next section, we present the SI-based improvements of the DC in the form of the Ant Colony (ACO) and the Particle Swarm Optimization (POS).

3.2 The ACO algorithm for synthesis of MVL functions

The main idea in the ACO is to model a given problem as a search conducted by ants for the optimal path guided by a substance deposited on the path called pheromone. Real ants were found to be skillful in finding the shortest path between their nests and a food source in the presence of hurdles. The search is made possible by an indirect communication amongst the ants. While traveling their way, ants deposit a chemical substance, called pheromone, on the ground. When they arrive at a decision point, they make a probabilistic choice, biased by the intensity of pheromone they smell, see Figure 3(a). This behavior has an autocatalytic effect since choosing a given path increases the likelihood that the same path will be chosen again by future ants. On their way back, ants are expected to choose the same path with high probability (due to the increase in the amount of pheromone), see Figure 3(b). As further pheromone is released, the chosen path will become more attractive for future ants. See Figure 3(c) [34].

The basic algorithmic steps in an ACO are shown in Figure 4.

A key point in the development of ACO is the selection of an appropriate fitness function. The fitness function is often formulated as cost minimization of the solution of the given problem. The ACO algorithm has received much attention and has been incorporated in a number of optimization problems [16–21,30–33,43].

3.3 The PSO algorithm for synthesis of MVL functions

Particle swarm optimization (PSO) is inspired by the observation that birds fly in large groups and for long distances without collision. It is hypothesized that birds are able to achieve that through experience-sharing by maintaining an optimum distance between themselves and their neighbors. Hence, PSO is a search strategy that uses a set of flying particles with velocities that are dynamically adjusted based on past experience of individual particle and that of their neighbors in the search space. The PSO algorithm was first introduced in 1995 [21] and was later on extended as in [22,23]. There has been growing interest in the use of PSO for optimization problems [25,28,29,35–40] and in synthesis of circuits [26,27]. However, very few articles were reported on the synthesis of MVL functions, see for example [16]. The basic algorithmic steps in a PSO are shown in Figure 5.

4. Simulation of the algorithms

In this section we present a coverage of the simulation process conducted using the ACO and the PSO algorithms introduced in Section 3 above. The simulation conducted among the algorithms is made using a set of a benchmark consisting of 50,000 randomly generated 2-variable 4-valued functions. The main characteristics of the generated benchmark are illustrated below. As can be seen the number of minterms in the benchmark ranges from 6 to 16. The number of functions in each range is illustrated in the table below. For example there are 500 functions each has 16 minterms, 9000 function seach has 11 minterms, and 75 functions each has 6 minterms.

# functions5002700660010501130900054502500110027575
# minterms161514131211109876

4.1 Ant Colony synthesis technique (ACO-MVL)

In the ACO-MVL, use is made of the ants searching strategy in finding the best minterms cover using the right set of implicants. The minterms coverage process is performed iteratively, until all minterms in the table is covered. Upon selecting a minterm (or an implicant) an ant puts some pheromone trails on it. This will cause the next ant performs selection based on the additional pheromone information. This positive feedback process drives the selection to the best solution (see Figure 6) [15].

The daemon_action( ) function is used to initialize the pheromone value at the beginning of all ant’s movement and also whenever stagnancy in the solution is found. Based on the output of the fitness calculations the selected minterms and implicants are updated. The next generation of ants will then use the newly updated pheromone values to guide their selection.

4.1.1 Solution representation

According to the ACO-MVL, a tabular form is used to represent a given MVL function. A bag whose size is equal to the size of the function’s truth table is used to store all selected implicants. Each implicant is represented by a string of integers consisting five integer attributes as follows (in sequence): the constant value of the implicant, the first and second value of the literal (a and b in Table 1) of the first variable in the implicant representation, and followed by the first and second value of the literal (a and b in Table 1) of the second variable in the implicant representation. For example, if the implicant is 1.x112.x213, then the five integer attributes would be 1 1 2 1 3.

It should be noted that performance of the ACO algorithm is dependent on the selection of a number of parameters including the expectation heuristic factor, the pheromone evaporation rate, and the number of ants. The ACO parameter selection techniques differ from a study to the other depending on the types of optimization and the scales of the problem considered. In our case we have conducted experimentations on the parameter value selection using the (expectation) heuristic value ηM and the pheromone evaporation τM and we have developed a measure of the probability of choosing a minterm M as explained below in Eq. (1). We have also adopted a similar approach in the selection of the parameters for the implicant (product term) and have developed to measure the probability for choosing an implicant, L as explained below in Eq. (2). Our approach in developing the measures below is inspired by the approach used in [51].

4.1.2 Minterm selection

A stochastic process of Roulette Wheel is used in the selection of a minterm. Two factors affect the probability of choosing a minterm. These are the pheromone value and a heuristic value. The first factor is obtained from pheromone trails of previous ants. The second factor is the fuzzy weighted averaging of minterm’s selection criteria. The probability of choosing minterm M is computed as:

(1)p=τM·ηMτM·ηM
where τM represents the pheromone value of the minterm M and ηM represents the heuristic value of minterm M.

4.1.3 Implicant selection

A stochastic process of Roulette Wheel is used in the selection of an implicant. Two factors affect the probability of choosing an implicant. These are the pheromone value and a heuristic value. The first factor is obtained from pheromone trails of previous ants. The second factor is the fuzzy weighted averaging of implicants’s selection criteria. The probability of choosing implicant L is computed as:

(2)p=τL·ηLτL·ηL
where τL represents the pheromone value of implicant L and ηL represents the heuristic value of literal L (fuzzy weighted averaging of literal’s L selection criteria).

4.1.4 Fitness function

The Functional fitness, Ff=NhNm, where Nh = the number of minterm matching between the two truth tables and Nm= the number of mismatch between the two truth tables. The Objective Fitness, Fo=(100−Np)/100, where Np is the number of product terms needed to cover the function. A chromosome with the highest functional fitness is considered as the best solution. In case of a tie, the chromosome with the highest objective functional is selected.

4.1.5 Numerical results

The ACO-MVL algorithm was applied to a benchmark consisting of 50,000 randomly generated 2-variable 4-valued functions. The following parameters were used:

Number of populations (NP) = 20

Maximum number of Iterations (MI) = 100

Maximum number of Runs = (MR) 10

Pheromone evaporation rate (RHO) = 0.95

The following two measures were recorded:

  • 1.

    SRµ ≡ Successful Rate (number of successful iterations divided by the total number of runs)

  • 2.

    PT ≡ Number of Product Terms.

Table 2 shows the average number of Product Terms (#PT) needed with respect to the number of minterms of the MVL function used in the benchmark (functions with minterms ranging from 6 to 16 are used) as well as for the conventional DC-based algorithms (ARM [11], BS [9], and DM [10]).

The results in the table show the ACO-MVL algorithm outperforms the DC-based algorithms for all cases. The table also shows that the maximum percentage improvement and the minimum percentage improvement achieved by the ACO-MVL are 12.8% and 0.3%, respectively. It should be noted that the achieved improvements should be considered in the context that the simulated benchmark is representing a population of 416 functions. Figure 7 illustrates this comparison. An overall comparison between the SI-based techniques and the espresso-MV logic minimizer tools is provided in Section 3.

4.2 The particle swarm synthesis technique (PSO-MVL)

We motivate the discussion in this section by considering the function given in Figure 8.

Notice that based on the representation introduced in [13], the MVL function shown in Figure 8 is represented as: ‘0000000023102200. The coverage relation between the minterms of the function and the implicants is depicted in Figure 9.

4.2.1 Particle representation

A string consisting of five numbers is used to represent an implicant [13]: the first number represents the value of the implicant, the next two numbers represent the range of the literal of the first variable (a and b in Table 1) while the last two numbers represent the range of the literal of the second variable (a and b in Table 1). Consider, for example, the 4-valued function given in Figure 9. The two implicants (fully or partially) that cover the minterm 31,122 are 11,222 and 20,123 (see Figure 10).

It should be that the performance of the PSO algorithm is dependent on a number of parameters including the swarm size, the particles velocities, the cognitive coefficient, and the particle positions. In our case, we have used the same list of parameters except that for the particle velocities. In our extermination and due to the discrete nature of the MVL synthesis problem we have adopted the discrete PSO approach introduced in [22,23]. Accordingly, we introduce the term particle displacement (rather than particle velocity) and used it instead. Please refer to the set of Eq. (4) in the paper. We have presented the obtained results due to the effect of the swarm size and the number of iterations in Table 4 in the paper. In our test we used: c1 = 1, c2 = c3 = 0.5 and the number of runs = 10. Notice that c1 and c2 represent the cognitive coefficients. As a result of our experimentations, we found out that most appropriate value for Vmax is either 4 or 5. A value of Vmax = 5 has been used in testing the PSO-MVL Algorithm. Our developed model to compute the particle displacement is shown below in Eq. (4).

4.2.2 Particle fitness function

The Functional fitness is computed as Ff=NhNm, where Nh is the number of minterm match and Nm is the number of minterms mismatch between the truth table of the original and the obtained functions. The objective fitness is computed as Fo = (100Np)/100, where Np is the number of product terms needed to cover the function. The selection of the best obtained solution is done on two levels: First the highest functional fitness function and in case of a tie the value of objective fitness will used.

Example:. Figure 10 shows an example of three particles in the swarm whose elements at time t.

Table 3 illustrates the computation of the particle fitness function as explained above.

The results displayed in Table 3 indicate that particles 2 and 3 supersede particle 1 in representing the example function. Although the functional fitness of the two particles show a tie (a score of 16 in each) however the overall fitness shows superiority of particle 3 due to the weight added by the objective function. Therefore, particle 3 is considered the best possible solution for the given MVL function.

4.2.3 Particle movement

The discrete nature of the MVL synthesis problem necessitates adopting the discrete PSO approach introduced in [22,23]. Accordingly, we introduce the term particle displacement (rather than particle velocity) and introduce the following to compute the particle displacement (Dt+1,i):

(4)DSt,i=c2r2(Pi,tXt,i)DGt,i=c3r3(Pg,tXt,i)Dt+1,i=c1Dt,i+DSt,i+DGt,i

In the above computation we use DSt,i to represent the displacement of particle i at time step t due to particle best self- experience and DGt,i to represent the displacement of particle i at time step t due to the global experience. We use Xt,i to represent the position of particle i at time step t, Pi,t to represent the current best position at time step t, and Pg,t to represent the current global best position at time step t, while c1, c2, c3 represent the social/cognitive confidence coefficients, and r2, r3 are two random numbers.

As can be seen, the particle displacement (Dt+1,i) consists of three components: (Dt,i), (DSt,i), and (DGt,i). The new particle position is formulated as follows:

(5)Xt+1,i=(Xt,i+DSt,i)+DGt,i+c1Dt,i.

The PSO algorithm is illustrated in Figure 11 [16].

4.2.4 Numerical results

We have tested the proposed PSO-MVL algorithm using a bench mark consisting of 50,000 randomly generated 2-variable 4-valued functions. The results obtained are reported in Table 4.

We report in this table the average number of product terms (PTs) needed to cover a given function. We report the obtained results for different number of particles and different number of iterations. In our test we used: c1 = 1, c2 = c3 = 0.5 and the number of runs = 10. As a result of our experimentations, we found out that most appropriate value for Vmax is either 4 or 5. A value of Vmax = 5 has been used in testing the PSO-MVL Algorithm. It should be noted that a gradual decrease in the number of product terms (PTs) needed to synthesize a given function occurs as we increase the number of particles and/or iterations used.

4.2.4.1 An observation that lead to a modification in the PSO-MVL

Two example 4-valued 2-variable functions are shown in Figure 12. Notice that F2 is the complement of F1. While F1requires at least six implicants to represent, F2 requires only four implicants (circled in the figure). If we synthesize F2 and use an extra inverter we will need a total of 5 gates. This is still less than synthesizing F1. We have made use of such cases by modifying PSO-MVL algorithm in a way to synthesize both the given MVL function and its complement and collect the synthesis which requires less number of implicants taking into consideration the extra inverter gate needed if the complement of the function is synthesized.

Table 5 shows the results obtained using the modified PSO-MVL in comparison with the DC-based conventional heuristics for different functions having different number of minters.

In this table we present the average number of minterms required to synthesize a bench mark consisting of 50,000 2-variable 4-valued functions having minterms ranging from 6 to 16. For a comparison purpose, we also report the results obtained for three other synthesis algorithms: the ARM [11], the BS [9], and the DM [10]. The maximum and minimum percentage improvement for each of the 11 categories of functions is also computed and reported in the table. The maximum improvement achieved by the modified PSO-MVL is 31.2% (in the case of functions having 11 minterms) and the minimum improvement achieved is 7.9% (in the case of functions having 6 minterms). The results shown in Table 5 is illustrated in Figure 13.

5. A comparison

In this section we provide two main comparisons. The first is among the two Swarm Intelligence based algorithms used for synthesis of MVL functions, i.e. the ACO-MVL and the PSO-MVL. The second comparison is among the PSO-MVL and ACO-MVL on one side with the results obtained using espresso-MVL logic minimizer. Our basis for comparison is the benchmark consisting of 50,000 2-variable 4-vauled randomly generated function. Table 6 shows a summary of the results obtained for the results obtained for PSO-MVL and those obtained for ACO-MVL for synthesizing the 50,000 benchmark functions.

The results shown in Table 6 indicate that on average the number of product terms (#PTs) needed to synthesize a given function using the PSO-MVL is lower than the number of those needed to synthesize the same function using ACO-MVL. The maximum percentage improvement in the number of product terms obtained using PSO-MVL over the ACO-MVL is 16.3% (in the case of functions with 16 minterms) while the minimum percentage improvement is 3.9% (in the case of functions having 7 minterms). Over all simulated 50,000 functions, the average percentage improvement is 5.4%. It should be noted that 5.4% represents a considerable improvement given that the simulated randomly generated functions are representative of a population consisting of 416 functions. We also observe that as the number of minterms in a given function increases, the percentage improvement decreases. This can be attributed to the observation that as the number of minterms increases, the likelihood of an ant finding a solution increases and hence the improvement in the number of PTs achieved by the ACO-MVL algorithm. Figure 14 illustrates this comparison.

The results show that on average both ACO-MVL and PSO produce better number of product terms for the benchmark functions. The average percentage improvement is 6% in the case of ACO-MVL and it is 11.9% in the case of the PSO-MVL. Figure 15 illustrates this comparison.

6. Concluding remarks

This paper provides a review and comparison on the performance evaluation of the Ant Colony (ACO) and the Particle Swarm Optimization (PSO) heuristic techniques in the synthesis of MVL functions. This evaluation is provided on two levels: Swarm-Intelligence (SI)-based versus conventional Direct-Cover (DC)-based algorithms and between the two SI-based algorithms. The covered algorithms were simulated and tested using a benchmark consisting of 50,000 randomly generated 2-variable 4-valued functions. The average #PTs needed is used as a criterion in comparing the performance of all considered algorithms. The results obtained indicate that the SI-based techniques outperform the conventional DC in terms of the average #PTs required to realize a given MVL function. Between the two SI-based algorithms, the technique based on the PSO produces better overall results. The performance evaluation show also that the results obtained using both the SI-based algorithms outperform the results obtained using the espresso-MVL logic minimizer. It is shown that both the ACO and the PSO outperform the Espresso-MVL algorithm in the minimization of MVL functions. The work presented in this publication considers using ACO and PSO in the synthesis of 4-valued logic functions and compares the results to those obtained conventional using the direct-cover techniques. Application of other swarm intelligence techniques, e.g. Genetic Algorithms or Artificial Bee Colony for 4-valued or higher-radix logic is not covered in the article.

Figures

An example 2-variable 4-valued function.

Figure 1

An example 2-variable 4-valued function.

Algorithm for synthesis of MVL functions using DC heuristics.

Figure 2

Algorithm for synthesis of MVL functions using DC heuristics.

Illustration of the ants’ behavior [34].

Figure 3

Illustration of the ants’ behavior [34].

ACO basic algorithmic steps.

Figure 4

ACO basic algorithmic steps.

PSO basic algorithmic steps.

Figure 5

PSO basic algorithmic steps.

ACO-MVL algorithm.

Figure 6

ACO-MVL algorithm.

Average #PTs using ACO-MVL versus those achieved using DC-based technique.

Figure 7

Average #PTs using ACO-MVL versus those achieved using DC-based technique.

Example MVL function.

Figure 8

Example MVL function.

Coverage relation between minterms and implicants for function shown in Figure 8.

Figure 9

Coverage relation between minterms and implicants for function shown in Figure 8.

Example of particle representation.

Figure 10

Example of particle representation.

The PSO algorithm for MVL synthesis.

Figure 11

The PSO algorithm for MVL synthesis.

Example function and its complement function.

Figure 12

Example function and its complement function.

Average #PTs achieved using PSO versus those achieved using existing synthesis techniques.

Figure 13

Average #PTs achieved using PSO versus those achieved using existing synthesis techniques.

Average PT achieved using ACO-MVL and PSOThe second comparison we have conducted was to compare the results obtained using both of the Swarm-Intelligence-based techniques against those obtained using Espresso-MV logic minimizer [40].

Figure 14

Average PT achieved using ACO-MVL and PSOThe second comparison we have conducted was to compare the results obtained using both of the Swarm-Intelligence-based techniques against those obtained using Espresso-MV logic minimizer [40].

Average #PT achieved using ACO-MVL and PSO-MVL versus those achieved using Espresso-MV.

Figure 15

Average #PT achieved using ACO-MVL and PSO-MVL versus those achieved using Espresso-MV.

MVL operators.

The operatorThe logic equation
The window literalaxb={(r1)if(axb)0otherwise
where a,bR and ab. It should be noted that r = 4 for 4-valued logic.
The truncated sum (tsum)tsum(a1,a2,,an)=a1a2an={a1+a2++anifa1+a2++an<r1r1otherwise
Where ai ∈ R and ⊕ represents the truncated sum operation.
The maximum (MAX) of two MVL variablesMAX(x1,x2)={x1ifx1x2x2otherwise
The minimum (MIN) of two MVL variablesMIN(x1,x2)={x1ifx1x2x2otherwise

Average #PTs needed for realization of MVL Functions of the benchmark.

# minterms161514131211109876
# functions5002700660010501130900054502500110027575
#PT (ARM) [11]7.598.308.368.288.057.717.326.876.315.735.13
#PT (BS) [9]7.568.318.418.358.107.767.376.886.325.755.15
#PT (DM) [10]77.517.577.547.387.136.836.476.025.534.97
#PT (ACO-MVL) [14]6.737.057.167.187.096.96.666.365.935.484.96
Max improvement (%)12.812.412.412.412.412.412.412.412.412.412.4
Min improvement (%)46.55.754.23.32.61.81.50.90.3

Fitness calculation for particle shown in Figure 11.

ParticleThe obtained Truth TableNhNmFfNPFoFitness
100000000331022001511430.9714.97
200000000231022001601640.9616.96
300000000231022001601620.9816.98

Average numbers of PTs for different values of particles and iterations.

Number of iterationsNumber of Particles
2050100
10007.927.597.40
20007.677.397.25
50007.407.207.11

Average PT with Respect to Different Number of Minterms of MVL Functions.

# minterms161514131211109876
# functions5002700660010,50011,300900054502500110027575
#PT (ARM) [11]7.598.308.368.288.057.717.326.876.315.735.13
#PT (BS) [9]7.568.318.418.358.17.767.376.886.325.755.15
#PT (DM) [10]77.517.577.547.387.136.836.476.025.534.97
#PT (PSO-MVL) [15]5.796.866.936.896.766.576.336.065.705.274.73
Max improvement (%)31.230.730.730.730.731.230.730.730.730.730.7
Min improvement (%)21212121219.59.39.59.28.57.9

Comparison between ACO-MVL and PSO-MVL in synthesis of the benchmark functions.

#minterms# functions#PTS (ACO-MVL)#PTs (PSO-MVL)(%) improvement
165006.7305.78616.3
1527007.0546.8602.8
1466007.1636.9273.4
1310,5007.1826.8864.3
1211,3007.0866.7624.8
1190006.9046.5695.1
1054506.6606.3315.
925006.3566.0555.0
811005.9345.6974.2
72755.4805.2743.9
6754.9604.7334.8
Total = 50000 Average = 5.4%

Comparison among ACO-MVL, PSO-MVL, and Espresso-MV in synthesis of the benchmark.

# minterms# functions#PTs ACO-MVL#PTs PSO-MVL#PTs Espresso-MV% Improvement ACO-MVL vs. Espresso-MV% Improvement PSO vs. Espresso-MV
165006.7305.7868.3624.244.5
1527007.0546.8608.0614.317.5
1466007.1636.9277.768.312.0
1310,5007.1826.8867.474.08.5
1211,3007.0866.7627.161.05.9
1190006.9046.5697.488.313.9
1054506.6606.3316.802.17.4
925006.3566.0556.410.85.9
811005.9345.6975.990.95.1
72755.4805.2745.530.94.9
6754.9604.7335.011.05.9
Total = 50000 Average = 6.0Average = 11.9

References

[1](Eds.), “Beyond Two: Theory and Applications of Multiple-Valued Logic”, 2004.

[2]E. Dubrova, Multiple-valued logic in VLSI design, J. Soft Comput. (2002) 117.

[3]K. Naiff, D. Rich, K. Smalley, A four-state ROM using multilevel process technology, IEEE J. Solid-State Circ. 19 (2) (1984) 174179.

[4]T. Hanyu, M. Kameyama, A 200 MHz pipelined multiplier using 1.5 V-supply multiple-valued MOS current-mode circuits with dual-rail source-coupled logic, IEEE J. Solid-State Circ. 30 (11) (1995) 12391245.

[5]V. Patel, K. Gurmurthy, Arithmetic operations in multi-valued logic, Int. J. VLSI Commun. Syst. (VLSICS) 1 (1) (2010) 2132.

[6]R. Hong, D. Ostapko, A heuristic approach for logic minimization, IBM J. Res. Dev. 18 (5) (1974) 443458.

[7]C. Files, M. Perkowski, New multi-valued functional decomposition algorithms based on MDDs, IEEE Trans. CAD 19 (9) (2000) 10811086.

[8]J.-H. Goa, J.-H. Jiang, Y. Jiang, Y. Li, A. Mishchenko, S. Sinha, T. Villa and R. Brayton, “Optimization of multi-valued multi-level networks”, In Proceedings of the International Symposium on Multiple-Valued Logic, pp. 168177, 2002.

[9]P. Besslich, Heuristic minimization of MVL functions: a direct cover approach, IEEE Trans. Comput. 35 (2) (1986) 134144.

[10]G. Dueck, D. Miller, A Direct Cover MVL Minimization Using the Truncated Sum, In Proceedings of the International Symposium on Multiple-Valued Logic, pp. 221-226, 1987.

[11]G. Promper, J. Armstrong, Representation of multiple-valued functions using the direct cover method, IEEE Transactions on Computers, pp. 674679, 1981.

[12]Y. Hata, T. Hayase, N. Hozumi, K. Yamato, Multiple-Valued Logic Minimization by Genetic Algorithms, In Proceedings of 27th IEEE International Symposium on Multiple-Valued Logic, pp. 97102, 1998.

[13]B. Sarif, M. Abd-El-Barr, Synthesis of MVL Functions – Part I: The Genetic Algorithm Approach, In Proceedings of the International Conference on Microelectronics, pp. 154157, 2006.

[14]M. Abd-El-Barr, B. Sarif, “Synthesis of MVL Functions – Part II: The Ant Colony Optimization Approach”, In Proceedings of the International Conference on Microelectronics, pp. 158161, 2006.

[15]M. Abd-El-Barr, Evolutionary techniques in synthesis of multiple-valued logic functions, Int. J. New Comput. Arch. Appl. 2 (3) (2012) 411422.

[16]B. Sarif, M. Abd-El-Barr, Functional Synthesis using Discrete Particle Swarm Optimization, In Proceedings 2008 IEEE Swarm Intelligence Symposium, St. Louis, USA< September 2008, pp. 18.

[17]M. Abd-El-Barr, L. Al-Awami, Analysis of Direct Cover Algorithms for Minimization of MVL Functions, In Proceedings of the 15th International Conference on Microelectronics, pp. 308312, 2003.

[18]G. Dueck, J. van Rees, On the Maximum Number of Implicants Needed to Cover a Multiple-Valued Logic Function Using Window Literals, In Proceedings of the International Symposium on Multiple-Valued Logic, pp. 280286, 1991.

[19]M. Dorigo, T. Stutzle, The Ant Colony Optimization Meta-heuristic: Algorithms, Applications and Advances, In Handbook of Meta-heuristics, Kluwer Academic Publishers, pp. 251285, 2002.

[20]B. Sarif, B, M. Abd-El-Barr, Fuzzy-based Direct Cover Algorithm for Synthesis of Multiple-Valued Logic Functions, In proceedings of the IASTED on Circuits and Systems, Hawaii, pp. 625630, 2008.

[21]J. Kennedy, R. Eberhart, Particle swarm optimization, in: Proceedings of IEEE International Conference on Neural Networks, Piscataway, 1995, pp. 19421948.

[22]J. Kennedy, R. Eberhart, A discrete binary version of the particle swarm algorithm, in: IEEE International Conference on Systems, Man, and Cybernetics, 1997, pp. 41044108.

[23]Y. Wang, Y. Wu, Frequency graphs for travelling salesman problem based on ant colony optimization, Int. J. Comput. Intelligence Appl. 18 (3) (2019) 16, https://doi.org/10.1142/S1469026819500160.

[24]M. Abd-El-Barr, B. Sarif, Weighted and ordered direct cover algorithms for minimization of MVL Functions, in: Proceedings 37th International Symposium on Multiple-valued Logic (ISMVL 2007), 2007, pp. 4853.

[25]H. Ahmed, J. Glasgow, “Swarm Intelligence: Concepts, Models, and Applications”, Technical Report 2012–585, Queen’s University, School of Computing, 2012.

[26]C. Reis, J. Machado, Computational intelligence in circuit synthesis, J. Comput. Intelligence 11 (9) (2007) 16.

[27]E. Osaba, J. Del Sel, A. Iglesias, X.-S. Yang, Soft computing for swarm robotics: new trends and applications, J. Comput. Sci. 39 (2020) 101049.

[28]D. Karaboga, B. Akay, A Survey: algorithms simulating bee swarm intelligence, J. Artific. Intelligence Rev. 31 (2009) 6185.

[29]J. Pugh, A. Martinoli, Discrete multi-valued particle swarm optimization, in: Proceedings, IEEE Swarm Intelligence Symposium, 2006, pp. 103110.

[30]M. Mareli, B. Twala, An adaptive cuckoo search algorithm for optimization, Appl. Comput. Inf. 14 (2018) 103115.

[31]P. Balaprakash, M. Birattari, T. Stzle, Z. Yuan, M. Dorigo, Estimation-based ant colony optimization algorithm for the travelling salesman problem, Swarm Intelligence 3 (2) (2009) 223242.

[32]C.-Y. Lee, Z.-J. Lee, S.-W. Lin, K.-C. Ying, An enhanced ant colony optimization (EACO) applied to capacitated vehicle routing problem, Appl. Intelligence 32 (2010) 8895.

[33]O. Korb, T. Stutzle, T. Exner, An ant colony optimization approach to flexible protein ligand docking, Swarm Intelligence 1 (2) (2007) 115134.

[34]M. Dorigo, T. Stutzle, Ant Colony Optimization, MIT Press, Cambridge, 2004.

[35]R. Eberthart, Y. Shi, Tracking and optimizing dynamic systems with particle swarms. Proc. Congress on Evolutionary Computation, Seoul, 2001.

[36]W. Ghraby, M. Wachowiak, R. Smolikova, Y. Zheng, J. Zurada, M. Elmaghraby, An approach of multimodal biomedical image registration utilizing particle swarm optimization, IEEE Trans. Evol. Comput. (2004).

[37]L. Messerschmidt, A. Engelbrecht, Learning to play games using a PSO-based competitive learning approach, IEEE Trans. Evol. Comput. (2004).

[38]T. Blackwell, P. Bently, Improved music with swarms, in: Proc. 2002 Congress on Evolutionary Computation (ECE), 2002, pp. 14621467.

[39]Y. Shi, On particle swarm optimization, in: IEEE Neural Network Society Feature Article, 2004, pp. 813.

[40]Y. Valle, G. Venayagmoorthly, S. Mohagheghi, J.-C. Hernandez, R. Harley, Particle Swarm optimization: basic concepts, variants and applications in power systems, IEEE Trans. Evol. Comput. 12 (2) (2008) 171195.

[41]R. Brayton, G. Hachtel, C. McMullen and A. Sangiovanni-Vincentelli, Logic Minimization Algorithms for VLSI Synthesis, Kluwer Academic Publishers, ISBN 0-89838-164-9, 1984.

[42]R. Rudell, Multiple-Valued Logic Minimization for PLA Synthesis, Memorandum No. UCB/ERL M86-65 (Berkeley), 1986.

[43]B. Bachir, A. Ali, M. Abdellah, Multi-objective optimization of an operational amplifier by the ant colony optimization algorithm, Electric. Electron. Eng. 2 (4) (2012) 230235.

[44]J. Wang, S. Jin, S. Qin, H. Jiang, Swarm intelligence-based hybrid models for short-term power load prediction, Math. Probl. Eng. 2014 (2014) https://doi.org/10.1155/2014/712417.

[45]T. Ganesan, I. Elamvazuthi, K. Shari, P. Vasani, Swarm and gravitational search algorithms for multi-objective optimization of synthesis gas production, Appl. Energy (2013) https://doi.org/10.1016/j.apenergy.2012.09.059.

[46]H. Wang, H. Sun, C. Li, S. Rahnamayan, J.-S. Pan, Diversity enhanced particle swarm optimization with neighborhood search, Inf. Sci. 223 (2013) 119135.

[47]S. Chatterjee, A. Sarkar, S. Hore, N. Dey, A. Ashour, V. Balas, Particle swarm optimization trained neural network for structural failure prediction of multistoried RC buildings, Natural Comput. Appl. 28 (8) (2017) 2005–2016.

[48]N. Dey, A. Ashour, S. Bhattachayya, Applied Nature-Inspired Computing: Algorithms and Case Studies, 2019.

[49]N. Dey, Advancements in Applied Meta-heuristic Computing, IGI, 2017.

[50]H.Ahmed, J.Glasgow, Swarm Intelligence: Concepts, Models, and Applications, Schools of Computing, Queen’s University, Technical Report, 201585.

[51]Y. Hei, P. Du, Optimal choice of the parameters of ant colony algorithm, J. Convergence Inf. Technol. 6 (9) (2011) 96104.

Acknowledgements

Publishers note: The publisher wishes to inform readers that the article “Swarm intelligence versus direct cover algorithms in synthesis of Multi-Valued Logic functions” was originally published by the previous publisher of Applied Computing and Informatics and the pagination of this article has been subsequently changed. There has been no change to the content of the article. This change was necessary for the journal to transition from the previous publisher to the new one. The publisher sincerely apologises for any inconvenience caused. To access and cite this article, please use Al-kahtani, M.S., Karim, L., Khan, N. (2020), “Swarm intelligence versus direct cover algorithms in synthesis of Multi-Valued Logic functions”, Applied Computing and Informatics. Vol. ahead-of-print No. ahead-of-print. https://10.1016/j.aci.2020.03.002. The original publication date for this paper was 10/03/2020.

Note for Typesetters: The original publication date for this paper was 10/03/2020

Corresponding author

Mostafa Abd-El-Barr is the corresponding author.

Related articles