Abstract
The conversion between logic and algebraic expressions of Boolean control networks plays a worthy role in the analysis and design of digital circuits. In this paper, for a single Boolean function, a direct conversion between the minterm canonical form and the structure matrix is provided. For a Boolean control network consisting of systems of Boolean functions, two algorithms are developed to achieve the mutual conversion between the logic and algebraic expressions. The presented algorithms decrease exponentially the complexity of the semi-tensor product based method. Some numerical examples are given to demonstrate the algorithms and to compare our method with the existing ones.
1. Introduction
Boolean control network (BCN) is a logical system pioneered by Kauffman in [1] for initially describing genetic regulatory networks, which provides useful modeling tools for dynamical systems whose state-variables take only two values (‘True’ or ‘False’). With the development of information technologies, BCNs have become an effective way to analyze and design circuits by algebraic means in terms of logic gates, and have served as a fundamental approach to digital circuit design, computer programming, and so on (see, e.g., [2,3,4,5,6,7]). With the development of digital circuit, the research on logic synthesis becomes particularly important. Recently, Rushdi and Ahmad [5] used a novel method for obtaining the parametric general solutions of the ‘big’ Boolean equation, which cover the most prominent type among basic problems of digital circuit design. Bandyopadhyay et al. [4] analyzed the effects of different graph-based intermediate representations, inclutding binary decision diagram, and-inverter graph and majority inverter graph, and their usability in making efficient circuit realisations. Wang and Tao [3] introduced the Karnaugh maps of logical systems and used in the analysis and design of clocked sequential circuits and in the simplification of multioutput gate circuits.
In addition to the traditional logical expression, there are some representations to describe dynamics and estimate performances of BCNs. For example, logic differential calculus [8] represents a mathematical methodology developed for analysis of Boolean functions, which enables us to consider the existing estimates of system importance, as well as some additional properties, of BCNs from the unique methodological standpoint (see, e.g., [9,10]).
The semi-tensor product (STP) of matrices is developed in [11] to convert a Boolean function into an algebraic function, and to model a BCN by a standard discrete-time linear system. A comparison of different representations of Boolean functions can be found in [12]. Describing a logical dynamic system as a linear system is useful for studying BCNs in a control-theoretic framework. Examples include the controllability and observability [13,14,15,16], periodicity and stability [17,18,19,20,21,22], optimal control [23,24], identification [25], etc. The computation complexity is a series problem in directly calculating the network transition matrix based on STP, which frames a limitation on the application of algebraic state-space approach. It has been calculated in [3] that the complexity of STP based method is . Recently, Sarda et al. [26,27] proposed a Khatri-Rao product based method to transform the logical form of a BCN into a discrete time bilinear system, which has a complexity of . In other words, the complexity of the STP based method is times that of the Khatri-Rao product based method. This paper will provide a constructive and straightforward method with a complexity of to convert the logic expression to the algebraic expression of a BCN. More concretely, the complexity of the STP based method presented in [11] is times that of the method given in this paper, and the Khatri-Rao product based method presented in [26,27] is times that of ours.
For a BCN, converting the algebraic expression into the logic expression is an integral part for learning the logical meaning of the algebraic result from the algebraic expression. In [16], a mechanical procedure is provided to retrieve the logical network and logical dynamic equations from the network matrix of a BCN. The conversion formula given in [16] is an implicit equation, which converts the algebraic expression for a Boolean function into an irregular form of the logic expression. This paper will provide an explicit equation to directly convert the algebraic expression to a canonical form of the logic expression.
The remainder of this paper is organized as follows. Section 2 introduces some basic concepts about the logic and algebraic expressions of Boolean functions. Section 3 gives a conversion between the minterm canonical form and the structure matrix of a Boolean function. The algorithms for conversion between the logic and algebraic expressions of a BCN are presented in Section 4. The conclusions and future works are drawn in Section 5.
2. Preliminaries
This section reviews some basic concepts from Boolean functions and Boolean control networks (see, e.g., [6,7]).
A Boolean function is a function of the form
where is the logical domain and n is the arity of the function. Any logical function with n variables can be expressed as a propositional formula in variables . For simplicity, the logical disjunction , conjunction and negation are denoted by , and , respec- tively.
A truth table specifies the values of a Boolean function for every possible combination of values of the variables in the function. Label the rows of the truth table of Boolean function (1) by , respectively, and denote by the function value in the row i of the truth table, where .
A minterm of n variables is a product of n literals in which each variable appears exactly once in either true or complemented form, but not both. The minterm which corresponds to the row i of truth table is designated as . Boolean function (1) can uniquely be written as a sum of minterms, i.e.,
which is called the minterm canonical form of f.
Definition 1
([11]). For and , the semi-tensor product (STP) of A and B is defined as
where α is the least common multiple of n and p, I is the identity matrix, ⊗ and × are the Kronecker product and conventional product of matrices, respectively.
The STP has left-right dual forms. The STP mentioned in this paper is the left one. Using STP, a Boolean function can be converted into an algebraic form. Denote by the j-th column of identity matrix , where . Remi-tensor product (STP) of A and B is defined a “True” and “False” by
respectively. Then, Boolean function (1) can be equivalently represented as
For the sake of brevity, a matrix of the form is briefly denoted by .
Lemma 1
([11]). For Boolean function (1), there exists a unique binary matrix such that
in which is called the structure matrix of f.
A Boolean network (BN) with n variables is described as
where are Boolean functions, and are states.
Lemma 2
A Boolean control network (BCN) with m inputs and p outputs is described as
where and are Boolean functions, are states, are inputs and are outputs. Denote by the network of states and inputs, and by the network of states and outputs.
Since the dynamics of a BCN is composed of a set of Boolean functions, the STP can be used to establish the algebraic expression of BCN (6) as follows:
where is state vector, and are input and output vectors, respectively, is the control-depending network transition matrix, is the transition matrix from to (see, e.g., [21,22,23]).
The STP based method has been presented in ([11], Theorem IV.6) for obtaining the algebraic expression of BCNs by introducing the swap matrix, dummy matrix and power reducing matrix, which has a very high computational complexity of (see [3], Theorem 1). Resently, Sarda et al. [26,27] proposed a Khatri-Rao product based method to obtain such an algebraic expression.
Definition 2
([28]). For and , the Khatri-Rao product of A and B is defined to be a partitioned matrix of order as follows:
where (resp. ) is the r-th column of A (resp. B), and ⊗ is the Kronecker product of matrices.
Lemma 3
([26,27]). For BCN (6), the control-depending network transition matrix is , and the transition matrix from to is , where and are the structure matrices of and , respectively.
It is known that at most multiplication operations are requited to compute the Khatri-Rao product of two matrices with sizes of and . Then, at most (resp. ) operations are requited to compute the transition matrix L (resp. H) by using the lemma above. Hence, the computational complexity of Lemma 3 is , which decreases exponentially that of the STP based method. Quantitatively, the complexity of the STP based method is times that of the Khatri-Rao product based method. This paper will provide a method with a much lower complexity.
3. Conversion of Expressions of Boolean Functions
This section presents a direct conversion between the minterm canonical form and the structure matrix of a Boolean function.
3.1. From Logic Expression to Algebraic Expression
There exists a one-to-one correspondence between the truth table and the structure matrix of a Boolean function.
Lemma 4
The structure matrix of a Boolean function can be constructed from the minterm canonical form.
Theorem 1.
Proof.
The minterms presented in (2) are in one-to-one correspondence with the logical value 1 in the truth table. Suppose that the truth table of f is . Then if and only if is a minterm of f, i.e., . It follows from Lemma 4 that if and only if . Hence, if and only if . □
Let us compute the structure matrix of the Boolean function given in ([29], Example 2.5) using Theorem 1.
Example 1.
Consider the Boolean function
The minterm canonical form of f is Then, in (8),
Hence, the structure matrix of f is
Comparing the above example with ([29], Example 2.5), the method based on the minterm canonical form can avoid the complex calculations of STP.
3.2. From Algebraic Expression to Logic Expression
After studying a logical dynamic system in the algebraic state space, it is necessary to convert the algebraic expression back to the logic expression in order to design digital circuits to implement the desired control functions (see, e.g., [3,5]). For a Boolean function, it is claimed in [16] that ‘converting an algebraic form back to logical form is not an easy job’, and a ‘mechanical procedure’ is provided for converting the algebraic expression back to the logic expression as below.
Lemma 5
It can be seen that Equation (9) is implicit, which converts the algebraic expression of a Boolean function into an irregular form of the logic expression. In fact, the minterm canonical form of a Boolean function can directly be obtained from the structure matrix.
Theorem 2.
Proof.
In contrast to the implicit Equation (9) given in Lemma 5, Equation (10) presented in Theorem 2 is explicit, by which the algebraic expression is directly converted into a canonical form of the logic expression. Let us compute the minterm canonical form of the Boolean function whose structure matrix is given in ([16], Example 6) using Theorem 2.
Example 2.
Consider the Boolean function f with structure matrix
Furthermore, the minimization form of f is
Comparing the above example with ([16], Example 6), the explicit equation makes the conversion straightforward. Moreover, given the truth table of a Boolean function, it is possible to write the function as various propositional formulas with irregular forms, while the minterm canonical form is unique up to the order of minterms.
4. Conversion of Expressions of Boolean Control Networks
This section extends the presented approach to Boolean control networks to achieve the mutual conversion between logic and algebraic expressions.
4.1. From Logic Expression to Algebraic Expression
A method for computing the next state of BN (4) is provided in [3] based on the algebraic expression as below.
Lemma 6
The lemma above can be extend to BCNs for converting the logic expression into the algebraic expression.
Theorem 3.
For BCN (6), let be defined by
where is the function value in the row i of the truth table of . Then, the transition matrix of is
In the theorem above, it can be seen that is the decimal representation of the n-bit binary number whose jth bit code is .
Proof.
The following lemma for constructing the transition matrix of can be obtained in almost the same way.
Theorem 4.
For BCN (6), let be defined by
where is the function value in the row i of the truth table of . Then, the transition matrix of is
The following algorithm for converting the logic expression to the algebraic expression of a BCN can then be developed.
Next, let us consider the computational complexity of Algorithm 1 starting from the minterm canonical form.
| Algorithm 1 Algorithm for converting the logic expression to the algebraic expression of BCN (6). |
| Input: Logic expression of (resp. ). |
| Output: Transition matrix L (resp. H). |
| Setp 1. For , construct the truth table of for each , which is denoted by
|
| Setp 2. Compute by Formula (11). |
| Setp 3. The control-depending network transition matrix is given in (12). |
| Setp 4. For , construct the truth table of for each , which is denoted by
|
| Setp 5. Compute by Formula (13). |
| Setp 6. The transition matrix from to is given in (14). |
Theorem 5.
Algorithm 1 has a complexity of .
Proof.
In Step 1 (resp. Step 4), the truth tables of (resp. ) can be obtained directly from their minterm canonical forms without any calculation. In Step 2, the computation cost of is one exponent and n multiplication together with addition. Hence, the number of operations of Step 2 is at most Step 3 requires subtraction operations to compute the transition matrix L. Hence, the computation cost of is Similarly, the computation cost of is , and hence the number of operations of Step 5 is at most . Step 6 requires subtraction operations to compute the transition matrix H. Hence, the computation cost of is Therefore, the computational complexity of Algorithm 1 is . □
The STP based method presented in ([11], Theorem IV.6) and the Khatri-Rao product based method stated in Lemma 3 convert the logic expression into the algebraic expression of BCN (6) starting from the structure matrices, while Algorithm 1 starting from the minterm canonical form. It can be seen from Theorems 1 and 2 that the conversion between the minterm canonical form and the structure matrix of a logical function does not need any calculation. This implies that Algorithm 1, Lemma 3 and ([11], Theorem IV.6) can be viewed as starting from the same point. Then, the computational complexity of the STP and Khatri-Rao product based methods are and times that of Algorithm 1, respectively.
Let us illustrate Algorithm 1 with the following example.
Example 3.
For the BCN depicted in Figure 1, the logical dynamic equations are
Let us give the algebraic expression of such a BCN using Algorithm 1.
Figure 1.
Boolean control network.
- Step 1.
- For , the truth table of for each is listed in Table 1.
Table 1. Truth table relative to (The indexed parameters a and b given together with other parameters are needed only further for Algorithm 2). - Step 2.
- Step 3.
- By (12), the control-depending network transition matrix is
- Step 4.
- For , the truth table of is given in Table 2.
Table 2. Truth table relative to (The indexed parameters and given together with other parameters are needed only further for Algorithm 2). - Step 5.
- Step 6.
- By (14), the transition matrix from to is
| Algorithm 2 Algorithm for converting the algebraic expression back to the logic expression of BCN (7). |
| Input: Transition matrix L (resp. H). |
Output: Logic expression of (resp. ).
|
4.2. From Algebraic Expression to Logic Expression
The logical networks and can be reconstructed from the algebraic expression (7) through conversely applying Algorithm 1.
Let us illustrate the algorithm above with the following example.
Example 4.
Reconstruct the logic network of BCN (18).
- Step 1.
- Step 2.
- Through the decimal-binary conversion, one can calculate for each and , which is presented in Table 1.
- Step 3.
- LetThen, the logic expression of is
- Step 4.
- Step 5.
- Through the decimal-binary conversion, one can calculate for each , which is presented in Table 2.
- Step 6.
- LetThen, the logic expression of is
5. Conclusions
This paper provides an elementary method to achieve the mutual conversion between the logic and algebraic expressions of Boolean functions and Boolean control networks, which are converted by developing two algorithms. The presented method has several advantages comparing with the existing works. Firstly, the computational complexity is reduced. The complexity of the STP based method is quantitatively times that of the method given in this paper. Secondly, the conversion formula is explicit and analytical. Thirdly, the algebraic expression is uniquely converted into the minterm canonical form of logic expression. Finally, the conversion algorithm is reversible, which means that both two sides of the problem for mutual conversion between logic and algebraic expressions can be solved by using a uniform approach. These advantages should be also convenient for investigating some control problems of Boolean control networks, such as the stability, controllability and observability, which are worth studying and exploring in the future work.
Author Contributions
Conceptualization, C.W. and Y.T.; methodology, C.W. and Y.T.; investigation, C.W. and Y.T.; writing—original draft preparation, C.W.; writing—review and editing, Y.T.; supervision, Y.T.; funding acquisition, C.W. and Y.T. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by National Natural Science Foundation of China under grants 61741307 and 61903037, and China Postdoctoral Science Foundation funded project 2020M670164.
Conflicts of Interest
The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| BN | Boolean network |
| BCN | Boolean control network |
| STP | semi-tensor product |
References
- Kauffman, S.A. Metabolic stability and epigenesis in randomly constructed genetic nets. J. Theor. Biol. 1969, 22, 437–467. [Google Scholar] [CrossRef]
- Jamshidi, V. A VLSI majority-logic device based on spin transfer torque mechanism for brain-inspired computing architecture. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 2020, 28, 1858–1866. [Google Scholar] [CrossRef]
- Wang, C.; Tao, Y. Karnaugh maps of logical systems and applications in digital circuit design. Circuits Syst. Signal Process. 2020, 39, 2245–2271. [Google Scholar] [CrossRef]
- Bandyopadhyay, C.; Das, R.; Chattopadhyay, A.; Rahaman, H. Design and synthesis of improved reversible circuits using AIG- and MIG-based graph data structures. IET Comput. Digit. Tech. 2019, 13, 38–48. [Google Scholar] [CrossRef]
- Rushdi, A.M.; Ahmad, W. Digital circuit design utilizing equation solving over ‘big’ Boolean algebras. Int. J. Math. Eng. Manag. Sci. 2018, 3, 404–428. [Google Scholar] [CrossRef]
- Roth, C.H.; Kinney, L.L. Fundamentals of Logic Design; CENGAGE Learning: Stamford, USA, 2010. [Google Scholar]
- Schneeweiss, W.G. Boolean Functions with Engineering Applications and Computer Programs; Springer-Verlag: London, UK, 1989. [Google Scholar]
- Steinbach, B.; Posthoff, C. Boolean differential calculus. Synth. Lect. Digital Circuits Syst. 2017, 12, 1–217. [Google Scholar] [CrossRef]
- Zaitseva, E.N.; Levashenko, V.G. Importance analysis by logical differential calculus. Autom. Remote Control 2013, 74, 171–182. [Google Scholar] [CrossRef]
- Schneeweiss, W.G. A short Boolean derivation of mean failure frequency for any (also non-coherent) system. Reliab. Eng. Syst. Saf. 2009, 94, 1363–1367. [Google Scholar] [CrossRef]
- Cheng, D.; Qi, H. A linear representation of dynamics of Boolean networks. IEEE Trans. Autom. Control 2010, 55, 2251–2258. [Google Scholar] [CrossRef]
- Rushdi, A.M.; Ghaleb, F. A tutorial exposition of semi-tensor products of matrices with a stress on their representation of Boolean functions. J. King Abdulaziz Univ. 2016, 5, 3–41. [Google Scholar] [CrossRef]
- Fornasini, E.; Valcher, M.E. Observability, reconstructibility and state observers of Boolean control networks. IEEE Trans. Autom. Control 2013, 58, 1390–1401. [Google Scholar] [CrossRef]
- Laschov, D.; Margaliot, M.; Even, G. Observability of Boolean networks: A graph-theoretic approach. Automatica 2013, 49, 2351–2362. [Google Scholar] [CrossRef]
- Laschov, D.; Margaliot, M. Controllability of Boolean control networks via the Perron-Frobenius theory. Automatica 2012, 48, 1218–1223. [Google Scholar] [CrossRef]
- Cheng, D.; Qi, H. Controllability and observability of Boolean control networks. Automatica 2009, 45, 1659–1667. [Google Scholar] [CrossRef]
- Guo, Y.; Shen, Y.; Gui, W. Asymptotical stability of logic dynamical systems with random impulsive disturbances. IEEE Trans. Autom. 2020. [Google Scholar] [CrossRef]
- Yerudkar, A.; Del Vecchio, C.; Glielmo, L. Feedback stabilization control design for switched Boolean control networks. Automatica 2020, 116, 108934. [Google Scholar] [CrossRef]
- Kobayashi, K.; Hiraishi, K. Design of probabilistic Boolean networks based on network structure and steady- state probabilities. IEEE Trans. Neural Netw. Learn. Syst. 2017, 28, 1966–1971. [Google Scholar] [CrossRef]
- Kadelka, C.; Kuipers, J.; Laubenbacher, R. The influence of canalization on the robustness of Boolean networks. Phys. D: Nonlinear Phenom. 2017, 353–354, 39–47. [Google Scholar] [CrossRef]
- Bof, N.; Fornasini, E.; Valcher, M.E. Output feedback stabilization of Boolean control networks. Automatica 2015, 57, 21–28. [Google Scholar] [CrossRef]
- Fornasini, E.; Valcher, M.E. On the periodic trajectories of Boolean control networks. Automatica 2013, 49, 1506–1509. [Google Scholar] [CrossRef]
- Fornasini, E.; Valcher, M.E. Optimal control of Boolean control networks. IEEE Trans. Autom. Control 2014, 59, 1258–1270. [Google Scholar] [CrossRef]
- Laschov, D.; Margaliot, M. Minimum-time control of Boolean networks. SIAM J. Control Optim. 2013, 51, 2869–2892. [Google Scholar] [CrossRef]
- Melkman, A.A.; Cheng, X.; Ching, W.; Akutsu, T. Identifying a probabilistic Boolean threshold network from samples. IEEE Trans. Neural Netw. Learn. Syst. 2018, 29, 869–881. [Google Scholar] [CrossRef]
- Sarda, K.; Yerudkar, A.; Del Vecchio, C. Disturbance decoupling control design for Boolean control networks: A Boolean algebra approach. IET Control. Theory Appl. 2020. [Google Scholar] [CrossRef]
- Sarda, K.; Yerudkar, A.; Del Vecchio, C.; Glielmo, L.; Singh, N. Subspace and coordinate transformation for Boolean control networks using binary logic. In Proceedings of the 27th Mediterranean Conference on Control and Automation (MED), Akko, Israel, 1–4 July 2019; pp. 328–333. [Google Scholar]
- Khatri, C.G.; Rao, C.R. Solutions to some functional equations and their applications to characterization of probability distributions. Sankhya Indian J. Stat. Ser. A 1968, 30, 167–180. [Google Scholar]
- Cheng, D.; Qi, H. Matrix expression of logic and fuzzy control. In Proceedings of the 44th IEEE Conference on Decision and Control, Seville, Spain, 12–15 December 2005; pp. 3273–3278. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).