• Nebyly nalezeny žádné výsledky

View of State of a Logical Object

N/A
N/A
Protected

Academic year: 2022

Podíl "View of State of a Logical Object"

Copied!
6
0
0

Načítání.... (zobrazit plný text nyní)

Fulltext

(1)

1 Introduction

The state of a (logical) object is generally not specified and is intuitively regarded as sufficiently obvious. Often, the state is conceived in connection with the input history of the object.

The state of an entity, let us say the determination of its state alphabet, identification of the object is fatally depend- ent. Moreover, if the identification of an entity follows one and the same objective even several different final automaton models of the object, which satisfy the given objective, can be constructed [1].

The observer who identifies the object may be satisfied with the recurrent definition of the state presented in this article and, as we hope, could be persuaded that a stimulus affecting the object only initiates (provokes) the transition between the states of the object whereas it is the initial state of the transition which effectuates the transition.

It is to be believed that (the physical untenability of) the so called determinization of a nondeterministic final automaton model will be shown to be physically untenable as it initially respects the randomness, which it later formally ignores.

2 State of a logical object

A logical object receives and sends quantum signals. Let- ters from the inputXand outputYalphabets denote individ- ual input and output quanta, respectively. By analogy, the quanta of the anticipated inner signals (states) in the object are denoted by letters of the state alphabetS.

The sampling of the input signals (stimuli) is random, and is determined by the neighbourhood of the object. The sam- pling of state and output signals (responses or reactions) in an asynchronous object is derived state from the sampling of output signals. In a synchronous object the sampling is done indirectly in a tenacious way so that the subject has delegated the sampling to the generator of the synchronizing pulses. If the object synchronises itself by means of a synchroniser, the situation can be denoted as an autosynchronous object, or the object of state sampling and the respective responses ‘forces’

the neighbourhood to accept a speed independent object.

LetTbe a set of sampling moments and the binary rela- tionp:T2: ,t t¢ be a relationship of a strong arrangement on T, tpt¢, meaning that momenttwas initiated before moment

¢

t. The monomorphism from T,p to N,< is said to hold if there exists a simple function f T: ®N:tav such that

tpt¢ Þ f t( )< f t( ),¢

whereNis a set of integers including zero. If f t( )=vand f t( )¢ = +v 1, momenttis said to have initiated immediately before momentt¢. In addition, let there beAN, esp.A(m)orAÆ,

whereAis one of the alphabets andmis the time moment (mÎN), set {N®A}, esp.{{ }m ® A}, or {Æ ®A}of all representations N®A:0aai0,1aai1,K(=a a0 1K), spec.

{ }m ®A:maai(=am), orÆ ®A:andai(=e).

Let us therefore, denote

ë û

AN , esp .

ë û

A{ }m , eitherAN

orAÆ(={e}), esp. eitherA{m}, orAÆ(={e}) and also

ë

a a0 1K

û

,

esp.

ë û

am , eithera0a1… ore, esp. eitheramore.

The performance of a deterministic logical object with a given inputX, stateS, and outputYalphabets can be modeled by a system of functions consisting of the

l transition function

d:S{ }n ´X{ }n ®S{n+1}: sn,xn asn+1

l output function

[ ] [ ]

l:S{ }n ´ X{ }n ®Y{ }n : sn, xn a yn+1

i.e. either sn,xn a yn+1orsna ynof the Mealy, or Moore, type respectively, wherenis the current moment of sampling and xn, sn, yn are the respective current stimulus, state, re- sponse; momentn+1 is the immediate follower of momentn andsn+1is the follower state of statesn. However, since the future state sn+1, is not yet at our disposal (!), the value of the transition function is given by the current predication of state

sn+1pred sn n( +1), i.e.

( )

d:Sn ´X n ® Sn+1 { }n : sn,xn a pred sn n( +1).

Being aware of the fact above, we will keep to the tradi- tional notation of function d. Note also that the transition function offers, in fact, two possibilities causing the transition from statesnto that ofsn+1: the starting state of transitionsn and stimulusxn; it remains only to decide which cause is the dominant one.

Since the postdictionpostn(sn-1) of predecessor statessn-1 to the current state is not generally unambiguous, i.e., for

( ) ( )

d sin-1,xn-1 =d snj-1,xn-1 =sn

we can admitsin-1¹snj-1(i¹j) we will introduce a general- ized transitiondfunction

d:S{ }n ´X{ ,n n+1,K, }m ®S{m+1}: sn,x xn n+1Kxm asm+1 recurrently so that

d d( ( ,sn x xn n+1Kxm-1),xm)=sm 1+.

State of a Logical Object

J. Bokr, V. Jáneš

The paper deals with the state and performance of a logical object on a state-differentiating level and with the so called determinization of a finite – automaton model.

Keywords: logical object, state, state transition, finite automaton.

(2)

It can be intuitively stated that the state of an object is defined by the entire input cumulated prehistoryHof the ob- ject. The responseynis a value of the output function:

l:H{ }n ´

[

X{ }n

]

®Y{ }n : hn,

[ ]

xn a yn

of an output blockOof the object, wherehnis the instanta- neous input prehistory. Therefore, we expect the given object to be divided into two components: the fixatorFof the input prehistoryhand the output blockO(Fig. 1).

FixatorFrecords and issues the input prehistory; since, however,Fdoes not delete (!) every recorded prehistoryH, the prehistory is kept in a cumulated form (let us imagine, e.g., the whole Bible recorded on one current page of paper).

A performance model of fixatorFis a transition function d:H{ }n ´X{ }n ® H{n+1}: h xn n, ahn+1.

First let there beHÍ XNand

H=x x0 1Kxn-1(x x0 1Kxn-1XN

[2] and consider an initially finite automaton model of the fixator [3]

F= X X, N,d1,e whered1is the transition function

d n n n

n n

1 0 1 1

0 1 1

: : [ ],

[ ]

[

X

]

X{ } X x x x x

x x x x

N ´ ® N -

-

K a

a K

andNis a set of integer numbers including zero. For the tran- sition functiond1there holds (i¹ j):

l x xi0 1iKxin-1=x x0 1j jKxnj-1Þ x xi0 1iKxin-1xn =x x0 1j jKxnj-1xn

l x xi0 1iKxin-1¹ x x0 1j jKxnj-1Þ x xi0 1iKxin-1xn¹ x x0 1j jKxnj-1xn

l(Fig. 2a) and not

x xi0 1iKxin-1¹ x x0 1j jKxnj-1Þ x xi0 1iKxin-1xn=x x0 1j jKxnj-1xn, (whereÞŢis the statement of an implication) which can also be rightly required (Fig. 2b),

lit can be legitimately required that

d(x x0 1Kxn-1xn)=x x0 1Kxn-1, esp.d( ,e xn)=e, this is, how- ever, contradictory (Fig. 3).

Let us write more cunninglyH=(XN/ ) andº h={x x0 1Kxn} ({x x0 1Kxn}Î(XN/ )º [3, 4, 5],

where (XN/ )º is the finite partition on XN defined on XN through theNerodeequivalence the class of partition (XN/ )º is denoted and we can consider the fixator model

F= X X, ( N/ ),º d2, { }e , whered2is the transition function

d n

n n n

2

0 1 1 0 1 1

: ( / ) ( / ) :

,

{ }

[{ }] {[

X X X

x x x x x x x

N º ´ ® N º

- -

K a K

] }

xn .

We have still to define the right-side congruence NerodeequivalenceºonXN; the input words x xi0 1iKxin and x x0 1j jKxnj(i¹ j) are said to be right-side congruent, if there holds

ld2 0 1 n d n

2 0 1

(

{ },e x xi iKxi

)

=

(

{ },e x xj jKxj

)

ld2

(

{ },e x xi0 1iKx xin n+1xn+2Kxm

)

=

=d2

(

{ },e x x0 1j jKx xn nj +1xn+2Kxm

)

For the transition functiond2there is (i¹ j):

l{x xi0 1iKxin-1}={x x0 1j jKxnj-1}Þ Þ{x xi0 1iKxin-1xn}={x x0 1j jKxnj-1xn}

l{x xi0 1iKxin-1}¹{x x0 1j jKxnj-1}Þ Þ{x xi0 1iKxin-1xn}=¹{x x0 1j jKxnj-1xn} where=¹means either = or¹,

l{ ,a xn}={ }e is legitimate.

If we write both SÍ XN, s0=e, sn=x0 x1xn-1 and sn+1=x x0 1Kxn-1xnand thenS=(XN/ ) ,º

s0={e},sn={x0 x1xn-1} andsn+1={x x0 1Kxn-1xn}, then, obviously, the first conception is equivalent to the transition:

lsin¹snjÞd1( ,sin nx )¹d1( ,sn nj x ), but this is not so with the transitions:

lsin¹snjÞd1( ,sin nx )=d1( ,sn nj x ) x

h O y F

Fig. 1: Division of the object into fixatorFand output blockO

a)

b)

Fig. 2: Pairs of legitimized transitions of fixatorF: a) correct, b) contradictory

Fig. 3: Justified, but contradictory transitions of fixatorF

(3)

ld1( ,sn nx )=sn, esp.d1( ,s0 x0)=s0,

whereas, even under the condition that the second concep- tion will cope with the transitions:

lsin¹snjÞd2( ,sin nx )¹d2( ,sn nj x )

lsin¹snjÞd2( ,sin nx )=d2( ,sn nj x )

ld2( ,sn nx )=sn, esp.d2( ,s0 x0)=s0,

it is still closely connected with the problematic acceptance of the empty wordeby the object.

Example 1: Let the input alphabet {a,b,c} be given, and let at:

1) S={ ,(e cÚbc) ,(* cÚ bc b c) ,(* Úbc ba c)* ,( Ú bc a) }* , where*, Úare respective iterations, disjunctions and concatenation of the Kleene algebra of regular expressions, a transition functiond1being defined as:

ld1( , )e e =e,d1( ,(e cÚ bc) )* = Ú(c bc)*,

ld1( ,(e cÚ bc b) )* = Ú(c bc b)* ,

ld1( ,(e cÚ bc ba)* )= Ú(c bc ba)* , d1( ,(e cÚ bc a)* )= Ú(c bc a)* .

If we make an unwilling and unreal compromise that 1= = Úe (c bc)*, 2= Ú(c bc b)* and 3= Ú(c bc ba)* = Ú(c bc a,)*

we obtain the transition diagram from Fig. 4.

2) S=

{

{ ,(e cÚbc) },{(* cÚ bc b) },{(* cÚ bc ba c)* ,( Úbc a) }*

}

=

={ , , }1 2 3 , where 1={ ,(e cÚ bc) }*, 2={(cÚ bc b) }* and 3={(cÚbc) (*aÚ bc) }*, the transition function d2 being defined:

ld2( , )1e =d2( , (1 cÚ bc) )* =1,

ld2( , (1 cÚ bc b) )* =2,

ld2( , (1 cÚ bc a)* )=d2( , (1 cÚ bc ba)* )=3, we obtain Fig. 4.

Not defining the state as a cumulated input history or as a block of the final decomposition (Nerode), we can now recurrentlydefine the state of a logical object:

lthe initial states0, i.e.,d(s0,|)=s0, where | is a separator, is a state,

lsx+1is a state if there holdsd(s0,x0,x1,K,xx+1).

Let us consider the transition functiond( ,sn nx )=sn+1and ask whether according to the transition function the cause of the transition from initiating statesnto follower statesn+1can be assumed. A general opinion is that the cause of the state transition is merely the stimulusx[6]. By analogy, the only cause of the state transition can be assumed to be its initial state sn. Both strict conceptions do not seem to be very convincing, since the cause of transition of an object to the follower statesn+1can be regarded both as the statesn, and the stimulusxn. Let us traditionally characterize the causessnorxn as necessary or sufficient, respectively. (Let us admit that a sufficient cause always initiates the transition of an object to sn+1, but need not always result in attaining the object sn+1; if the object has attained state sn+1, then it was certainly due to the necessary cause.) Since both d( ,sin nx )=d( ,sn nj x )=sn+1 andd( ,sn nxi)=d( ,sn nxj)=sn+1can be admitted forsin¹sjnor xin¹ xnj, respectively, a decision cannot be made which of the causes,snorxn, is necessary and which is sufficient. Thus, let us characterize causessnandxnas executing and initiating causes and decide which of them is the executing cause, and which is the initiating cause. Let us, therefore, assume the fol- lowing logical objects:

a) a frog sitting on a water lily leaf in a pond,

b) loose material in a discharging hopper and a truck, c) a logical object.

ad a) A frog sitting on a water lily leaf – initial transition state (sn) – spots an insect – stimulusxn– jumps on to another leaf to catch the insect – follower state (sn+1). The stimulus is obvi- ously a mere initiator of the jump, whereas the initiating state is its executor of the jump.

ad b) Opening the discharging valve – stimulusxn– produces the pouring of sand from the hopper – initiating transition statesn– into the truck – follower state (sn+1). Again, the stim- ulus only initiates the pouring of sand, whereas the sand in the discharging hopper is the executor of the pouring.

ad c) Since dynamic logical objects are designed through ca- nonical decomposition and since a substitute of the given object is usually a parallel register of flip flop circuits or unit delay circuits, and since each flip flop circuit is again designed through canonical decomposition (without respect to the in- tuitively designed RS-flip flop circuit), and since the substitute of the selected flip flop circuit in canonical decomposition is a unit delay circuit, let us examine its action. The unit delay circuit is the only dynamic element, since its finite – automa- ton model is an ordered trio

D, ,Q dD

whereD, Q is the respective input state alphabet anddis the transition function dD:D{ }n ®(Q{n+1} { }) n :Dn=pred qn n( +1) proving the indivisibility of the unit delay circuit. Across the pulse front, or the fall time of stimulusDn, when identifying the imperceptible intermediate state with the initial state of transition qn (otherwise a delay cannot be mentioned), the delay circuit, after the given time has elapsed, passes from initial stateqnto follower state qn+1 immediately and spontaneously.

Spontaneous realization of delay circuit state transitions after some time has elapsed from the instant of acceptance of the change of stimulusDnby the delay circuit is, however, a a

b c

2 1

3 a c

Fig. 4: Transition diagram of the automaton from Example 1

(4)

fiction. In which way, then, should the realization of the state transition from qn to qn+1 through an uninvited change of stimulusDnbe explained; We have to the transition fromqnto qn+1of the respective delay circuits was usually effected by the initial state of the transitionqn. Let us then follow the succes- sive action, without loss of generality, of a binary symmetrical delay circuit with the delaytaccording to Fig. 5 a), b).

It is necessary to explain what happens to the object dur- ing the transition from statesnto statesn+1. Without any doubt the object is in some uninteresting, imperceptible intermedi- ate state, which is not taken into account by the model. Since an object is determined by its model there is no other way than to identify the intermediate state either with initiating statesnor with follower statesn+1of the transition; the inter- mediate state is, in fact, made respected by the model. Since the above mentioned identification appears not to be effected it is sometimes stated that the Mealy automaton produces a responseynduring the transitiond( ,sn xn)=sn+1. If the inter- mediate state of the state transition is identified either with the initiating state or with the state of the end transition, the state transition of the finite – automaton model is instanta- neous. In this way, space of a state transition in a logical object itself can be taken into account.

Let us mention the acceptance of an empty wordeby an object. Since the empty worde(as an empty setÆ) is an empty concept, i.e., a concept with a controversial content and an empty extent (an empty word does not contain any word of length 1, whereas a word is determined by the sequence of its words of length 1) the acceptance ofeby a logical object can

be only virtual. We say that an object with the same initial and end states0accepts an empty worde-d(s0, )e =s0– (Fig. 6);

if the reader does not agree with the above statement, we will introduce an unempty wordxnon the object, which will be transferred by the object to a stable, for xn retaining state zn-d(s0,xn)=zn,d( ,zn xn)=zn, and we will state that prior to the introduction of the wordxnthe object accepted empty worde. Thus, the transitionsd( , )sn e =snare imaginary since the acceptance ofeby the object is virtual. Onlyd( ,| )sn n =sn is offered, which is a virtual state transition initiated by sepa- rating word |n, where | is the separator (usually a space) and is a letter, though unpublished, of the input alphabetX.

3 ‘Determinization’ of a

nondeterministic automaton

Let, without generality loss, a final-automaton model of a nondetermistic logical object be a semiautomatonA

A= X, ,S d wheredis the transition relation

d:S{ }n ´ X{ }n ´S{n+1}: sn,x sn n, +1

andsn+1is one of the possible states of the followers of initial transition statesn, i.e.,

sn+1ÎSn+1,

{ }

S proj s x s

s

n n n n

+1= 3 +1 n+

, , 1.

The transition from state sn to just one of the possi- ble states of the followers from Sn+1 along with stimulus xn initiated by an implicit (inaccessible for the observer – immea- surable) random fault; the fault is not meant only as a failure of the object but also as an action effect of the neighborhood or of the object itself.

The so called determinization of a nondeterministic automaton transforms a nondeterministic automaton to a deterministic one [7]. To all possible followers of each initial state of thetransitionof the given nondeterministic automaton we will find all of their possible followers, and then, purely in a speculative way, we will specify them as the initial states of transitions and also find of their possible followers, etc., as long as the procedure renders the sets of possible follower states that have not occurred so far. Then we will substitute each set of possible statesS, formed in this way, by the only certain state of the ‘determinizated’ nondeterministic autom- aton so that the mutually different sets are assigned different states. Hence the transition function dd of the ‘determin- izated’ nondeterministic automaton:

D q

a) t

t b)

t D

T

t

t q

0 1 2 3 4

c) Dn qn

qn+1

0 1

1 1 1

0 0

0

Fig. 5: a) Graphical symbol, b) action, c) delay circuit transition table

s0

zn xn

xn

Fig. 6: Virtual acceptance of an empty word

(5)

dd S n n S n n n n

X S x S

:2 { }´ { }®2 { +1}: , a +1 where 2Sis the potency of the state alphabetS.

Example 2: Construct a deterministic automaton (Table 1 b)) to a given nondeterministic automaton (Table 1 a)). After a state assignment (two left columns in Table 1 b)) we obtain a transition table of the ‘determinizated’ nondeterministic automaton (Table 1 c)).

Note a formal peculiarity ofdeterminization:the states of an immediately constructed deterministic automaton are sets of states of the given nondeterministic automaton. It is aston- ishing how the mere replacement of the sets of possible fol- lower states by a certain follower eliminates a random an ac- tion of implicit (immeasurable) faults. This peculiarity can be explained by stating that either the possible followers or the substituting certain follower are not simply states, otherwise the nondeterminism of an object is a fiction.

If we were succeeded in identifying the faults, only one physically acceptable adequate nondeterministic automaton with a so called fault input could be constructed to the given nondeterministic automaton. Thus, ifZ is a fault alphabet (the alphabet of explicit measurable faults), then for the tran- sition functiondeof a semiautomaton

X´Z S, ,de with a fault input, there holds

de:S{ }n ´X{ }n ´Z{ }n ®S{n+1}: sn n n,x z, asn+1

Example 3: Assume that a fault alphabet {z1,z2,z3} of the au- tomaton from Example 2 is given such that, e.g., the Table 2 holds.

4 Conclusions

As a satisfactory definition of the state of a logical ob- ject and its recurrent introduction can thus be regarded, the adequacy of which is proved particularly in identifica- tion of logical objects on the state distinguishing level. The

‘determinization’ of a nondeterministic finite automaton is undoubtedly a myth.

References

[1] Bokr, J., Jáneš, V.:Logické systémy. Vydavatelství ČVUT, Praha 1999 (in Czech).

[2] Brunovský, P., Černý, J.:Základy matematickej teórie systé- mov. Veda, Bratislava 1980 (in Slovak).

[3] Harrison, M. A.: Introduction to Switching and Automata Theory. Mc Graw - Hill Book Co., New York – Sydney 1965.

a)

sn+1 xn

sn

a b c

1 1,2 2 4

2 3 3,4 4

3 4 3 4

4 4 2 4

b)

Sn+1

sn xn

Sn

a b c

1 {1} {1, 2} {2} {4}

2 {1,2} {1,2,3} {2,3,4} {4}

3 {1,2,3} {1,2,3,4} {2,3,4} {4}

4 {2,3,4} {3,4} {2,3,4} {4}

5 {1,2,3,4} {1,2,3,4} {2,3,4} {4}

6 {3,4} {4} {2,3} {4}

7 {2,3} {3,4} {3,4} {4}

8 {2} {3} {3,4} {4}

9 {3} {4} {3} {4}

10 {4} {4} {4} {4}

c)

sn+1 xn

sn a b c

1 2 8 10

2 3 4 10

3 5 4 10

4 6 4 10

5 5 4 10

6 10 7 10

7 6 6 10

8 9 6 10

9 10 9 10

10 10 8 10

Table 1: Transition table of the a) nondeterministic automaton, b), c) deterministic automaton from Example 2

sn+1 xnzn

sn

az1 a z( 2Ú z3) b z( 1Úz2) bz3 c z( 1Úz2Ú z3)

1 1 2 2 2 4

2 3 3 3 4 4

3 4 4 3 3 4

4 4 4 2 2 4

Table 2: Transition table of the deterministic automaton of the respective nondeterministic automaton from Example 2

(6)

[4] Chytil, M.:Automaty a gramatiky. SNTL, Praha 1984 (in Czech).

[5] Kalman, R. E., Falb, P. L., Arbib, M. A.:Topics in Mathe- matical System Theory. Mc Graw-Hill Book Co, New York – Sydney 1969.

[6] Gluškov, V. M.:Sintez cifrovych avtomatov. GIFML, Mosk- va 1962 (in Russian).

[7] Hopcroft, J. E., Ullman, J. D.:Formal Languages and their Relation to Automata. Slovak translation: Alfa, Bratislava 1978.

Doc. Ing. Josef Bokr, CSc.

e-mail: bokr@kiv.zcu.cz

Department of Informatics and Computer Sciences University of West Bohemia in Pilsen

Faculty of Applied Sciences Universitní 22

306 14 Pilsen, Czech Republic Doc. Ing. Vlastimil Jáneš, CSc.

e–mail: janes@fd.cvut.cz

Department of Control and Telematics Czech Technical University in Prague Faculty of Transportation Sciences Konviktská 20

110 00 Prague 1, Czech Republic

Odkazy

Související dokumenty

Master Thesis Topic: Analysis of the Evolution of Migration Policies in Mexico and the United States, from Development to Containment: A Review of Migrant Caravans from the

The submitted thesis titled „Analysis of the Evolution of Migration Policies in Mexico and the United States, from Development to Containment: A Review of Migrant Caravans from

There is a lack of data on the state of iodine reserves and the possible consequences of iodine deficits in diabetic patients. The main aims of this study

Na příkladu analýzy současného vztyčování soch dobrého vojáka Švejka v tomto prostoru objasním, jak v těchto aktivitách dochází na úrovni diskurzu i praxe k narušování

Výše uvedené výzkumy podkopaly předpoklady, na nichž je založen ten směr výzkumu stranických efektů na volbu strany, který využívá logiku kauzál- ního trychtýře a

In the thesis “Arbitrary Lagrangian-Eulerian (ALE) Methods in Plas- ma Physics”, the author has described the complete arbitrary Lagran- gian-Eulerian (ALE) method for fluid

We present three ways to check the goodness of these fits: we investigate the goodness of each fit in all datasets, we define a combined goodness exploiting the logical structure of

where d is a transition relation, spec. 4: Control automaton of the pseudotrain from Example 2.. a current prediction [6] of a state of the follower, and not the follower state