NP-Complete Problem: Determine if NFAs A and B Accept Same Language

  • Thread starter Thread starter complexity9
  • Start date Start date
Click For Summary
SUMMARY

The decision problem of determining whether two acyclic NFAs, A and B, accept the same language (L(A) = L(B)) is NP-Complete. To establish NP-Hardness, a reduction from the SAT problem can be utilized. Each SAT instance corresponds to a language defined by the variable assignments that evaluate to true, while unsatisfiable instances yield an empty language. This connection allows for the exploration of solving SAT through the language equivalence of NFAs.

PREREQUISITES
  • Understanding of Nondeterministic Finite Automata (NFA)
  • Familiarity with NP-Complete problems
  • Knowledge of Boolean satisfiability (SAT) problem
  • Concept of language equivalence in automata theory
NEXT STEPS
  • Study the proof techniques for NP-Completeness, particularly reductions
  • Learn about the properties of acyclic NFAs and their language acceptance
  • Explore the relationship between SAT and automata theory
  • Investigate existing algorithms for checking language equivalence of NFAs
USEFUL FOR

The discussion is beneficial for computer scientists, algorithm researchers, and students studying computational theory, particularly those interested in automata, complexity theory, and NP-Completeness.

complexity9
Messages
14
Reaction score
0
An NFA (nondeterministic finite automaton) is acyclic if there is no path from a state to itself.

Decision problem: Given two acyclic NFAs A and B, does L(A)=L(B), i.e. does A accept the same language as B.

Show that the above decision problem is NP-Complete.

I am unable to show that it is either NP or NP-hard, but was told that we may use a reduction from SAT to show NP-Hardness. Any help would be appreciated, I have been thinking about this for a while and don't know where to start!
 
Physics news on Phys.org
Consider an instance of SAT - you're given a specific boolean formula and are asked whether a variable assignment exists that evaluates to true.

How many such possible assignments are there, for a specific SAT instance? You might say that each SAT instance itself has a language: the language composed of all distinct variable assignments that evaluate to true.

Additionally, under this interpretation, all unsatisfiable SAT instances have the same language - an empty language - given that there are no assignments that evaluate to true.

Do you see a way to solve SAT by using a solution to the problem of determining whether two NFAs have the same language?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 19 ·
Replies
19
Views
5K
Replies
12
Views
3K
Replies
11
Views
3K
Replies
1
Views
2K
Replies
9
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
3K
Replies
10
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K