×
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

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

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

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

A language has 2 strings; one is accepted by the FSM, the other isn't. Would we say that this language is recognized by an FSM or not?

by Aida Basic / Saturday, 24 January 2026 / Published in Cybersecurity, EITC/IS/CCTF Computational Complexity Theory Fundamentals, Finite State Machines, Examples of Finite State Machines

To address the question of whether a language containing two strings—one accepted by a finite state machine (FSM) and one not accepted—can be said to be recognized by an FSM, it is necessary to clarify the precise meaning of language recognition, the formal properties of FSMs, and the relationships between machines and languages in the context of automata theory.

Finite State Machines and Language Recognition

A finite state machine (FSM), also known as a finite automaton, is a mathematical model of computation consisting of a finite set of states, a finite set of input symbols (the alphabet), a transition function defining state changes based on inputs, a start state, and a set of accepting (final) states. A string is said to be accepted by the FSM if, when the FSM processes the string from the start state according to its transition function, it ends in one of the accepting states.

A language is a (possibly infinite) set of strings formed from an alphabet. When discussing recognition, a language L is said to be recognized (or accepted) by an FSM M if and only if L is precisely the set of all strings that M accepts—formally, L = L(M), where L(M) denotes the language of M.

Analysis of the Given Scenario

The question posits a language with two specific strings:
– One string is accepted by the FSM.
– The other string is not accepted by the FSM.

Assume the language L = {w₁, w₂}, where:
– The FSM accepts w₁ (w₁ ∈ L(M)).
– The FSM does not accept w₂ (w₂ ∉ L(M)).

The critical consideration is, "Would we say that this language is recognized by an FSM?"

Formal Definition of Language Recognition

A language L is recognized by an FSM M if and only if L = L(M); that is, FSM M accepts all and only those strings in L. If there exist strings in L that are not accepted by M, or if M accepts strings not in L, then L is not recognized by M.

Implication of the Scenario

Given that the FSM accepts only one of the two strings in the language, the set of strings accepted by the FSM (L(M)) does not coincide with the set of strings constituting the language (L). Specifically:
– L = {w₁, w₂}
– L(M) = {w₁}

Since L ≠ L(M), the FSM does not recognize the language L.

Recognition vs. Acceptance

It is important to distinguish between a FSM accepting individual strings and recognizing a language. Acceptance refers to the FSM's ability to process a specific string and end in an accepting state. Recognition refers to the FSM's ability to accept exactly all strings in a given language and no others.

In the given scenario, the FSM accepts a subset of the language (only w₁), but not the whole language. Accordingly, the FSM does not recognize the language L. From the perspective of computational complexity and automata theory, recognition is an all-or-nothing property: either the FSM accepts all and only those strings in the language, or it does not recognize the language.

Generalization and Examples

To further clarify, consider the following example using a simple FSM over the alphabet Σ = {0, 1}:

Suppose the FSM M is constructed to accept only the string "0" and to reject any other string. Let:
– L = {"0", "1"}
– L(M) = {"0"}

Here, M does not recognize L, because "1" ∈ L but "1" ∉ L(M). If a string is in L but not accepted by M, or if M accepts strings not included in L, then L is not recognized by M.

To properly recognize L, a new FSM M' must be constructed such that:
– M' accepts "0" and "1".
– M' rejects all other strings over Σ.

Such an FSM would have a start state with transitions on "0" and "1" to accepting states, and transitions on any other input (if the alphabet allowed) to rejecting states. Only such a machine, M', would recognize L.

Didactic Value and Theoretical Implications

This scenario provides a useful teaching example for several foundational concepts:

1. Precision in Definitions: It emphasizes the importance of distinguishing between accepting individual strings and recognizing entire languages. Many students initially confuse the two, assuming that acceptance of a subset constitutes recognition, whereas recognition requires equivalence between the set of accepted strings and the language.

2. Set-Theoretic Understanding: The example illustrates the set-theoretic nature of language recognition. L(M) must be exactly equal to L; strict inclusion (L(M) ⊂ L or L ⊂ L(M)) is insufficient.

3. Finite Automata Limitations and Capabilities: It demonstrates that finite automata can be designed to recognize any finite language, as for any finite set of strings, a corresponding FSM can be constructed (albeit possibly exponentially large). However, not every arbitrary FSM recognizes every arbitrary language.

4. Implications for Language Classes: The scenario highlights the characterization of regular languages. Every finite language is regular, and therefore, for any finite language (such as L = {w₁, w₂}), there exists an FSM that recognizes it. However, the mere existence of an FSM that accepts some strings in a language does not guarantee recognition.

5. Practical Example: In pattern matching, protocol validation, or input validation in security contexts, FSMs are often used to recognize specific sequences. It is critical to ensure that the FSM matches the exact set of allowed sequences (the intended language) and rejects all others. Misconfigurations where an FSM accepts only some of the required sequences or accepts additional, undesired sequences can lead to failures or vulnerabilities.

Constructing an FSM to Recognize a Given Language

For completeness, it is instructive to understand how to construct an FSM that recognizes a specific finite language, such as L = {w₁, w₂}:

– For each string in the language, construct a unique path from the start state, following transitions labeled by the symbols of the string, leading to an accepting state.
– Ensure that only these paths lead to accepting states, and all other paths either lead to non-accepting states or dead states.

Suppose w₁ = "ab" and w₂ = "ba" over the alphabet Σ = {a, b}. The FSM would have:
– A start state q₀.
– A path q₀ –a–> q₁ –b–> q₂ (accepting state for "ab").
– A path q₀ –b–> q₃ –a–> q₄ (accepting state for "ba").
– Any other transitions should lead to a non-accepting dead state.

Such an FSM recognizes L = {"ab", "ba"}; it accepts precisely those two strings and no others.

Conclusion and Final Clarification

In the given scenario, where a language contains two strings and the FSM accepts one but not the other, the language is not recognized by the FSM. Recognition requires that the FSM accept all and only the strings in the language. Acceptance of a proper subset of the language is insufficient for recognition. This distinction is fundamental in automata theory and underpins the design and analysis of FSMs in computational applications.

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

  • What does the Kleene star operation do to a regular language?
  • Explain the equivalence of deterministic and nondeterministic FSMs in one or two sentences.
  • Can a simple sorting algorithm be considered as an FSM? If yes, how could we represent it with a directed graph?
  • Can empty strings and empty languages be full?
  • Can virtual machines be considered as FSMs?
  • What are some basic mathematical definitions, notations and introductions needed for computational complexity theory formalism understanding?
  • Why is computational complexity theory important for understanding of the foundations of cryptography and cybersecurity?
  • What is the role of the recursion theorem in the demonstration of the undecidability of ATM?
  • Considering a PDA that can read palindromes, could you detail the evolution of the stack when the input is, first, a palindrome, and second, not a palindrome?
  • Considering non-deterministic PDAs, the superposition of states is possible by definition. However, non-deterministic PDAs have only one stack which cannot be in multiple states simultaneously. How is this possible?

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: Examples of Finite State Machines (go to related topic)
Tagged under: Automata Theory, Computation Theory, Cybersecurity, FSM, Language Recognition, Regular Languages
Home » Cybersecurity » EITC/IS/CCTF Computational Complexity Theory Fundamentals » Finite State Machines » Examples of Finite State Machines » » A language has 2 strings; one is accepted by the FSM, the other isn't. Would we say that this language is recognized by an FSM or not?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • 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 (Medium publ.)
  • About
  • Contact

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.

Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support

90% of EITCA Academy fees subsidized in enrolment by

    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 X
    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) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) 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
    EITCA Academy
    • EITCA Academy on social media
    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.