• No results found

Testing finite state machines: State Identification and Verification

N/A
N/A
Protected

Academic year: 2022

Share "Testing finite state machines: State Identification and Verification"

Copied!
107
0
0

Loading.... (view fulltext now)

Full text

(1)

Testing finite state machines:

State Identification and Verification

Automata Learning - reading group December 2013

OREZ

(2)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1 b/1 a/1

a/0

(3)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

a/0

( I , O , S ,δ,λ)

b/1

(4)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

a/0

Input

a/0 b/0

b/1

( I , O , S ,δ,λ) I a/0

b/1

(5)

Mealy Machines

s

1

s

3

s

2

a/ 0 b/ 0

b/ 1

a/ 0

Output

( I , O , S ,δ,λ) O

b/ 1

(6)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

a/0

States

( I , O , S ,δ,λ) S

b/1

(7)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

a/0

δ: S x I ➝ S

( I , O , S ,δ,λ) δ

b/1

(8)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

( I , O , S ,δ,λ) a/0

δ: S x I ➝ S δ

b/1

(9)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

( I , O , S ,δ,λ) a/0

δ: S x I ➝ S δ

b/1

(10)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

( I , O , S ,δ,λ) a/0

δ: S x I ➝ S δ( s

2

,`a’) = s

1

δ

b/1

(11)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

( I , O , S ,δ,λ) a/0

δ: S x I ➝ S δ( s

2

,`a’) = s

1

δ( s

2

,“aaab”) = s

3

δ

b/1

(12)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1 b/1

a/0

s

3

( I , O , S ,δ,λ) δ δ: S x I ➝ S

δ({ s

1

,s

3

},`b’) = { s

3

, s

2

} δ( s

2

,“aaab”) = s

3

δ( s

2

,`a’) = s

1

(13)

Mealy Machines

s

1

s

3

s

2

a/0 b/0

b/1

( I , O , S ,δ,λ) a/0

λ: S x I ➝ O λ

b/1

(14)

Mealy Machines

s

1

s

3

s

2

a/ 0 b/0

b/1

( I , O , S ,δ,λ) a/0

λ: S x I ➝ O λ( s

2

,`a’) = `0’

λ

b/1

(15)

Mealy Machines

s

1

s

3

s

2

a/ 0 b/ 0

b/1

a/ 0

λ: S x I ➝ O ( I , O , S ,δ,λ) λ

b/1

λ(S,`a’) = `0’

λ( s

2

,“aaab”) = “0000”

(16)

Mealy Machines

s

1

s

3

s

2

a/0 b/ 0

b/ 1

a/0

λ: S x I ➝ O ( I , O , S ,δ,λ) λ

b/1

λ( s

2

,`a’) = `0’

λ( s

2

,“aaab”) = “0000”

λ({ s

1

,s

3

},`b’) = { `0’ , `1’ }

(17)

s

1

s

3

s

2

a/0 b/0

b/1 b/1 a/1

a/0

(18)

Lack of some informations Goal: Deduce them.

Mean:

Provide input Sequence Observe the output

Testing

a/1 s

1

s

2

a/0 b/0

b/1 b/1

a/0

(19)

Input Sequence / Observe output Preset Test:

Fixed ahead of time.

Adaptive Test:

Input symbol depends on the

previous observed output symbol.

Tests

a/1 s

1

s

2

a/0 b/0

b/1 b/1

a/0

(20)

Testing: Problems

a/1 s

1

s

2

a/0 b/0

b/1 b/1

a/0

State Identification

State Verification

(21)

Testing: State Identification

s

1

s

2

a/0

b/1 b/1

a/0

State diagram given.

Initial state not identified.

Initial State Identification: Not always possible through testing Distinguishing Sequence

State Identification

State Verification

(22)

Testing: State Identification

s

1

s

3

s

2

a/0 b/0

b/1 b/1 a/1

State Identification

a/0

State Verification

(23)

Testing: Problems

a/1 s

1

s

2

a/0 b/0

b/1 b/1

a/0

State Identification

State Verification

(24)

Testing:Questions

a/1 s

1

s

2

a/0 b/0

b/1 b/1

a/0

State diagram given.

Initial state not identified.

Machine is in its initial state.

Goal: Check if it’s in that state.

Unique Input Output (UIO) Sequence

State Identification State Verification

(25)

Testing: Questions

a/1 s

1

s

2

a/0 b/0

b/1

Existence of the input sequence?

a/0

How long is the sequence?

Complexity to:

Check existence of the sequence, Construct a sequence,

Construct a short one.

State Identification State Verification

b/1

(26)

Testing: Problems

a/1 s

1

s

2

a/0 b/0

b/1 b/1

a/0

State Identification State Verification

Fault detection (black box), protocol testing

Link:

Distinguishing Sequence

(27)

s

1

s

3

s

2

a/0 b/0

b/1 b/1 a/1

a/0

State Identification

(28)

Preset Distinguishing sequence: Input x such that the output produced by the

machine is different for each state.

The FSM needs to be reduced, to remove all the equivalent states.

The machine might not have such a sequence

State Identification

s

1

s

2

a/0

b/1

a/0

Preset Distinguishing sequence

(29)

s

1

s

3

s

2

a/0 b/0

b/1 b/1 a/1

a/0

State Identification

Reduced

Preset Distinguishing sequence

(30)

s

1

s

3

s

2

s

1

s

3

s

2

a/0 b/ 0

b/ 1 b/ 1 a/1

a/0

State Identification

Reduced

- ‘b’ distinguish s

1

from s

2

and s

3

Preset Distinguishing sequence

(31)

s

1

s

3

s

2

s

1

s

3

s

2

a/ 0 b/0

b/1

a/ 1 b/1

a/0

State Identification

Reduced

- ‘b’ distinguish s

1

from s

2

and s

13

- ‘a’ distinguish s

3

from s

2

Preset Distinguishing sequence

(32)

s

1

s

3

s

2

a/0 b/0

b/1

b/1 a/1

a/0

State Identification

Reduced

But No (Unique) Sequence that distinguish (All states) at once

Preset Distinguishing sequence

(33)

s

1

s

3

s

2

a/0

a/1 a/0

State Identification

Reduced

But No (Unique) Sequence that distinguish (All states) at once - “b... ” distinguish s

1

from s

2

and s

3

, but

“merges” s

2

and s

3

b/ 0 b/ 1

b/ 1

Preset Distinguishing sequence

(34)

s

1

s

3

s

2

a/ 0 b/0

b/1

a/ 1 b/1

a/ 0

State Identification

Reduced

But No (Unique) Sequence that distinguish (All states) at once - “b...” distinguish s

1

from s

2

and s

3

, but

“merges” s

2

and s

3

- “a... ” distinguish s

3

from s

1

and s

2

, but

“merges” s

1

and s

2

Preset Distinguishing sequence

(35)

Preset Distinguishing sequence: Input x such that the output produced by the

machine is different for each state.

THEOREM: It is PSPACE-complete to test whether a given FSM has a preset

distinguishing sequence.

Length of distinguishing sequence can be exponential

Did not get hold of the algorithm.

State Identification

s

1

s

2

a/0

b/1

a/0

Preset Distinguishing sequence

(36)

State Identification

s

1

s

2

a/0

b/1

a/0

Preset Distinguishing sequence

Adaptive Distinguishing Sequence

(37)

State Identification

s

1

s

2

a/0

b/1

a/0

Adaptive Distinguishing Sequence: Not a

sequence but a decision tree: Input based on the last output.

Rooted tree, n leaves (states), Nodes: Input, Edges: Output.

Length of the sequence is the depth of the tree

Adaptive Distinguishing Sequence

Preset Distinguishing sequence

(38)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(39)

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 b/1

a/0 b/0

b/0

a/0

(40)

b/0 a/0

a/0 b/0

b/0

a/0

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/1

(41)

b/0 a/0

a/0 b/0

b/0

a/0

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/1

(42)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

Initial Current

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(43)

b/0 a/0

a/0 b/0

b/0

a/0

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/1

(44)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

0

Initial Current

{s

1

,s

3

,s

5

}

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(45)

b/0 a/0

a/0 b/0

b/0

a/0

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/1

(46)

b/0 a/0

a/0 b/0

b/0

a/0

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/1

(47)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

0

Initial Current

{s

1

,s

3

,s

5

} {s

2

,s

4

,s

6

}

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(48)

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 b/1

a/0 b/0

b/0

a/0

(49)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

1 0

{s

2

,s

4

,s

6

}

Initial Current

{s

1

,s

3

,s

5

} {s

2

,s

4

,s

6

}

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(50)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

1 0

{s

2

,s

4

,s

6

}

Initial Current

{s

1

,s

3

,s

5

} {s

2

,s

4

,s

6

}

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(51)

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 b/1

a/0 b/0

b/0

a/0

(52)

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 b/1

a/0 b/0

b/0

a/0

(53)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

1 0

{s

2

,s

4

,s

6

}

Initial Current

{s

1

,s

3

,s

5

} {s

2

,s

4

,s

6

}

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(54)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

1 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} Initial Current

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

{s

1

,s

3

,s

5

} {s

2

,s

4

,s

6

}

(55)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

1 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} Initial Current

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(56)

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 b/1

a/0 b/0

b/0

a/0

(57)

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 b/1

a/0 b/0

b/0

a/0

(58)

b 0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

1 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} Initial Current

{s

2

,s

4

,s

6

}

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(59)

a/1

b/0

a/1 b/0

a/1

b/0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 b/1

a/0 b/0

b/0

a/0

(60)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(61)

b 0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

1 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} {s

4

,s

6

,s

1

} Initial Current

{s

2

,s

4

,s

6

}

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(62)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(63)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(64)

b

0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

b 1

0 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} {s

2

,s

4

,s

6

} {s

4

,s

6

,s

1

} {s

2

,s

4

,s

6

}

Initial Current

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

(65)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(66)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(67)

b

0

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

b 1

0 0

{s

2

,s

4

,s

6

} {s

1

,s

3

,s

5

} {s

2

,s

4

,s

6

} {s

4

,s

6

,s

1

} {s

2

,s

4

,s

6

} {s

5

,s

1

}

Initial Current {s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

Invalid Input

(68)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(69)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(70)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1 b/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(71)

a 0 1

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

b 1

0

0 {s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} {s

2

,s

4

,s

6

} {s

4

,s

6

,s

1

} Initial Current

{s

2

}

{s

5

,s

1

}

(72)

a 0 1

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

b 1

0 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} {s

2

,s

4

,s

6

} {s

4

,s

6

,s

1

} Initial Current

{s

6

}

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

{s

2

}

{s

5

,s

1

}

(73)

a 0 1

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

b 1

0 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} {s

2

,s

4

,s

6

} {s

4

,s

6

,s

1

} Initial Current

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

{s

2

} {s

5

,s

1

}

{s

6

}

s

6

(74)

a 0 1

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

b 1

0 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} {s

2

,s

4

,s

6

} {s

4

,s

6

,s

1

} Initial Current

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

{s

2

} {s

5

,s

1

}

{s

6

}

{s

2

,s

4

}

s

6

(75)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

b 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} {s

2

,s

4

,s

6

} {s

4

,s

6

,s

1

} Initial Current

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

{s

2

} {s

5

,s

1

}

0

b

a 0

1 0

1

{s

6

}

{s

2

,s

4

}

s

6

(76)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

a

b/1

b 0

{s

2

,s

4

,s

6

} {s

3

,s

5

,s

1

} {s

2

,s

4

,s

6

} {s

4

,s

6

,s

1

} Initial Current

{s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

{s

2

} {s

5

,s

1

}

a

b 0

. . .

b

a 0

1 0

1

...

s

6

{s

6

}

{s

2

,s

4

}

(77)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

b/1

δ( s

6

,“aba”) = s

2

λ( s

6

,“aba”) = “100”

a

b 0

Initial Current {s

1

,s

2

,s

3

,s

4

,s

5

,s

6

}

{s

2

} {s

5

,s

1

} a

b 0

. . .

b

a 0

1 0

1

...

s

6

{s

6

}

{s

2

,s

4

}

(78)

State Identification

Adaptive Distinguishing Sequence Preset Distinguishing sequence

b/1

a

b 0

a

b 0

. . .

b

a 0

1 0

1

...

s

6

(79)

State Identification

Preset Sequence is an Adaptive one Adaptive Sequence might be shorter

FSM might have an Adaptive sequence, but no Preset one.

Length is quadratic, if the seq. exists.

Preset Distinguishing sequence Adaptive Distinguishing Sequence

(80)

State Identification

Existence Algorithm: (Reason about the Initial Set) Initialize State Partition Π with one unique block Iteration:

Pick: Block B, Valid Input a.

Refine the partition: Two states are assigned the same block in the new partition iff

they produce the same output on a, and

move to the same block (of the old partition).

Preset Distinguishing sequence Adaptive Distinguishing Sequence

(81)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

Existence Algorithm:

Initialize State Partition Π with one unique block Iteration:

Pick: Block B, Valid Input a.

Refine the partition...

Adaptive Seq. exists iff final partition is discrete

(82)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

(83)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1,

s

2,

s

3,

s

4,

s

5,

s

6}}

(84)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1,

s

3,

s

5},{

s

2,

s

4,

s

6}}

Π = {{

s

1,

s

2,

s

3,

s

4,

s

5,

s

6}}

(85)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1,

s

3,

s

5},{

s

2,

s

4,

s

6}}

(86)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1,

s

3,

s

5},{

s

2,

s

4,

s

6}}

(87)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1,

s

3,

s

5},{

s

2,

s

4,

s

6}}

Π = {{

s

1},{

s

3,

s

5},{

s

2,

s

4,

s

6}}

(88)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3,

s

5},{

s

2,

s

4,

s

6}}

(89)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3,

s

5},{

s

2,

s

4,

s

6}}

(90)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3,

s

5},{

s

2,

s

4,

s

6}}

Π = {{

s

1},{

s

3,

s

5},{

s

2,

s

4},{

s

6}}

(91)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3,

s

5},{

s

2,

s

4},{

s

6}}

(92)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3,

s

5},{

s

2,

s

4},{

s

6}}

(93)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3,

s

5},{

s

2,

s

4},{

s

6}}

Π = {{

s

1},{

s

3},{

s

5},{

s

2,

s

4},{

s

6}}

(94)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3},{

s

5},{

s

2,

s

4},{

s

6}}

(95)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3},{

s

5},{

s

2,

s

4},{

s

6}}

(96)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3},{

s

5},{

s

2},{

s

4},{

s

6}}

Π = {{

s

1},{

s

3},{

s

5},{

s

2,

s

4},{

s

6}}

(97)

State Identification

Preset Distinguishing sequence Adaptive Distinguishing Sequence

s

1

s

4

s

3

s

2

s

5

s

6

b/0

a/0 a/1

a/0 b/0

b/0

a/1 b/0

a/1 b/0

a/0 b/0

Π = {{

s

1},{

s

3},{

s

5},{

s

2},{

s

4},{

s

6}}

(98)

State Identification

Algorithm 3.2 and

3.3

(99)

State Verification

State diagram given.

Initial state not identified.

Machine is in its initial state.

Goal: Check if it’s in that state.

Unique Input Output (UIO) Sequence

(100)

State Verification

Unique Input Output (UIO)

Sequence of a state s0 is an input x0 such that:

λ( s

0

,x

0

) ≠ λ( s ,x

0

), ∀s

(101)

State Verification

Unique Input Output (UIO)

Sequence of a state s0 is an input x0 such that:

λ( s

0

,x

0

) ≠ λ( s ,x

0

), ∀s

Preset/Adaptive Distinguishing Sequence

Existence of UIO

(102)

State Verification

All these problems are PSPACE- Complete:

Does a given state s of M has a UIO

Does all states of M have a UIO Is there some states of M with UIO

(103)

State Verification

Length: There are machine

whose states have UIO seq. but of exponential length

(104)

Conclusion

PSPACE-Completeness for Preset Seq. and UIO

Polynomial time algorithm for checking existence and

construction of the Adaptive Seq.

Adaptive Seq. might be more useful

(105)

Just to remember ..

s

1

s

3

s

2

a/0 b/0

b/1 b/1 a/1

a/0

(106)

Assignment:

s

1

s

3

s

2

b/1 b/0

b/1 a/1 a/0

a/0

(107)

Assignment:

s

1

s

3

s

2

b/1 b/0

b/1 a/1 a/0

- Show Existence of Adaptive a/0 Distinguishing Sequence

- Draw the Adaptive Disting.

Sequence

References

Related documents

He is the author of The Quest for Sustainable Peace: The 2007 Sierra Leone Elections (2008), and co-editor of Africa in Crisis: New Challenges and Possibilities (Pluto Press, 2002)

Given this weak level of financial support from the government, it appears that the commission will have to remain dependent on external funding in order to have a chance at

It is possible to create BCP electrolytes with good mechanical properties, but the ionic conductivity and the lithium-ion transference number are not high enough to cycle a

The Mabira and Madagascar cases display the same values on the independent variable; complete land dispossession (material, natural and spiritual) and large-scale

Two Studies of How Left and Right Undermined Moral Motivation in the Swedish School System.

In this paper we present a novel non-iterative algorithm for identifying linear time-invariant discrete time state-space models from frequency response data.. We show that the

2 As discussed previously, the development literature on public administration reforms in Sub-Saharan African countries creates an understanding for how African public auditors

In this thesis, we have presented a persistent framework, which allows for transparent migration of applications provided by XAP and a server-side service for handling a state