Yes, you can use a DFA to prove that trunc is regular.

Click For Summary
SUMMARY

The discussion centers on proving that the truncation function truncn(L) is regular if the language L is regular. Participants emphasize that a regular language can be represented by a DFA or a regular expression. A key point raised is the confusion regarding the truncation of a language that produces a single string, such as "aaa", and how the constraints on n affect the existence of the string v. Ultimately, the consensus is that a DFA can indeed be utilized to demonstrate the regularity of trunc.

PREREQUISITES
  • Understanding of regular languages and their properties
  • Familiarity with Deterministic Finite Automata (DFA)
  • Knowledge of regular expressions
  • Concept of language truncation and its implications
NEXT STEPS
  • Study the construction of DFAs for various regular languages
  • Explore the properties of regular expressions and their equivalence to DFAs
  • Investigate the implications of truncation on regular languages
  • Learn about the Pumping Lemma for regular languages and its applications
USEFUL FOR

Students of formal languages, computer science researchers, and anyone interested in automata theory and the properties of regular languages.

twoski
Messages
177
Reaction score
2

Homework Statement



Let truncn(L) = {w: wv exists in L, |v| = n}

Show that trunc is regular if L is regular.

The Attempt at a Solution



By the definition of regular languages, L is regular if we can come up with a regular expression or a DFA for it.

This question confuses me because what if we have a regular language L where the only string it produces is "aaa", and we take trunc8(L)? The string v can't exist if the length of wv is 3, but in this case we technically can since there are no constraints on n.
 
Physics news on Phys.org
Anyone?

I think that the constraints of truncn(L) prohibit us from choosing n larger than |wv| so ignore that part of my initial post.

Can i use a DFA to prove trunc is regualr?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 9 ·
Replies
9
Views
9K