Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #330859 > unrolled thread

Basic question on semigroups

Started byPaul <pepstein5@gmail.com>
First post2016-03-30 04:14 -0700
Last post2016-03-30 06:16 -0700
Articles 20 on this page of 47 — 7 participants

Back to article view | Back to sci.math


Contents

  Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-30 04:14 -0700
    Re: Basic question on semigroups "David C. Ullrich" <dullrich@sprynet.com> - 2016-03-30 07:18 -0500
      Re: Basic question on semigroups pepstein5@gmail.com - 2016-03-30 14:39 -0700
        Re: Basic question on semigroups "David C. Ullrich" <dullrich@sprynet.com> - 2016-03-31 07:36 -0500
          Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-31 05:50 -0700
            Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-31 05:53 -0700
      Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-30 14:49 -0700
        Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 18:13 -0500
          Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-30 15:24 -0700
            Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 18:44 -0500
              Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 15:56 -0700
                Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 19:15 -0500
                  Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 16:32 -0700
                    Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 19:56 -0500
                      Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 17:27 -0700
                        Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 20:39 -0500
                          Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 17:55 -0700
                            Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 22:04 -0500
                      Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-31 02:13 -0700
                        Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-31 05:50 -0500
                          Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-31 03:45 -0700
                            Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-31 03:54 -0700
                              Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-31 07:10 -0500
                                Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-31 04:31 -0700
                                Re: Basic question on semigroups James Waldby <not@valid.invalid> - 2016-04-01 19:38 +0000
                                  Re: Basic question on semigroups James Waldby <not@valid.invalid> - 2016-04-01 20:50 +0000
                                    Re: Basic question on semigroups quasi <quasi@null.set> - 2016-04-01 16:59 -0500
                                  Re: Basic question on semigroups quasi <quasi@null.set> - 2016-04-01 16:57 -0500
                                    Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-04-03 10:15 -0700
                                  Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-04-01 21:33 -0700
                              Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-31 04:19 -0700
              Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 19:27 -0500
              Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-31 01:49 -0700
            Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 20:22 -0500
              Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 17:35 -0700
            Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 20:30 -0500
              Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 17:37 -0700
                Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 20:51 -0500
                  Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 18:04 -0700
        Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 15:25 -0700
          Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-30 15:33 -0700
            Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 15:53 -0700
              Re: Basic question on semigroups Paul <pepstein5@gmail.com> - 2016-03-31 01:57 -0700
          Re: Basic question on semigroups Julio Di Egidio <julio@diegidio.name> - 2016-03-30 15:59 -0700
    Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 09:14 -0500
      Re: Basic question on semigroups quasi <quasi@null.set> - 2016-03-30 09:42 -0500
    Re: Basic question on semigroups Arturo Magidin <magidin@member.ams.org> - 2016-03-30 06:16 -0700

Page 1 of 3  [1] 2 3  Next page →


#330859 — Basic question on semigroups

FromPaul <pepstein5@gmail.com>
Date2016-03-30 04:14 -0700
SubjectBasic question on semigroups
Message-ID<7d2ca863-5c6b-4e0d-a494-2537e77e8c44@googlegroups.com>
Suppose a semigroup S is presented in terms of generators and relators.  The relators are of the form  w1 = 1, w2 = 1,...   where the w_i are words in the  generators of S.  If s belongs to S and s = 1 and s = x1 * x2 * ... x_m  where each x_i is a generator of S, must s be either empty or contain (as a string) one of the w_i?

In other words, suppose s = 1, does that mean that s can be made empty by removing substrings of s that express the defining relators?

Paul

[toc] | [next] | [standalone]


#330863

From"David C. Ullrich" <dullrich@sprynet.com>
Date2016-03-30 07:18 -0500
Message-ID<pan.2016.03.30.12.18.22@sprynet.com>
In reply to#330859
On Wed, 30 Mar 2016 04:14:23 -0700, Paul wrote:

> Suppose a semigroup S is presented in terms of generators and relators. 
> The relators are of the form  w1 = 1, w2 = 1,...   where the w_i are
> words in the  generators of S. 

A preliminary question: Is this notion something you just made up?
Seems to me if we were going to talk about presentations of semigroups
in terms of generators and relations the relations would _not_ be just
words! Because semigroups are not groups: If we're talking about groups
then ab=ba is the same as aba^{-1}b^{-1} = 1, so a relation may as
well be just a single word. But if we're talking about semigroups
there's no word such that [word] = 1 is the same as the relation ab=ba.
Seems to me in a sensible notion of "presentation of a semigroup in
terms of generators and relations" the relations would hence not be
just words.

Hence the question, did you just make up this notion or what?

> If s belongs to S and s = 1 and s = x1 *
> x2 * ... x_m  where each x_i is a generator of S, must s be either empty
> or contain (as a string) one of the w_i?
> 
> In other words, suppose s = 1, does that mean that s can be made empty
> by removing substrings of s that express the defining relators?
> 
> Paul

[toc] | [prev] | [next] | [standalone]


#330906

Frompepstein5@gmail.com
Date2016-03-30 14:39 -0700
Message-ID<5f459e43-f264-4d75-93d2-841e98322508@googlegroups.com>
In reply to#330863
On Wednesday, March 30, 2016 at 1:18:34 PM UTC+1, David C. Ullrich wrote:
> On Wed, 30 Mar 2016 04:14:23 -0700, Paul wrote:
> 
> > Suppose a semigroup S is presented in terms of generators and relators. 
> > The relators are of the form  w1 = 1, w2 = 1,...   where the w_i are
> > words in the  generators of S. 
> 
> A preliminary question: Is this notion something you just made up?
> Seems to me if we were going to talk about presentations of semigroups
> in terms of generators and relations the relations would _not_ be just
> words! Because semigroups are not groups: If we're talking about groups
> then ab=ba is the same as aba^{-1}b^{-1} = 1, so a relation may as
> well be just a single word. But if we're talking about semigroups
> there's no word such that [word] = 1 is the same as the relation ab=ba.
> Seems to me in a sensible notion of "presentation of a semigroup in
> terms of generators and relations" the relations would hence not be
> just words.
> 
> Hence the question, did you just make up this notion or what?
> 
> > If s belongs to S and s = 1 and s = x1 *
> > x2 * ... x_m  where each x_i is a generator of S, must s be either empty
> > or contain (as a string) one of the w_i?
> > 
> > In other words, suppose s = 1, does that mean that s can be made empty
> > by removing substrings of s that express the defining relators?
> > 
> > Paul

Thanks, David.

Is this a notion I just made up?  Strong yes.  This is the background.  I solved (correctly) a problem in computer science as follows.  Given a word w in a finite alphabet, find an algorithm to determine whether w can be reduced to the empty string by a finite number of deletions of words of the form xx where x is a character in the alphabet.  My algorithm is greedy in that (scanning from left to right), it removes the first xx it sees, and then removes the next yy in the smaller word.  The algorithm uses a stack and is O(N) where N is the length of the word.  I will gladly give more details if anyone is interested.

I then noticed a gap in the reasoning.  My algorithm assumes that, if you keep removing words of the form xx and eventually end up with a non-empty word where no such xx exists, then you can assume that w can not be reduced to the empty string.  However, that assumption is not quite justified.  Choices are available as to which xx to remove.  It could be that the particular (greedy) removal strategy didn't reduce w to the empty word, but that other strategies might.

For example, take the word  w = hhh.  Pretending to be a computer program, I remove the first pair of h's and end up with h.  Now, h has no removals possible.  So can I assume that w can't be reduced to the empty word, or do I have to try the other possible removal -- namely removing the 2nd and 3rd h's?

This covers the case where all xx are considered to be 1 where x is a character in the alphabet.  I was trying to generalise.

Apologies for the confusion caused by misusing terminology, and thanks to everyone on the thread, for trying to help, regardless.

Paul

[toc] | [prev] | [next] | [standalone]


#331024

From"David C. Ullrich" <dullrich@sprynet.com>
Date2016-03-31 07:36 -0500
Message-ID<pan.2016.03.31.12.36.10@sprynet.com>
In reply to#330906
On Wed, 30 Mar 2016 14:39:09 -0700, pepstein5 wrote:

> On Wednesday, March 30, 2016 at 1:18:34 PM UTC+1, David C. Ullrich
> wrote:
>> On Wed, 30 Mar 2016 04:14:23 -0700, Paul wrote:
>> 
>> > Suppose a semigroup S is presented in terms of generators and
>> > relators. The relators are of the form  w1 = 1, w2 = 1,...   where
>> > the w_i are words in the  generators of S.
>> 
>> A preliminary question: Is this notion something you just made up?
>> Seems to me if we were going to talk about presentations of semigroups
>> in terms of generators and relations the relations would _not_ be just
>> words! Because semigroups are not groups: If we're talking about groups
>> then ab=ba is the same as aba^{-1}b^{-1} = 1, so a relation may as well
>> be just a single word. But if we're talking about semigroups there's no
>> word such that [word] = 1 is the same as the relation ab=ba.
>> Seems to me in a sensible notion of "presentation of a semigroup in
>> terms of generators and relations" the relations would hence not be
>> just words.
>> 
>> Hence the question, did you just make up this notion or what?
>> 
>> > If s belongs to S and s = 1 and s = x1 *
>> > x2 * ... x_m  where each x_i is a generator of S, must s be either
>> > empty or contain (as a string) one of the w_i?
>> > 
>> > In other words, suppose s = 1, does that mean that s can be made
>> > empty by removing substrings of s that express the defining relators?
>> > 
>> > Paul
> 
> Thanks, David.
> 
> Is this a notion I just made up?  Strong yes.  This is the background. 
> I solved (correctly) a problem in computer science as follows.  Given a
> word w in a finite alphabet, find an algorithm to determine whether w
> can be reduced to the empty string by a finite number of deletions of
> words of the form xx where x is a character in the alphabet.  

You should really talk about all this as a problem in string processing
then, instead of saying you're talking about presentations of semigroups
in terms of generators and relations. Because it seems like a hugely
unnatural version of the latter, given that you're restricting to a
tiny subset of what the natural relations would be.

>My
> algorithm is greedy in that (scanning from left to right), it removes
> the first xx it sees, and then removes the next yy in the smaller word. 
> The algorithm uses a stack and is O(N) where N is the length of the
> word.  I will gladly give more details if anyone is interested.
> 
> I then noticed a gap in the reasoning.  My algorithm assumes that, if
> you keep removing words of the form xx and eventually end up with a
> non-empty word where no such xx exists, then you can assume that w can
> not be reduced to the empty string.  However, that assumption is not
> quite justified.  Choices are available as to which xx to remove.  It
> could be that the particular (greedy) removal strategy didn't reduce w
> to the empty word, but that other strategies might.
> 
> For example, take the word  w = hhh.  Pretending to be a computer
> program, I remove the first pair of h's and end up with h.  Now, h has
> no removals possible.  So can I assume that w can't be reduced to the
> empty word, or do I have to try the other possible removal -- namely
> removing the 2nd and 3rd h's?
> 
> This covers the case where all xx are considered to be 1 where x is a
> character in the alphabet.  I was trying to generalise.
> 
> Apologies for the confusion caused by misusing terminology, and thanks
> to everyone on the thread, for trying to help, regardless.
> 
> Paul

[toc] | [prev] | [next] | [standalone]


#331026

FromPaul <pepstein5@gmail.com>
Date2016-03-31 05:50 -0700
Message-ID<bb2aa970-9dff-4023-8bac-ca88194741b2@googlegroups.com>
In reply to#331024
On Thursday, March 31, 2016 at 1:36:20 PM UTC+1, David C. Ullrich wrote:
 
> 
> You should really talk about all this as a problem in string processing
> then, instead of saying you're talking about presentations of semigroups
> in terms of generators and relations. Because it seems like a hugely
> unnatural version of the latter, given that you're restricting to a
> tiny subset of what the natural relations would be.
> 

Yes, excellent point.  I agree 100%.  Do you know about string processing, BTW?  For exact matching, the algorithms I have learned are Z, KMP, Boyer-Moore, Apostolico-Giancarlo, and Rabin-Karp.  When I say I "learned them", I doubt that I could implement all four without consulting my texts so I suppose "learned" should be taken as an abbreviation for "learned but may have forgotten."

Paul

[toc] | [prev] | [next] | [standalone]


#331027

FromPaul <pepstein5@gmail.com>
Date2016-03-31 05:53 -0700
Message-ID<ff18b6fb-2add-4568-9b21-ff00af0bf306@googlegroups.com>
In reply to#331026
On Thursday, March 31, 2016 at 1:50:41 PM UTC+1, Paul wrote:
> On Thursday, March 31, 2016 at 1:36:20 PM UTC+1, David C. Ullrich wrote:
>  
> > 
> > You should really talk about all this as a problem in string processing
> > then, instead of saying you're talking about presentations of semigroups
> > in terms of generators and relations. Because it seems like a hugely
> > unnatural version of the latter, given that you're restricting to a
> > tiny subset of what the natural relations would be.
> > 
> 
> Yes, excellent point.  I agree 100%.  Do you know about string processing, BTW?  For exact matching, the algorithms I have learned are Z, KMP, Boyer-Moore, Apostolico-Giancarlo, and Rabin-Karp.  When I say I "learned them", I doubt that I could implement all four without consulting my texts so I suppose "learned" should be taken as an abbreviation for "learned but may have forgotten."
> 
> Paul

"all four" should be "all five"

Paul

[toc] | [prev] | [next] | [standalone]


#330907

FromPaul <pepstein5@gmail.com>
Date2016-03-30 14:49 -0700
Message-ID<f1d15586-d3f4-428b-8bda-96a90ab242db@googlegroups.com>
In reply to#330863
On Wednesday, March 30, 2016 at 1:18:34 PM UTC+1, David C. Ullrich wrote:
> On Wed, 30 Mar 2016 04:14:23 -0700, Paul wrote:
> 
> > Suppose a semigroup S is presented in terms of generators and relators. 
> > The relators are of the form  w1 = 1, w2 = 1,...   where the w_i are
> > words in the  generators of S. 
> 
> A preliminary question: Is this notion something you just made up?
> Seems to me if we were going to talk about presentations of semigroups
> in terms of generators and relations the relations would _not_ be just
> words! Because semigroups are not groups: If we're talking about groups
> then ab=ba is the same as aba^{-1}b^{-1} = 1, so a relation may as
> well be just a single word. But if we're talking about semigroups
> there's no word such that [word] = 1 is the same as the relation ab=ba.
> Seems to me in a sensible notion of "presentation of a semigroup in
> terms of generators and relations" the relations would hence not be
> just words.
> 
> Hence the question, did you just make up this notion or what?
> 
> > If s belongs to S and s = 1 and s = x1 *
> > x2 * ... x_m  where each x_i is a generator of S, must s be either empty
> > or contain (as a string) one of the w_i?
> > 
> > In other words, suppose s = 1, does that mean that s can be made empty
> > by removing substrings of s that express the defining relators?
> > 
> > Paul

Here is another attempt to ask the original question.  Let Sigma be a finite alphabet.  Let w be a word in that alphabet.  Let W be a set (not necessarily finite) of words in that alphabet.  Suppose there exists a finite sequence of words w = w_0, w_1, ...., w_n such that each w_i+1 is formed from w_i by either deleting a word in W from w_i or inserting a word from W into w_i.  Suppose that w_n is non_empty and contains no member of W as a substring.
Is it possible that w can be reduced to the empty string by a finite number of insertion and deletions (not necessarily alternating) of strings in W?

Thank You,

Paul

[toc] | [prev] | [next] | [standalone]


#330909

Fromquasi <quasi@null.set>
Date2016-03-30 18:13 -0500
Message-ID<aimofb9g8c9rd27srn656gju6098hmn0cq@4ax.com>
In reply to#330907
Paul wrote:
>
>Here is another attempt to ask the original question.  Let Sigma 
>be a finite alphabet.  Let w be a word in that alphabet.  

Based on the discussion below, w is not (yet) fixed.

>Let W be a set (not necessarily finite) of words in that alphabet.
>Suppose there exists a finite sequence of words 
>w = w_0, w_1, ...., w_n 

Now you're using "w" for a sequence of words.

>such that each w_i+1 is formed from w_i by either deleting a word 
>in W from w_i or inserting a word from W into w_i.  

You forgot to specify the conditions on w_0.

Presumably you intended w_0 in W.

>Suppose that w_n is non_empty and contains no member of W as a
>substring. 

The condition ("contains no member ...") on w_n isn't needed for 
the desired conclusion.

>Is it possible that w can be reduced to the empty 
>string by a finite number of insertion and deletions (not 
>necessarily alternating) of strings in W?

Yes, trivially.

The inverse of an insertion is a deletion.

The inverse of a deletion is an insertion.

Hence, just reverse the construction of w_n.

The existence of such a reversal is clear.

Finding it (assuming you don't have knowledge of the subsequence
w_0,w_1,...,w_(n-1)) is another matter.

quasi

[toc] | [prev] | [next] | [standalone]


#330910

FromPaul <pepstein5@gmail.com>
Date2016-03-30 15:24 -0700
Message-ID<eea514e6-a531-4644-8ffc-17e653130486@googlegroups.com>
In reply to#330909
On Wednesday, March 30, 2016 at 11:14:55 PM UTC+1, quasi wrote:
> Paul wrote:
> >
> >Here is another attempt to ask the original question.  Let Sigma 
> >be a finite alphabet.  Let w be a word in that alphabet.  
> 
> Based on the discussion below, w is not (yet) fixed.
> 
> >Let W be a set (not necessarily finite) of words in that alphabet.
> >Suppose there exists a finite sequence of words 
> >w = w_0, w_1, ...., w_n 
> 
> Now you're using "w" for a sequence of words.
> 
> >such that each w_i+1 is formed from w_i by either deleting a word 
> >in W from w_i or inserting a word from W into w_i.  
> 
> You forgot to specify the conditions on w_0.
> 
> Presumably you intended w_0 in W.
> 
> >Suppose that w_n is non_empty and contains no member of W as a
> >substring. 
> 
> The condition ("contains no member ...") on w_n isn't needed for 
> the desired conclusion.
> 
> >Is it possible that w can be reduced to the empty 
> >string by a finite number of insertion and deletions (not 
> >necessarily alternating) of strings in W?
> 
> Yes, trivially.
> 
> The inverse of an insertion is a deletion.
> 
> The inverse of a deletion is an insertion.
> 
> Hence, just reverse the construction of w_n.
> 
> The existence of such a reversal is clear.
> 
> Finding it (assuming you don't have knowledge of the subsequence
> w_0,w_1,...,w_(n-1)) is another matter.

Surprisingly (to me), you didn't understand my statement of the problem.  I'll try again.

Let Sigma be a finite alphabet.  Let w be a word in the alphabet Sigma.  w is fixed.  w is fixed.  w is fixed. Also, please bear in mind that w is fixed.  Let W be a set of words in Sigma.  Consider a finite sequence of words in Sigma: w_0, w_1,..., w_n such that w_0 = w.  Suppose it is the case that for each w_i, w_i+1 is formed either by deleting from w_i a substring that belongs to W or inserting into w_i a word that belongs to W.  Suppose it is also the case that w_n is non_empty and contains no word in W as a substring.  Is it possible that w can be reduced to the empty string by a finite number of insertions and deletions (not necessarily alternating) of strings in W.

Paul

[toc] | [prev] | [next] | [standalone]


#330917

Fromquasi <quasi@null.set>
Date2016-03-30 18:44 -0500
Message-ID<30pofbl6cp1244080n485d9ud28h8fp1tb@4ax.com>
In reply to#330910
Paul wrote:
>
>Surprisingly (to me), you didn't understand my statement of the
>problem.  I'll try again.

OK.

>Let Sigma be a finite alphabet.  Let w be a word in the alphabet
>Sigma.  w is fixed.  w is fixed.  w is fixed. 

No need to take that tone.

>Also, please bear in mind that w is fixed.

Ok, got it.

My confusion was due to a misreading of your prior specification

   w = w_0,w_1,...,w_m

My (overly) quick interpretation was that w represented the 
entire sequence of n+1 terms.

I see now that what you intended was:

   Suppose a sequence w_0,...,w_n is defined by

      w_0 = w

      w_(i+1) = ...

>Let W be a set of words in Sigma.  Consider a finite sequence 
>of words in Sigma: w_0, w_1,..., w_n such that w_0 = w.  

That's written more clearly.

>Suppose it is the case that for each w_i, w_i+1 is formed either
>by deleting from w_i a substring that belongs to W or inserting 
>into w_i a word that belongs to W.  Suppose it is also the case 
>that w_n is non_empty and contains no word in W as a substring.

Again, why restrict w_n for no good reason?

The statement is simpler without it.

If w_n is empty, so much the better.

If w_n contains a word of W, it can be instantly removed.

>s it possible that w can be reduced to the empty string by a 
>finite number of insertions and deletions (not necessarily
>alternating) of strings in W.

My previous answer still applies (pasted below) ...

Yes, trivially.

The inverse of an insertion is a deletion.

The inverse of a deletion is an insertion.

Hence, just reverse the construction of w_n.

When you get to w_0, just delete it.

The existence of such a reversal is clear.

Finding it (assuming you don't have knowledge of the subsequence
w_0,w_1,...,w_(n-1)) is another matter.

quasi

[toc] | [prev] | [next] | [standalone]


#330921

FromJulio Di Egidio <julio@diegidio.name>
Date2016-03-30 15:56 -0700
Message-ID<85bddf58-75eb-4215-af96-2825c9a46b40@googlegroups.com>
In reply to#330917
On Wednesday, March 30, 2016 at 11:45:56 PM UTC+1, quasi wrote:
<snip>
> The inverse of an insertion is a deletion.
> 
> The inverse of a deletion is an insertion.
> 
> Hence, just reverse the construction of w_n.

But w_n is *any* string, not necessarily a string constructed from W.  Conversely, you are not guaranteed you can reverse the "construction" by only inserting/deleting elements in W.

Julio

> When you get to w_0, just delete it.
> 
> The existence of such a reversal is clear.
> 
> Finding it (assuming you don't have knowledge of the subsequence
> w_0,w_1,...,w_(n-1)) is another matter.

[toc] | [prev] | [next] | [standalone]


#330929

Fromquasi <quasi@null.set>
Date2016-03-30 19:15 -0500
Message-ID<noqofbph5k4a8ud9u17t9la15lqkc89d1p@4ax.com>
In reply to#330921
Julio Di Egidio wrote:
>quasi wrote:
>>
>>The inverse of an insertion is a deletion.
>> 
>>The inverse of a deletion is an insertion.
>> 
>>Hence, just reverse the construction of w_n.
>
>But w_n is *any* string, not necessarily a string constructed 
>from W.  Conversely, you are not guaranteed you can reverse the
>"construction" by only inserting/deleting elements in W.

But w_n is not just *any* string.

It is, in fact, constructed from W by insertions and deletions.

The OP specified that 

   (1) w is in W

   (2) w_0 = w

   (3) w_(i+1) is formed from w_i by either deleting a word in W
       from w_i or inserting a word from W into w_i.

quasi

[toc] | [prev] | [next] | [standalone]


#330933

FromJulio Di Egidio <julio@diegidio.name>
Date2016-03-30 16:32 -0700
Message-ID<20dbcb6c-9077-43b1-9d1a-daf0f52d12a4@googlegroups.com>
In reply to#330929
On Thursday, March 31, 2016 at 12:16:47 AM UTC+1, quasi wrote:
> Julio Di Egidio wrote:
> >quasi wrote:
> >>
> >>The inverse of an insertion is a deletion.
> >> 
> >>The inverse of a deletion is an insertion.
> >> 
> >>Hence, just reverse the construction of w_n.
> >
> >But w_n is *any* string, not necessarily a string constructed 
> >from W.  Conversely, you are not guaranteed you can reverse the
> >"construction" by only inserting/deleting elements in W.
> 
> But w_n is not just *any* string.
> 
> It is, in fact, constructed from W by insertions and deletions.
> 
> The OP specified that 
> 
>    (1) w is in W
> 
>    (2) w_0 = w
> 
>    (3) w_(i+1) is formed from w_i by either deleting a word in W
>        from w_i or inserting a word from W into w_i.

No, w is *not* (necessarily) in W.  (And if it were, the question would indeed be moot from the outset.)  Hence, w_n is itself *any* word, i.e. not necessarily one that can be deconstructed using elements in W only.

I think you are still misreading the problem.  Read my recent posts, I have reformulated the problem and given solution (though just to the immediate question, not a general solution, that's possibly for you!) and examples.

Julio

[toc] | [prev] | [next] | [standalone]


#330939

Fromquasi <quasi@null.set>
Date2016-03-30 19:56 -0500
Message-ID<qbsofbdn289ourkhljvf62rc22ecm5m9c1@4ax.com>
In reply to#330933
Julio Di Egidio wrote:
>quasi wrote:
>>Julio Di Egidio wrote:
>>>quasi wrote:
>>>>
>>>>The inverse of an insertion is a deletion.
>>>> 
>>>>The inverse of a deletion is an insertion.
>>>> 
>>>>Hence, just reverse the construction of w_n.
>>>
>>>But w_n is *any* string, not necessarily a string constructed 
>>>from W.  Conversely, you are not guaranteed you can reverse the
>>>"construction" by only inserting/deleting elements in W.
>> 
>>But w_n is not just *any* string.
>> 
>>It is, in fact, constructed from W by insertions and deletions.
>> 
>>The OP specified that 
>> 
>>   (1) w is in W
>> 
>>   (2) w_0 = w
>> 
>>   (3) w_(i+1) is formed from w_i by either deleting a word in W
>>       from w_i or inserting a word from W into w_i.
>
>No, w is *not* (necessarily) in W.  (And if it were, the question >would indeed be moot from the outset.)

You're right, I misread it.

The OP only required w to be a finite word in the alphabet Sigma.

But it's also possible that the _OP_ misread it.

The problem really only makes sense if w is in W, otherwise what's 
the point of the sequence w_1,...,w_n? If w is an arbitrary finite
word from the alphabet, the sequence is irrelevant. You might as
well just ask the question about w, rather than w_n.

In any case, if it's known in advance that w_n _can_, in fact, be
reduced to the empty string, my previously proposed algorithm will
terminate in finite time. If it's not known whether or not w_n can 
be reduced to the empty string, and if in fact, w_n _can't_ be 
reduced to the empty string, my suggested algorithm has no way of
discovering that fact, and in such a case, it won't terminate.

>Hence, w_n is itself *any* word, i.e. not necessarily one that can 
>be deconstructed using elements in W only.

Agreed -- thanks for clarifying that point.

quasi

[toc] | [prev] | [next] | [standalone]


#330946

FromJulio Di Egidio <julio@diegidio.name>
Date2016-03-30 17:27 -0700
Message-ID<64fb9bfd-de82-44e4-9340-a74dd675076b@googlegroups.com>
In reply to#330939
On Thursday, March 31, 2016 at 12:57:51 AM UTC+1, quasi wrote:
> Julio Di Egidio wrote:
> >quasi wrote:
> >>Julio Di Egidio wrote:
> >>>quasi wrote:
> >>>>
> >>>>The inverse of an insertion is a deletion.
> >>>> 
> >>>>The inverse of a deletion is an insertion.
> >>>> 
> >>>>Hence, just reverse the construction of w_n.
> >>>
> >>>But w_n is *any* string, not necessarily a string constructed 
> >>>from W.  Conversely, you are not guaranteed you can reverse the
> >>>"construction" by only inserting/deleting elements in W.
> >> 
> >>But w_n is not just *any* string.
> >> 
> >>It is, in fact, constructed from W by insertions and deletions.
> >> 
> >>The OP specified that 
> >> 
> >>   (1) w is in W
> >> 
> >>   (2) w_0 = w
> >> 
> >>   (3) w_(i+1) is formed from w_i by either deleting a word in W
> >>       from w_i or inserting a word from W into w_i.
> >
> >No, w is *not* (necessarily) in W.  (And if it were, the question >would indeed be moot from the outset.)
> 
> You're right, I misread it.
> 
> The OP only required w to be a finite word in the alphabet Sigma.
> 
> But it's also possible that the _OP_ misread it.
> 
> The problem really only makes sense if w is in W,

That problem is trivial, the interesting problem is when we are given a w that is not (necessarily) reducible.  (And this is indeed the problem the OP is about, as the author himself has confirmed.)

> otherwise what's 
> the point of the sequence w_1,...,w_n? If w is an arbitrary finite
> word from the alphabet, the sequence is irrelevant. You might as
> well just ask the question about w, rather than w_n.

Indeed, I have reformulated the problem just in terms of w_0 and whether that is reducible.  But the OP's question is not incorrect either: since w_0 is any word, which you could deduce in the presentation from the fact that no restriction is placed on it (or on w), w_n (i.e. any w_i) is itself any word.

> In any case, if it's known in advance that w_n _can_, in fact, be
> reduced to the empty string, my previously proposed algorithm will
> terminate in finite time. If it's not known whether or not w_n can 
> be reduced to the empty string, and if in fact, w_n _can't_ be 
> reduced to the empty string, my suggested algorithm has no way of
> discovering that fact, and in such a case, it won't terminate.

That is interesting.  Challenge: find an algorithm that can do that in finite time.

Julio

> >Hence, w_n is itself *any* word, i.e. not necessarily one that can 
> >be deconstructed using elements in W only.
> 
> Agreed -- thanks for clarifying that point.

[toc] | [prev] | [next] | [standalone]


#330950

Fromquasi <quasi@null.set>
Date2016-03-30 20:39 -0500
Message-ID<4fvofbha2osuiqaitf8fjjdki7gdovuj9t@4ax.com>
In reply to#330946
Julio Di Egidio wrote:
>quasi wrote [edited replacing w_n by w]:
>>
>>In any case, if it's known in advance that w _can_, in fact, 
>>be reduced to the empty string, my previously proposed algorithm
>>will terminate in finite time. If it's not known whether or not 
>>w_n can be reduced to the empty string, and if in fact, w_n
>>_can't_ be reduced to the empty string, my suggested algorithm 
>>has no way of discovering that fact, and in such a case, it 
>>won't terminate.
>
>That is interesting.  Challenge: find an algorithm that can do 
>that in finite time.

I'm fairly sure it's undecidable. It's a special case of The
Word Problem for finitely presented semigroups, which is known
to be undecidable.

That's why I think it's likely that the OP misread the problem.
It would be nice if he gave a reference to the source of the
problem so we could check the official wording.

quasi

[toc] | [prev] | [next] | [standalone]


#330952

FromJulio Di Egidio <julio@diegidio.name>
Date2016-03-30 17:55 -0700
Message-ID<4d9be565-ca08-44dc-809b-1353729454dc@googlegroups.com>
In reply to#330950
On Thursday, March 31, 2016 at 1:41:01 AM UTC+1, quasi wrote:
> Julio Di Egidio wrote:
> >quasi wrote [edited replacing w_n by w]:
> >>
> >>In any case, if it's known in advance that w _can_, in fact, 
> >>be reduced to the empty string, my previously proposed algorithm
> >>will terminate in finite time. If it's not known whether or not 
> >>w_n can be reduced to the empty string, and if in fact, w_n
> >>_can't_ be reduced to the empty string, my suggested algorithm 
> >>has no way of discovering that fact, and in such a case, it 
> >>won't terminate.
> >
> >That is interesting.  Challenge: find an algorithm that can do 
> >that in finite time.
> 
> I'm fairly sure it's undecidable. It's a special case of The
> Word Problem for finitely presented semigroups, which is known
> to be undecidable.

Cool, thank you.

> That's why I think it's likely that the OP misread the problem.
> It would be nice if he gave a reference to the source of the
> problem so we could check the official wording.

I find that is an irrational attitude.  Why doubt the intentions rather than the presentation?  Of course, the initial presentation was not impeccable, but the author has even explicitly later clarified his intentions; not to mention, those are the intentions that make sense, otherwise the question is just trivial.  Of course, the initial presentation was not impeccable, it never is when we initially ask a question...

Julio

[toc] | [prev] | [next] | [standalone]


#330956

Fromquasi <quasi@null.set>
Date2016-03-30 22:04 -0500
Message-ID<891pfb5abf6obv0hksdijvdir4d7alt6n2@4ax.com>
In reply to#330952
Julio Di Egidio wrote:
>quasi wrote:
>>Julio Di Egidio wrote:
>>>quasi wrote [edited replacing w_n by w]:
>>>>
>>>>In any case, if it's known in advance that w _can_, in fact, 
>>>>be reduced to the empty string, my previously proposed algorithm
>>>>will terminate in finite time. If it's not known whether or not 
>>>>w_n can be reduced to the empty string, and if in fact, w_n
>>>>_can't_ be reduced to the empty string, my suggested algorithm 
>>>>has no way of discovering that fact, and in such a case, it 
>>>>won't terminate.
>>>
>>>That is interesting.  Challenge: find an algorithm that can do 
>>>that in finite time.
>> 
>>I'm fairly sure it's undecidable. It's a special case of The
>>Word Problem for finitely presented semigroups, which is known
>>to be undecidable.
>
>Cool, thank you.
>
>>That's why I think it's likely that the OP misread the problem.
>>It would be nice if he gave a reference to the source of the
>>problem so we could check the official wording.
>
>I find that is an irrational attitude.  Why doubt the intentions rather than the presentation? 

Because from the OP's recent posts, it's likely the source is some
textbook or website designed for programmers, so it's unlikely
that they would sneak in an undecidable problem, masquerading as
an ordinary problem.

I'll pose 3 problems along the lines of the OP's stated problem.

The first is easy -- you already solved it (as did I), and it 
might be the intended problem. 

For all three problems, I dispense with the superfluous and
distracting sequence w_1,...,w_n.

Problem 1:

Do there exist Sigma,W,w such that

   (1) Sigma is a nonempty finite alphabet.

   (2) W is a nonempty set of nonempty words from the alphabet 
       Sigma.
 
   (3) w is a nonempty word from the alphabet Sigma such that no
       substring of w is in W, and yet, w is reducible to the
       empty string by a finite sequence of insertions and 
       deletions of elements of W. 

Answer: Yes -- easy (by examples).

Problem 2:

Given inputs: Sigma,W,w.

   (1) Sigma is a nonempty finite alphabet.

   (2) W is a nonempty finite set of nonempty words from the 
       alphabet Sigma.
 
   (3) w is a word from the alphabet Sigma _known_ to be 
       reducible to the empty string by a finite sequence
       of insertions and deletions of elements of W. 

Design and implement an algorithm, which, for the given inputs,
outputs a sequence of strings, starting with w and ending with
the empty string, such that each string can be obtained from
the previous one by a single insertion or deletion of an 
element of W.

Solution: The closure algorithm I outlined in one of my previous 
replied achieves the desired reduction.

Problem 3:

Same as problem 2 except now w is an arbitrary word from the 
alphabet Sigma. In particular, w may or may not be reducible to 
the empty string. Required is to design an algorithm which, in
finite time, terminates by either showing how w can be reduced
to the empty string or declaring with certainty that no such
reduction is possible.

Remarks: I suspect problem 3 is unsolvable (it's a special case
of The Word Problem for finitely presented groups which is 
known to be undecidable).

In my initial reading of the OP's problem, I interpreted it as 
problem 2 (requiring a general algorithm), rather than problem 1 
(which just requires an example). The confusion was partly my 
fault (rushing due to lack time), but partly the OP's imprecise
wording and extraneous information (the sequence w_1,...,w_n -- 
how was that at all relevant?).

>Of course, the initial presentation was not impeccable, 

That's for sure.

>it never is when we initially ask a question ...

The same for initial answers (at least for those in _my_ replies).

quasi

[toc] | [prev] | [next] | [standalone]


#330996

FromPaul <pepstein5@gmail.com>
Date2016-03-31 02:13 -0700
Message-ID<d3cb1678-3f8c-482b-a78d-ed8e69b9b842@googlegroups.com>
In reply to#330939
On Thursday, March 31, 2016 at 12:57:51 AM UTC+1, quasi wrote:
> Julio Di Egidio wrote:
> >quasi wrote:
> >>Julio Di Egidio wrote:
> >>>quasi wrote:
> >>>>
> >>>>The inverse of an insertion is a deletion.
> >>>> 
> >>>>The inverse of a deletion is an insertion.
> >>>> 
> >>>>Hence, just reverse the construction of w_n.
> >>>
> >>>But w_n is *any* string, not necessarily a string constructed 
> >>>from W.  Conversely, you are not guaranteed you can reverse the
> >>>"construction" by only inserting/deleting elements in W.
> >> 
> >>But w_n is not just *any* string.
> >> 
> >>It is, in fact, constructed from W by insertions and deletions.
> >> 
> >>The OP specified that 
> >> 
> >>   (1) w is in W
> >> 
> >>   (2) w_0 = w
> >> 
> >>   (3) w_(i+1) is formed from w_i by either deleting a word in W
> >>       from w_i or inserting a word from W into w_i.
> >
> >No, w is *not* (necessarily) in W.  (And if it were, the question >would indeed be moot from the outset.)
> 
> You're right, I misread it.
> 
> The OP only required w to be a finite word in the alphabet Sigma.
> 
> But it's also possible that the _OP_ misread it.
> 
> The problem really only makes sense if w is in W, otherwise what's 
> the point of the sequence w_1,...,w_n? If w is an arbitrary finite
> word from the alphabet, the sequence is irrelevant. You might as
> well just ask the question about w, rather than w_n.
...

But w_n is not arbitrary; w_n has the property that it is non_empty and contains no member of W as a substring.

The question is all about w.  The question (posed informally) is "If an attempt to reduce w to the empty word doesn't work, is w irreducible or might some other attempt reduce w to the empty string?"  Moving from w to w_n constitutes a reduction attempt.

I accept that my first attempt to ask the question was unclear.  My second attempt was borderline.  I still don't see any problems with my third and later attempts, other than that my third question was very easy and was immediately counterexampled by Julio.

Paul

[toc] | [prev] | [next] | [standalone]


#330999

Fromquasi <quasi@null.set>
Date2016-03-31 05:50 -0500
Message-ID<vsupfb9rmenfo721uvdrcfcqsj5ojbvacp@4ax.com>
In reply to#330996
Paul wrote:
>
>The question is all about w.  The question (posed informally) 
>is "If an attempt to reduce w to the empty word doesn't work, 
>is w irreducible or might some other attempt reduce w to the 
>empty string?"  Moving from w to w_n constitutes a reduction 
>attempt.

Then you don't understand my objection.

By "reducibility", I mean reducibility to the empty string
using any combination of insertions and/or deletions.

Thus, what you're calling w_n might as well be the initial w.

No need for a sequence.

Said differently, suppose the original w has no substring in W
and it's given that w is reducible by some finite sequence of
insertions and/or deletions. Then w already qualifies as what 
you're calling w_n.

>I accept that my first attempt to ask the question was unclear.  

Right.

>My second attempt was borderline.

Not from my perspective.

For me, the sequence thing was the stumbling block (and still is).

>I still don't see any problems with my third and later attempts, 

I'm not sure I read them.

>other than that my third question was very easy and was 
>immediately counterexampled by Julio.

In a later reply, I posted three versions of what I thought 
_might_ have been your intended problem. Could you check to see 
if any of them is equivalent to what you were asking?

Also, is this a problem of your own, or does it have an external
source? 

quasi

[toc] | [prev] | [next] | [standalone]


Page 1 of 3  [1] 2 3  Next page →

Back to top | Article view | sci.math


csiph-web