POV-Ray : Newsgroups : povray.off-topic : An even more interesting problem : Re: An even more interesting problem Server Time
28 Jul 2024 18:22:49 EDT (-0400)
  Re: An even more interesting problem  
From: Kevin Wampler
Date: 24 May 2013 16:02:15
Message: <519fc747$1@news.povray.org>
On 5/24/2013 12:22 PM, Warp wrote:
> Kevin Wampler <nob### [at] nowherenet> wrote:
>> On 5/24/2013 11:20 AM, Orchid Win7 v1 wrote:
>>> Suppose I give you two arbitrary regular expressions. Are they equivalent?
>
>> It depends on what you specifically mean by "regular expression", but
>> probably this problem is PSPACE-complete.  From what I can tell is
>> generally solved by converting each regexp into a DFA and checking if
>> they are isomorphic.
>
> No. Two regular expressions expressing the same "language" (ie. matching
> the exact same things) is not a question of isomorphism. Isomorphism is
> a much stricter comparison.

I should have been more explicit: solved by converting each regex into a 
*minimal* DFA  and checking if they are isomorphic.

Graph isomorphism is of course GI-complete, but the conversion to a 
minimal DFA is in general PSPACE-complete.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.