Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Testing Finite-State Machines: State Identification and Verification

Published: 01 March 1994 Publication History

Abstract

We study the complexity of two fundamental problems in the testing of finite-state machines. 1) Distinguishing sequences (state identification). We show that it is PSPACE-complete to determine whether a finite-state machine has a preset distinguishing sequence. There are machines that have distinguishing sequences, but only of exponential length. We give a polynomial time algorithm that determines whether a finite-state machine has an adaptive distinguishing sequence. (The previous classical algorithms take exponential time.) Furthermore, if there is an adaptive distinguishing sequence, then we give an efficient algorithm that constructs such a sequence of length at most n(n/spl minus/1)/2 (which is the best possible), where n is the number of states. 2) Unique input output sequences (state verification). It is PSPACE-complete to determine whether a state of a machine has a unique input output sequence. There are machines whose states have unique input output sequences but only of exponential length.

References

[1]
{1} A. V. Aho, A. T. Dahbura, D. Lee, and M. U. Uyar, "An optimization technique for protocol conformance test generation based on uio sequences and rural chinese postman tours," in IEEE Trans. Commun., vol. 39, no. 11, pp. 1604-1615, Nov. 1991.
[2]
{2} A. V. Aho, J. E. Hopcroft, and J. D. Ullman, The Design and Analysis of Computer Algorithms. Reading, MA: Addison-Wesley, 1974.
[3]
{3} A. V. Aho, R. Sethi, and J. D. Ullman, Compilers: Principles, Techniques, and Tools. Reading, MA: Addison-Wesley, 1986.
[4]
{4} W. Y. L. Chan, S. T. Vuong, and M. R. Ito, "An improved protocol test generation procedure based on UIO's," in Proc. SIGCOMM89, 1989, pp. 283-294.
[5]
{5} M. S. Chen, Y. Choi, and A. Kershenbaum, "Approaches utilizing segment overlap to minimize test sequences," in Proc. Tenth Int. IFIP Symp. Protocol Specification, Testing and Verification, Ottawa, Canada, 1990, pp. 67-84.
[6]
{6} W. H. Chen, C. S. Lu, E. R. Brozovsky, and J. T. Wang, "An optimization technique for protocol conformance testing using multiple uio sequences," in Inform. Processing Lett., 1990, pp. 7-11.
[7]
{7} T. S. Chow, "Testing software design modeled by finite-state machines," in IEEE Trans. Software Eng., vol. SE-4, no. 3, pp. 178-187, Mar. 1978.
[8]
{8} A. D. Friedman and P. R. Menon, Fault Detection in Digital Circuits. Englewood Cliffs, NJ: Prentice-Hall, Inc., 1971.
[9]
{9} A. Gill, Introduction to the Theory of Finite-state Machines. New York: McGraw-Hill, 1962.
[10]
{10} S. M. Gobershtein, "Check words for the states of a finite automaton," in Kibernetika, No. 1, pp. 46-49, 1974.
[11]
{11} F. C. Hennie, "Fault detecting experiments for sequential circuits," in Proc. Fifth Annu. Symp. Switching Circuit Theory and Logical Design, Princeton, NJ, 1964, pp. 95-110.
[12]
{12} G. J. Holzmann, Design and Validation of Protocols. Englewood Cliffs, NJ: Prentice-Hall, 1990.
[13]
{13} J. E. Hopcroft, "An n log n Algorithm for minimizing states in a finite automaton," in Theory of Machines and Computations, Z. Kohavi and A. Paz, Eds. New York: Academic Press, 1971, pp. 189-196.
[14]
{14} E. P. Hsieh, "Checking experiments for sequential machines," IEEE Trans. Comput., vol. C-20, no. 10, pp. 1152-1166, Oct. 1971.
[15]
{15} I. Kohavi and Z. Kohavi, "Variable-length distinguishing sequences and their application to the design of fault-detection experiments," IEEE Trans. Comput., vol. C-17, pp. 792-795, Aug. 1968.
[16]
{16} Z. Kohavi, Switching and Finite Automata Theory, second ed. New York: McGraw-Hill, 1978.
[17]
{17} D. Kozen, "Lower bounds for natural proof systems," in Proc. 18th Annu. Symp. on Foundations of Comput. Sci., 1977, pp. 254-266.
[18]
{18} D. Lee and M. Yannakakis, "Online Minimization of Transition Systems," in Proc. 24th Annu. ACM Symp. on Theory of Computing, 1992, pp. 264-274.
[19]
{19} R. E. Miller and S. Paul, "Generating minimal length test sequences for conformance testing of communication protocols," in Proc. INFOCOM 91, 1991, pp. 970-979.
[20]
{20} E. F. Moore, "Gedanken-experiments on sequential machines," in Automata Studies (Annals of Mathematics Studies). Princeton, NJ: Princeton Univ. Press, 1956, no. 34, pp. 129-153.
[21]
{21} K. K. Sabnani and A. T. Dahbura, "A Protocol Test Generation Procedure," in Comput. Net. and ISDN Syst., vol. 15, no. 4, pp. 285-297, 1988.
[22]
{22} Y. N. Shen, F. Lombardi, and A. T. Dahbura, "Protocol conformance testing using multiple UIO sequences," in Proc. Ninth IFIP Symp. on Protocol Specification, Testing and Verification, Twente, Holland, 1989, pp. 131-143.
[23]
{23} D. P. Sidhu and T.-K Leung, "Formal methods for protocol testing: a detailed study," in IEEE Trans. Software Eng., vol. 15, no. 4, pp. 413-126, Apr. 1989.
[24]
{24} M. N. Sokolovskii, "Diagnostic experiments with automata," in Kibernetika , no. 6, pp. 44-49, 1971.
[25]
{25} B. Yang and H. Ural, "Protocol conformance test generation using multiple UIO sequences with overlapping," in Proc. SIGCOMM 90, 1990, pp. 118-125.
[26]
{26} M. Yannakakis and D. Lee, "Testing finite state machines: fault detection," to appear in J. Comput. and Syst. Sci., 1994.

Cited By

View all
  • (2024)Accelerating Finite State Machine-Based Testing Using Reinforcement LearningIEEE Transactions on Software Engineering10.1109/TSE.2024.335841650:3(574-597)Online publication date: 1-Mar-2024
  • (2023)Incomplete Adaptive Distinguishing Sequences for Non-Deterministic FSMsIEEE Transactions on Software Engineering10.1109/TSE.2023.329113749:9(4371-4389)Online publication date: 5-Jul-2023
  • (2022)Deriving Homing Sequences for Finite State Machines with Timed GuardsAutomatic Control and Computer Sciences10.3103/S014641162107015455:7(738-750)Online publication date: 1-Feb-2022
  • Show More Cited By

Index Terms

  1. Testing Finite-State Machines: State Identification and Verification
    Index terms have been assigned to the content through auto-classification.

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image IEEE Transactions on Computers
    IEEE Transactions on Computers  Volume 43, Issue 3
    March 1994
    133 pages

    Publisher

    IEEE Computer Society

    United States

    Publication History

    Published: 01 March 1994

    Author Tags

    1. PSPACE-complete
    2. adaptive distinguishing sequence
    3. complexity
    4. computational complexity
    5. conformance testing
    6. finite state machines
    7. finite-state machines
    8. polynomial time algorithm
    9. protocol testing.
    10. protocols
    11. state identification
    12. state verification
    13. testing
    14. unique input output sequences

    Qualifiers

    • Research-article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 02 Sep 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)Accelerating Finite State Machine-Based Testing Using Reinforcement LearningIEEE Transactions on Software Engineering10.1109/TSE.2024.335841650:3(574-597)Online publication date: 1-Mar-2024
    • (2023)Incomplete Adaptive Distinguishing Sequences for Non-Deterministic FSMsIEEE Transactions on Software Engineering10.1109/TSE.2023.329113749:9(4371-4389)Online publication date: 5-Jul-2023
    • (2022)Deriving Homing Sequences for Finite State Machines with Timed GuardsAutomatic Control and Computer Sciences10.3103/S014641162107015455:7(738-750)Online publication date: 1-Feb-2022
    • (2022)MorestProceedings of the 44th International Conference on Software Engineering10.1145/3510003.3510133(1406-1417)Online publication date: 21-May-2022
    • (2022)Homing Sequence Derivation With Quantified Boolean SatisfiabilityIEEE Transactions on Computers10.1109/TC.2021.305830271:3(696-711)Online publication date: 1-Mar-2022
    • (2022)Evaluating the complexity of deriving adaptive -homing and -synchronizing sequences for nondeterministic FSMsSoftware Quality Journal10.1007/s11219-021-09548-z30:1(161-180)Online publication date: 1-Mar-2022
    • (2022)Adaptive Experiments for State Identification in Finite State Machines with TimeoutsMachines, Computations, and Universality10.1007/978-3-031-13502-6_12(172-188)Online publication date: 31-Aug-2022
    • (2021)Removing redundant refusalsProceedings of the 36th Annual ACM/IEEE Symposium on Logic in Computer Science10.1109/LICS52264.2021.9470737(1-13)Online publication date: 29-Jun-2021
    • (2021)Efficient state synchronisation in model-based testing through reinforcement learningProceedings of the 36th IEEE/ACM International Conference on Automated Software Engineering10.1109/ASE51524.2021.9678566(368-380)Online publication date: 15-Nov-2021
    • (2020)Interface protocol inference to aid understanding legacy software componentsSoftware and Systems Modeling (SoSyM)10.1007/s10270-020-00809-219:6(1519-1540)Online publication date: 1-Nov-2020
    • Show More Cited By

    View Options

    View options

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media