×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!

CREATE ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • SUPPORT

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

How does an FSM determine whether a string is accepted or rejected?

by EITCA Academy / Wednesday, 02 August 2023 / Published in Cybersecurity, EITC/IS/CCTF Computational Complexity Theory Fundamentals, Finite State Machines, Introduction to Finite State Machines, Examination review

A Finite State Machine (FSM) is a mathematical model used to describe the behavior of a system that can be in a finite number of states. It consists of a set of states, a set of input symbols, a set of output symbols, and a transition function that determines the next state based on the current state and the input symbol. In the context of cybersecurity, FSMs are often used to model the behavior of protocols, systems, or algorithms.

To determine whether a string is accepted or rejected by an FSM, we need to understand how the FSM processes the input string and transitions between states. The FSM starts in an initial state and reads the input string symbol by symbol. At each step, the FSM consults its transition function to determine the next state based on the current state and the input symbol.

The transition function of an FSM is typically defined as a table or a graph. In the table representation, each row corresponds to a state, and each column corresponds to an input symbol. The entries in the table specify the next state that the FSM transitions to when it is in a particular state and receives a specific input symbol. In the graph representation, each state is represented by a node, and the edges between nodes represent the transitions. The labels on the edges indicate the input symbol that triggers the transition.

To determine whether a string is accepted or rejected, we start with the FSM in the initial state and feed it the input string symbol by symbol. After each symbol is processed, the FSM transitions to the next state based on the transition function. If the FSM reaches the end of the input string and ends up in a designated final state, the string is accepted. Otherwise, if the FSM reaches the end of the input string but does not end up in a final state, the string is rejected.

Let's consider an example to illustrate this process. Suppose we have an FSM with three states: A, B, and C. The initial state is A, and the final state is C. The transition function is as follows:

State | Input Symbol | Next State
——|————–|———–
A | 0 | A
A | 1 | B
B | 0 | C
B | 1 | A
C | 0 | B
C | 1 | C

Now, let's say we want to determine whether the string "101" is accepted or rejected by this FSM. We start with the FSM in state A. We read the first symbol, which is 1. Consulting the transition function, we see that when the FSM is in state A and receives a 1, it transitions to state B. We update the FSM's current state to B. Next, we read the second symbol, which is 0. According to the transition function, when the FSM is in state B and receives a 0, it transitions to state C. We update the current state to C. Finally, we read the third symbol, which is 1. The transition function tells us that when the FSM is in state C and receives a 1, it remains in state C. We update the current state to C.

At this point, we have reached the end of the input string "101". Since the FSM is in the final state C, we can conclude that the string "101" is accepted by this FSM.

An FSM determines whether a string is accepted or rejected by processing the input string symbol by symbol and transitioning between states based on a transition function. If the FSM reaches the end of the input string and ends up in a final state, the string is accepted. Otherwise, if the FSM reaches the end of the input string but does not end up in a final state, the string is rejected.

Other recent questions and answers regarding EITC/IS/CCTF Computational Complexity Theory Fundamentals:

  • Are regular languages equivalent with Finite State Machines?
  • Is PSPACE class not equal to the EXPSPACE class?
  • Is algorithmically computable problem a problem computable by a Turing Machine accordingly to the Church-Turing Thesis?
  • What is the closure property of regular languages under concatenation? How are finite state machines combined to represent the union of languages recognized by two machines?
  • Can every arbitrary problem be expressed as a language?
  • Is P complexity class a subset of PSPACE class?
  • Does every multi-tape Turing machine has an equivalent single-tape Turing machine?
  • What are the outputs of predicates?
  • Are lambda calculus and turing machines computable models that answers the question on what does computable mean?
  • Can we can prove that Np and P class are the same by finding an efficient polynomial solution for any NP complete problem on a deterministic TM?

View more questions and answers in EITC/IS/CCTF Computational Complexity Theory Fundamentals

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/CCTF Computational Complexity Theory Fundamentals (go to the certification programme)
  • Lesson: Finite State Machines (go to related lesson)
  • Topic: Introduction to Finite State Machines (go to related topic)
  • Examination review
Tagged under: Computational Complexity Theory, Cybersecurity, Finite State Machine, Formal Methods, FSM
Home » Cybersecurity / EITC/IS/CCTF Computational Complexity Theory Fundamentals / Examination review / Finite State Machines / Introduction to Finite State Machines » How does an FSM determine whether a string is accepted or rejected?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (106)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Reddit publ.)
  • About
  • Contact
  • Cookie Policy (EU)

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on Twitter
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF), governed by the EITCI Institute since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    Follow @EITCI
    EITCA Academy

    Your browser doesn't support the HTML5 CANVAS tag.

    • Artificial Intelligence
    • Cybersecurity
    • Web Development
    • Cloud Computing
    • Quantum Information
    • GET SOCIAL
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.