Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:1411.5437

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Computational Complexity

arXiv:1411.5437 (cs)
[Submitted on 20 Nov 2014 (v1), last revised 28 Nov 2014 (this version, v2)]

Title:The complexity of some regex crossword problems

Authors:Stephen A. Fenner (University of South Carolina, USA)
View a PDF of the paper titled The complexity of some regex crossword problems, by Stephen A. Fenner (University of South Carolina and 1 other authors
View PDF
Abstract:In a typical regular expression (regex) crossword puzzle, you are given two nonempty lists $R_1,\ldots,R_m$ and $C_1,\ldots,C_n$ of regular expressions over some alphabet, and your goal is to fill in an $m\times n$ grid with letters from that alphabet so that the string formed by the $i$th row is in $L(R_i)$, and the string formed by the $j$th column is in $L(C_j)$, for all $1\le i\le m$ and $1\le j\le n$. Such a grid is a solution to the puzzle. It is known that determining whether a solution exists is NP-complete. We consider a number of restrictions and variants to this problem where all the $R_i$ are equal to some regular expression $R$, and all the $C_j$ are equal to some regular expression $C$. We call the solution to such a puzzle an $(R,C)$-crossword. Our main results are the following:
1. There exists a fixed regular expression $C$ over the alphabet $\{0,1\}$ such that the following problem is NP-complete: "Given a regular expression $R$ over $\{0,1\}$ and positive integers $m$ and $n$ given in unary, does an $m\times n$ $(R,C)$-crossword exist?" This improves the result mentioned above.
2. The following problem is NP-hard: "Given a regular expression $E$ over $\{0,1\}$ and positive integers $m$ and $n$ given in unary, does an $m\times n$ $(E,E)$-crossword exist?"
3. There exists a fixed regular expression $C$ over $\{0,1\}$ such that the following problem is undecidable (equivalent to the Halting Problem): "Given a regular expression $R$ over $\{0,1\}$, does an $(R,C)$-crossword exist (of any size)?"
4. The following problem is undecidable (equivalent to the Halting Problem): "Given a regular expression $E$ over $\{0,1\}$, does an $(E,E)$-crossword exist (of any size)?"
Comments: 25 pages, 3 figures; three references added with explanation, citation added to Corollary 5, more detail in proof of Theorem 8, other minor corrections (results unchanged)
Subjects: Computational Complexity (cs.CC); Formal Languages and Automata Theory (cs.FL)
MSC classes: 68Q17, 68Q45, 03D05, 03D10, 03D15
ACM classes: F.1.1; F.1.3; F.4.3
Cite as: arXiv:1411.5437 [cs.CC]
  (or arXiv:1411.5437v2 [cs.CC] for this version)
  https://doi.org/10.48550/arXiv.1411.5437
arXiv-issued DOI via DataCite

Submission history

From: Stephen A. Fenner [view email]
[v1] Thu, 20 Nov 2014 04:28:47 UTC (41 KB)
[v2] Fri, 28 Nov 2014 20:43:46 UTC (42 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled The complexity of some regex crossword problems, by Stephen A. Fenner (University of South Carolina and 1 other authors
  • View PDF
  • TeX Source
  • Other Formats
view license
Current browse context:
cs.CC
< prev   |   next >
new | recent | 2014-11
Change to browse by:
cs
cs.FL

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

DBLP - CS Bibliography

listing | bibtex
Stephen A. Fenner
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack