2026-07-072026-07-07http://salesiana.dossiersoluciones.com/handle/123456789/226619Given a language L and a nondeterministic finite automaton M, we consider whether we can determine efficiently (in the size of M) if M accepts at least one word in L, or infinitely many words. Given that M accepts at least one word in L, we consider how long a shortest word can be. The languages L that we examine include the palindromes, the non-palindromes, the k-powers, the non-k-powers, the powers, the non-powers (also called primitive words), the words matching a general pattern, the bordered words, and the unbordered words.Full version of a paper submitted to LATA 2008. This is a new version with John Loftus added as a co-author and containing new results on unbordered wordsComputational ComplexityDiscrete MathematicsFormal Languages and Automata TheoryF.4.3Detecting palindromes, patterns, and borders in regular languagestext