Information Theory over Multisets
Abstract
Starting from Shannon theory of information, we present the case of producing information in the form of multisets, and encoding information using multisets. We compute the entropy of a multiset information source by constructing an equientropic string source (with interdependent symbols), and we compare this with a string information source with independent symbols. We then study the encoder and channel part of the system, obtaining some results about multiset encoding length and channel capacity.
Full text
Information Theory over Multisets Cosmin Bonchi¸s1, Cornel Izba¸sa1, Gabriel Ciobanu2 1Research Institute “e-Austria” Timi¸soara, Romania {cosmin, cornel}@ieat.ro 2“A.I. Cuza” University, Faculty of Computer Science and Romanian Academy, Institute of Computer Science [email protected] “The words, the sad words, Sometimes surround the time As a pipe, the water which flows within.” Nichita St˘anescu Summary. Starting from Shannon theory of information, we present the case of producing information in the form of multisets, and encoding information using multisets. We compute the entropy of a multiset information source by constructing an equientropic string source (with interdependent symbols), and we compare this with a string information source with independent symbols. We then study the encoder and channel part of the system, obtaining some results about multiset encoding length and channel capacity. 1 Motivation The attempt to study information sources which produce multisets instead of strings, and ways to encode information on multisets rather than strings, originates in observing new computational models like membrane systems which employ multisets [5]. Membrane systems have been studied extensively and there are plenty of results regarding their computing power, language hierarchies and complexity. However, while any researcher working with membrane systems (called also P systems) would agree that P systems process information, and that living cells and organisms do this too, we are unaware of any attempt to precisely describe natural ways to encode information on multisets or to study sources of information which produce multisets instead of strings. One could argue that, while some of the information in a living organism is encoded in a sequential manner, like in DNA for example, there might be important molecular information sources which involve multisets (of molecules) in a non-trivial way. A simple question: given a P system with, say, 2 objects aand 3 objects b from a known vocabulary V(suppose there are no evolution rules), how much
74 C. Bonchi¸s, C. Izba¸sa, G. Ciobanu information is present in that system? Also, many examples of P systems perform various computational tasks. Authors of such systems encode the input (usually numbers) in various ways, some by superimposing a string-like structure on the membrane system [1], some by using the natural encoding or the unary numeral system, that is, the natural number nis represented with nobjects, for example, an. However, just imagine a gland which uses the bloodstream to send molecules to some tissue which, in turn, sends back some other molecules. There is for sure an energy and information exchange. How to describe it? Another, more general way to pose that question is: what are the natural ways to encode numbers, and more generally, information on multisets, and how to measure the encoded information? If membrane systems, living cells and any other (abstract or concrete) multiset processing machines are understood as information processing machines, then we believe that such questions should be investigated. According to our knowledge, this is the first attempt of such an investigation. We start from the idea that a study of multiset information theory might produce interesting, useful results at least in systems biology; if we understand the natural ways to encode information on multisets, there is a chance that Nature might be using similar mechanisms. Another way in which this investigation seems interesting to us is that there is more challenge in efficiently encoding information on multisets, because they constitute a poorer encoding media compared to strings. Encoding information on strings or even richer, more organized and complex structures are obviously possible and have been studied. Removing the symbol order, or their position in the representation as strings can lead to multisets carrying a certain penalty, which deserves a precise description. Order or position do not represent essential aspects for information encoding; symbol multiplicity, a native quality of multisets, is enough for many valid purposes. We focus mainly on such “natural” approaches to information encoding over multisets, and present some advantages they have over approaches that superimpose a string structure on the multiset. Then we encode information using multisets in a similar way as it is done using strings. There is also a connection between this work and the theory of numeral systems. The study of number encodings using multisets can be seen as a study of a class of purely non-positional numeral systems. 2 Entropy of an Information Source Shannon’s information theory represents one of the great intellectual achievements of the twentieth century. Information theory has had an important and significant influence on probability theory and ergodic theory, and Shannon’s mathematics is a considerable and profound contribution to pure mathematics. Shannon’s important contribution comes from the invention of the sourceencoder-channel-decoder-destination model, and from the elegant and general solution of the fundamental problems which he was able to pose in terms of this model. Shannon has provided significant demonstration of the power of coding with delay
Information Theory over Multisets 75 in a communication system, the separation of the source and channel coding problems, and he has established the fundamental natural limits on communication. As time goes on, the information theoretic concepts introduced by Shannon become more relevant to day-to-day more complex process of communication. 2.1 Short Review of Shannon Information Theory We use the notions defined in the classical paper [6] where Shannon has formulated a general model of a communication system which is tractable to a mathematical treatment. Definition 1. The quantity His a reasonable measure of choice or information. Consider an information source modeled by a discrete Markov process. For each possible state iof the source there is a set of probabilities pi(j) associated to the transitions to state j. Each state transition produces a symbol corresponding to the destination state, e.g., if there is a transition from state ito state j, the symbol xjis produced. Each symbol xihas an initial probability pi∈1..n corresponding to the transition probability from the initial state to each state i. We can also view this as a random variable Xwith xias events with probabilities pi, X =x1x2··· xn p1p2··· pn. There is an entropy Hifor each state. The entropy of the source is defined as the average of these Hiweighted in accordance with the probability of occurrence of the states: H(X) = X i PiHi=−X i,j Pipi(j) log pi(j) (1) Suppose there are two symbols xi, xjand p(i, j) is the probability of the successive occurrence of xiand then xj.The entropy of the joint event is H(i, j) = −X i,j p(i, j) log p(i, j) The probability of symbol xjto appear after the symbol xiis the conditional probability pi(j). String Entropy Consider an information source which produces sequences of symbols selected from a set of nindependent symbols xiwith probabilities pi. The entropy formula for such a source is given in [6]: H(X) = n X i=1 pilogb 1 pi
76 C. Bonchi¸s, C. Izba¸sa, G. Ciobanu 2.2 Multiset Entropy We consider a discrete information source modeled by a discrete-time first-order Markov process (or Markov chain) which produces multiset messages (as opposed to string messages). A message is a multiset of symbols. To compute the entropy of such a source, we construct an equientropic source which produces strings with mutually dependent symbols. Each string produced by this equientropic source is an exponent of a multiset produced by the multiset source, because a multiset is a string equivalence class. The entropy of such a source is computed by Shannon’s formula 1, where Pi is the probability of state i, and pi(j) is the transition probability from state ito state j. To compute the probability of the state iwe must first observe what is specific for the multisets. The corresponding state trees are presented in the next figures. ? ? ? = ZZZZZZZZ~ AAAAU JJJ J^ AAA AU @@@@ @R S0 S1S2S3 S4S5S6S7S8S9S10 S11 S12 x1 x2 x3 x1x2 x3x1x2 x3x1x2 x3 Fig. 1. String source states tree We take the Pifor the first level of the tree, and because P0= 1 we get: Pi=P0p0(i) = pi(2) To compute the transition probability pi(j) we know that for multisets p(i, j) = 0 for i > j. Let Nbe the number of all symbols (with repetition allowed). Then the most probable number of symbols xjis pjN. For i≤j, in order to obtain jafter i, we observe that the symbols xi>j cannot be produced. Therefore, the probability to obtain jafter iis given by the number of favorable cases over all possible cases
Information Theory over Multisets 77 ? ? = SSSSS Sw ? AAA AU ? JJJ J^ S0 S1S2S3 S4S5S6S8S9S12 x1 x2 x3 x1 x2 x3x2x3x3 Fig. 2. Multiset source states tree pi(j) = pjN N− i−1 X j=1 pjN =pj n X j=i pj namely pi(j) = 0, i > j pj Pn j=ipj , i ≤j(3) Theorem 1. The entropy formula of a multiset generating information source is: H(X) = − n X i=1 pi n X j=i pj Pn k=ipk log pj Pn k=ipk.(4) Proof. From 1, 2, and 3 we infer H(X) = −X i,j,i≤j pi pj Pn k=ipk log pj Pn k=ipk =− n X i=1 pi n X j=i pj Pn k=ipk log pj Pn k=ipk. Proposition 1. When the events are equiprobable, i.e., pi=1 n, then
78 C. Bonchi¸s, C. Izba¸sa, G. Ciobanu H(X) = log n! n. Proof. We substitute 1 nfor piin equation (4), and get H(X) = − n X i=1 1 n n X j=i 1 n Pn j=i 1 n log 1 n Pn j=i 1 n!! =−1 n n X i=1 n X j=i 1 n−i+ 1 log 1 n−i+ 1 =−1 n n X i=1 1 n−i+ 1 log 1 n−i+ 1n X j=i 1 =1 n n X i=1 log(n−i+ 1) =1 n n X i=1 log i=log n! n. String Source Entropy vs. Multiset Source Entropy Theorem 2. The entropy of a multiset-producing source is lower than or equal to the entropy of an equiprobable string-producing source: Hmultiset ≤Hstring(xi−equiprobable) Proof. We know that Pn i=1 pi= 1 ⇒Pn k=ipk≤1⇒ pj Pn k=ipk≥pj(5) Gibbs inequality suppose that P={p1, p2,...,pn}is a probability distribution. Then for any other probability distribution Q={q1, q2,...,qn}the following inequality holds − n X i=1 pilog pi≤ − n X i=1 pilog qi(6) Then
Information Theory over Multisets 79 Hm(X) = − n X i=1 pi n X j=i pj Pn k=ipk log pj Pn k=ipk(5) ≤ ≤ − n X i=1 pi n X j=i pj Pn k=ipk log pj=− n X i=1 pi Pn k=ipk n X j=i pjlog pj (6) ≤ (6) ≤ − n X i=1 pi Pn k=ipk n X j=i pjlog qj with Qi={qj|where, j=i, n and Pn j=iqj= 1}, and qj=1 n−i+ 1: − n X i=1 pi Pn k=ipk n X j=i pjlog qj=− n X i=1 pi Pn k=ipk n X j=i pjlog 1 n−i+ 1 =− n X i=1 pi Pn k=ipklog 1 n−i+ 1n X j=i pj= n X i=1 pilog(n−i+ 1) ≤ ≤ n X i=1 pilog n= log n=Hstring(X)xi−equiprobable Corollary 1. When Xis equiprobable, Hm≤Hs. Proof. For pi=1 nwe have Hmultiset =1 n n X i=1 log i=log n! n≤log n=Hstring Maximum Entropy for a Multiset Source For a multiset source, equiprobable events do not generate the maximum entropy. This is obtained by maximizing expression 4, which seems difficult in the general case, but we give an example for the simplest case - with two events (a binary multiset source): X=x1x2 p1p2 The multiset entropy for these events is: Hmultiset(X) = −p1(p1log p1+ p2log p2). Let p=p1⇒Hmultiset(X) = −p[plog p+ (1 −p) log(1 −p)].Since this function has only one maximum in [0,1], we need to solve: H0 multiset(X) = 2p[log(1 −p)−log p]−log(1 −p) = 0. A numerical solution is p≈0.703506. The maximizing probability distribution is X≈x1x2 0.703506 0.296494and the maximum entropy is Hmultiset(X)≈0.427636 < Hstring (Xequiprobable) = log 2 ≈0.6931472.
80 C. Bonchi¸s, C. Izba¸sa, G. Ciobanu 3 Multiset Encoding and Channel Capacity After exploring the characteristics of a multiset generating information source, we move to the channel part of the communication system. Properties of previously developed multiset encodings are analyzed in [2, 3]. A formula for the capacity of multiset communication channel is derived based on the Shannon’s general formula. Please note that one can have a multiset information source and a usual sequence-based encoder and channel. All the following combinations are possible: Source/Encoder Sequential Multiset Sequential [6] this paper Multiset this paper this paper Table 1. Source/Encoder types 3.1 String Encoding We shortly review the results concerning the string encoding. Encoding Length We have a set of symbols Xto be encoded, and an alphabet A. We consider the uniform encoding. Considering the length lof the encoding, then X={xi= a1a2...al|aj∈A}. If pi=P(xi) = 1 n, then we have H(X) = n X i=1 1 nlogb(n) = logb(n)≤l It follows that n≤bl. For n∈N,n−bx= 0 implies x0= logbnand so l=dx0e=dlogbne. Channel Capacity Definition 2. [6] The capacity Cof a discrete channel is given by C= lim T→∞ log N(T) T where N(T)is the number of allowed signals of duration T.
Information Theory over Multisets 81 Theorem 3. [6] Let b(s) ij be the duration of the sthsymbol which is allowable in state iand leads to state j. Then the channel capacity Cis equal to log Wwhere Wis the largest real root of the determinant equation: X s W−b(s) ij −δij = 0 where δij = 1 if i=j, and zero otherwise. 3.2 Multiset Encoding We present some results related to the multiset encoding. Encoding Length We consider a set Xof Nsymbols, an alphabet A, and the length of encoding l, therefore: X={xi=an1 1an2 2. . . anb b|Pb j=1 nj=l, aj∈A}. Proposition 2. Non-uniform encodings over multisets are shorter than uniform encodings over multisets. Proof. Over multisets we have 1. for an uniform encoding: N≤N(b, l) = b l=b+l−1 l=(b+l−1)! l!(b−1)! = Qb−1 i=1 (l+i) (b−1)! . If x0is the real root of n−Qb−1 i=1 (x+i) (b−1)! = 0 then l=dx0e. 2. for non-uniform encoding: N≤N(b+ 1, l −1) = b+ 1 l−1=b+l−1 l−1 =(b+l−1)! (l−1)!b!=Qb−1 i=0 (l+i) b!=l bQb−1 i=1 (l+i) (b−1)! =l bN(b, l). Let x0 0be the real root of n−Qb−1 i=0 (x+i) b!= 0. Then l0=lx0 0m. From n−N(b, x0) = 0 and n−x0 0 bN(b, x 0 0) = 0 we get N(b, x0) = x0 0 bN(b, x 0 0). In order to prove l > l0⇐⇒ x0> x0 0, let suppose that x0≤x0 0. We have x0 0> b(for sufficiently large numbers), and this implies that N(b, x0)≤N(b, x0 0)< x0 0 bN(b, x 0 0). Since this is false, it follows that x0> x0 0implies l≥l0. Channel Capacity We consider that a sequence of multisets is transmitted along the channel. The capacity of such a channel is computed for base 4, then some properties of it for any base are presented.