Skip to main content
QUICK REVIEW

[Paper Review] Polynomial time algorithm for left [right] local testability

A. N. Trahtman|arXiv (Cornell University)|Nov 9, 2020
semigroups and automata theoryComputer Science16 references6 citations
TL;DR

This paper presents polynomial-time algorithms to determine whether a deterministic finite automaton (DFA) accepts a right or left locally testable language, based on necessary and sufficient conditions for transition graphs and semigroups. The approach uses reachability analysis, strongly connected component (SCC) detection in product graphs, and efficient traversal to verify local testability and local idempotency, with time complexities of O(n²) for right local testability and O(n³) for left local testability.

ABSTRACT

A right [left] locally testable language S is a language with the property that for some non negative integer k two words u and v in alphabet S are equal in the semi group if (1) the prefix and suffix of the words of length k coincide, (2) the set of segments of length k of the words as well as 3) the order of the first appearance of these segments in prefixes [suffixes] coincide. We present necessary and sufficient condition for graph [semi group] to be transition graph [semi group] of the deterministic finite automaton that accepts right [left] locally testable language and necessary and sufficient condition for transition graph of the deterministic finite automaton with locally idempotent semi group. We introduced polynomial time algorithms for the right [left] local testable problem for transition semi group and transition graph of the deterministic finite automaton based on these conditions. Polynomial time algorithm verifies transition graph of automaton with locally idempotent transition semi group.

Motivation & Objective

  • To establish necessary and sufficient conditions for a DFA's transition graph and semigroup to be right or left locally testable.
  • To develop efficient algorithms for checking local testability of DFAs based on structural properties of their transition graphs.
  • To verify local idempotency of the transition semigroup, a prerequisite for local testability.
  • To provide a computational framework for integrating these checks into the TESTAS software package for formal language analysis.

Proposed method

  • Construct the transition graph Γ of the DFA and compute reachability relations between nodes.
  • Build product graphs Γ² and Γ³ to analyze pairs and triples of states for SCC membership and reachability.
  • Identify SCC-nodes in Γ² and Γ³ to detect cycles and structural dependencies critical for local testability.
  • Apply depth-first search from a new root node (0,0) in Γ² to validate reachability conditions under specific constraints.
  • Use reachability tables and triple checks on Γ³ to verify conditions for left local testability involving symmetric state pairs.
  • Leverage the fact that local idempotency is a necessary condition for local testability, verified via SCC and reachability checks on Γ² and Γ³.

Experimental results

Research questions

  • RQ1What are the necessary and sufficient conditions for a deterministic finite automaton's transition graph to accept a right locally testable language?
  • RQ2How can local idempotency of the transition semigroup be algorithmically verified using graph-theoretic properties?
  • RQ3What structural features of the transition graph and its product graphs Γ² and Γ³ determine left local testability?
  • RQ4Can polynomial-time algorithms be constructed to test right and left local testability based on graph and semigroup conditions?
  • RQ5How do the conditions for right and left local testability differ in terms of required reachability and SCC constraints?

Key findings

  • The paper establishes a necessary and sufficient condition for right local testability based on reachability and SCC structure in Γ² and Γ³.
  • A polynomial-time algorithm for right local testability runs in O(n²) time, where n is the number of states in the DFA.
  • For left local testability, the algorithm requires O(n³) time due to more complex checks on Γ³ and symmetric reachability conditions.
  • The algorithm for checking local idempotency of the transition semigroup runs in O(n³) time using SCC and reachability analysis on Γ² and Γ³.
  • The proposed algorithms are implemented in the TESTAS software package for formal language analysis.
  • The results improve upon prior work by providing a unified, efficient framework for testing local testability and related properties in DFAs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.