Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Common forms  



1.1  One-dimension  





1.2  Two-dimensions  







2 Other forms  





3 Example  





4 Transformations from/to state diagram  





5 See also  





6 References  





7 Further reading  














State-transition table






Bosanski
Català
Deutsch
Español
فارسی
Français
Hrvatski
Italiano

Português
Српски / srpski
Українська


 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from State table)

Inautomata theory and sequential logic, a state-transition table is a table showing what state (or states in the case of a nondeterministic finite automaton) a finite-state machine will move to, based on the current state and other inputs. It is essentially a truth table in which the inputs include the current state along with other inputs, and the outputs include the next state along with other outputs.

A state-transition table is one of many ways to specify a finite-state machine. Other ways include a state diagram.

Common forms[edit]

One-dimension[edit]

State-transition tables are sometimes one-dimensional tables, also called characteristic tables. They are much more like truth tables than their two-dimensional form. The single dimension indicates inputs, current states, next states and (optionally) outputs associated with the state transitions.

State-transition table
(S: state, I: input, O: output)
Input Current state Next state Output
I1 S1 Si Ox
I2 S1 Sj Oy
In S1 Sk Oz
I1 S2 Si Ox
I2 S2 Sj Oy
In S2 Sk Oz
I1 Sm Si Ox
I2 Sm Sj Oy
In Sm Sk Oz

Two-dimensions[edit]

State-transition tables are typically two-dimensional tables. There are two common ways for arranging them.

In the first way, one of the dimensions indicates current states, while the other indicates inputs. The row/column intersections indicate next states and (optionally) outputs associated with the state transitions.

State-transition table
(S: state, I: input, O: output)

Input

Current state

I1 I2 In
S1 Si/Ox Sj/Oy Sk/Oz
S2 Si/Ox Sj/Oy Sk/Oz
Sm Si/Ox Sj/Oz Sk/Oz

In the second way, one of the dimensions indicates current states, while the other indicates next states. The row/column intersections indicate inputs and (optionally) outputs associated with the state transitions.

State-transition table
(S: state, I: input, O: output, —: illegal)

Next state

Current state

S1 S2 Sm
S1 Ii/Ox
S2 Ij/Oy
Sm Ik/Oz

Other forms[edit]

Simultaneous transitions in multiple finite-state machines can be shown in what is effectively an n-dimensional state-transition table in which pairs of rows map (sets of) current states to next states.[1] This is an alternative to representing communication between separate, interdependent finite-state machines.

At the other extreme, separate tables have been used for each of the transitions within a single finite-state machine: "AND/OR tables"[2] are similar to incomplete decision tables in which the decision for the rules which are present is implicitly the activation of the associated transition.

Example[edit]

An example of a state-transition table together with the corresponding state diagram for a finite-state machine is given below:

State-transition table

Input

Current state

0 1
S1 S2 S1
S2 S1 S2
State diagram
FSM state diagram

In the state-transition table, all possible inputs to the finite-state machine are enumerated across the columns of the table, while all possible states are enumerated across the rows. If the machine is in the state S1 (the first row) and receives an input of 1 (second column), the machine will stay in the state S1. Now if the machine is in the state S1 and receives an input of 0 (first column), the machine will transition to the state S2.
In the state diagram, the former is denoted by the arrow looping from S1 to S1 labeled with a 1, and the latter is denoted by the arrow from S1 to S2 labeled with a 0. This process can be described statistically using Markov Chains.

For a nondeterministic finite-state machine, an input may cause the machine to be in more than one state, hence its non-determinism. This is denoted in a state-transition table by the set of all target states enclosed in a pair of braces {}. An example of a state-transition table together with the corresponding state diagram for a nondeterministic finite-state machine is given below:

State-transition table

Input

Current state

0 1
S1 S2 S1
S2 {S1, S2} S2
State diagram
NFSM state diagram

If the machine is in the state S2 and receives an input of 0, the machine will be in two states at the same time, the states S1 and S2.

Transformations from/to state diagram[edit]

It is possible to draw a state diagram from a state-transition table. A sequence of easy to follow steps is given below:

  1. Draw the circles to represent the states given.
  2. For each of the states, scan across the corresponding row and draw an arrow to the destination state(s). There can be multiple arrows for an input character if the finite-state machine is nondeterministic.
  3. Designate a state as the start state. The start state is given in the formal definition of a finite-state machine.
  4. Designate one or more states as accepting state. This is also given in the formal definition of a finite-state machine.

See also[edit]

References[edit]

  1. ^ Breen, Michael (2005), "Experience of using a lightweight formal specification method for a commercial embedded system product line" (PDF), Requirements Engineering Journal, 10 (2): 161–172, CiteSeerX 10.1.1.60.5228, doi:10.1007/s00766-004-0209-1, S2CID 16928695
  • ^ Leveson, Nancy; Heimdahl, Mats Per Erik; Hildreth, Holly; Reese, Jon Damon (1994), "Requirements Specification for Process-Control Systems" (PDF), IEEE Transactions on Software Engineering, 20 (9): 684–707, CiteSeerX 10.1.1.72.8657, doi:10.1109/32.317428
  • Further reading[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=State-transition_table&oldid=1156553654"

    Category: 
    Automata (computation)
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    Use American English from April 2019
    All Wikipedia articles written in American English
     



    This page was last edited on 23 May 2023, at 12:33 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki