Maximal size of a set of ordered words such that no pair of letters occurs twice












2












$begingroup$


Consider an alphabet $Sigma={1,dots,n}$.
An ordered word is a word $w=w_1w_2dots w_kinSigma^*$ such that $w_1<w_2<dots<w_k$. In other words, an ordered word is a strictly increasing sequence over ${1,dots,n}$.



Let us call $O_{n,k}$ the set of all ordered words over ${1,dots,n}$ of length $k$. Clearly, there are $binom{n}{k}$ many ordered words of length $k$.



Now, what I am looking for is the maximal size of a subset $Msubseteq O_{n,k}$ such that each pair of letters $ij$ ($1le i<jle n$) occurs at most once as a consecutive substring in any word of $M$. What is the maximal size of such a subset?



Formally, let $#_{ij}(M)$ be the number of words in $M$ that contain $ij$ as a consecutive substring, then
$$m_{n,k}=max{|M|:Msubseteq O_{n,k}text{ and }#_{ij}(M)le 1text{ for all }i,jtext{ with }1le i<jle n}.$$
What is $m_{n,k}$?



Asymptotic behavior as well as some non-trivial lower and upper bounds would be helpful.



$ $



Example: $Sigma={1,2,3,4}$ and $k=3$.



All ordered words of length $3$ are
$$O_{4,3}={123,124,134,234}.$$
A maximal subset such that no pair occurs more than once would be
$$M={123,134},$$
because all pairs $(12,13,14,23,24,34)$ occur at most once as a consecutive substring in $M$ and there is no set of size $3$ with this property. It follows that $m_{4,3}=2$.



Thank for any help.










share|cite|improve this question











$endgroup$

















    2












    $begingroup$


    Consider an alphabet $Sigma={1,dots,n}$.
    An ordered word is a word $w=w_1w_2dots w_kinSigma^*$ such that $w_1<w_2<dots<w_k$. In other words, an ordered word is a strictly increasing sequence over ${1,dots,n}$.



    Let us call $O_{n,k}$ the set of all ordered words over ${1,dots,n}$ of length $k$. Clearly, there are $binom{n}{k}$ many ordered words of length $k$.



    Now, what I am looking for is the maximal size of a subset $Msubseteq O_{n,k}$ such that each pair of letters $ij$ ($1le i<jle n$) occurs at most once as a consecutive substring in any word of $M$. What is the maximal size of such a subset?



    Formally, let $#_{ij}(M)$ be the number of words in $M$ that contain $ij$ as a consecutive substring, then
    $$m_{n,k}=max{|M|:Msubseteq O_{n,k}text{ and }#_{ij}(M)le 1text{ for all }i,jtext{ with }1le i<jle n}.$$
    What is $m_{n,k}$?



    Asymptotic behavior as well as some non-trivial lower and upper bounds would be helpful.



    $ $



    Example: $Sigma={1,2,3,4}$ and $k=3$.



    All ordered words of length $3$ are
    $$O_{4,3}={123,124,134,234}.$$
    A maximal subset such that no pair occurs more than once would be
    $$M={123,134},$$
    because all pairs $(12,13,14,23,24,34)$ occur at most once as a consecutive substring in $M$ and there is no set of size $3$ with this property. It follows that $m_{4,3}=2$.



    Thank for any help.










    share|cite|improve this question











    $endgroup$















      2












      2








      2





      $begingroup$


      Consider an alphabet $Sigma={1,dots,n}$.
      An ordered word is a word $w=w_1w_2dots w_kinSigma^*$ such that $w_1<w_2<dots<w_k$. In other words, an ordered word is a strictly increasing sequence over ${1,dots,n}$.



      Let us call $O_{n,k}$ the set of all ordered words over ${1,dots,n}$ of length $k$. Clearly, there are $binom{n}{k}$ many ordered words of length $k$.



      Now, what I am looking for is the maximal size of a subset $Msubseteq O_{n,k}$ such that each pair of letters $ij$ ($1le i<jle n$) occurs at most once as a consecutive substring in any word of $M$. What is the maximal size of such a subset?



      Formally, let $#_{ij}(M)$ be the number of words in $M$ that contain $ij$ as a consecutive substring, then
      $$m_{n,k}=max{|M|:Msubseteq O_{n,k}text{ and }#_{ij}(M)le 1text{ for all }i,jtext{ with }1le i<jle n}.$$
      What is $m_{n,k}$?



      Asymptotic behavior as well as some non-trivial lower and upper bounds would be helpful.



      $ $



      Example: $Sigma={1,2,3,4}$ and $k=3$.



      All ordered words of length $3$ are
      $$O_{4,3}={123,124,134,234}.$$
      A maximal subset such that no pair occurs more than once would be
      $$M={123,134},$$
      because all pairs $(12,13,14,23,24,34)$ occur at most once as a consecutive substring in $M$ and there is no set of size $3$ with this property. It follows that $m_{4,3}=2$.



      Thank for any help.










      share|cite|improve this question











      $endgroup$




      Consider an alphabet $Sigma={1,dots,n}$.
      An ordered word is a word $w=w_1w_2dots w_kinSigma^*$ such that $w_1<w_2<dots<w_k$. In other words, an ordered word is a strictly increasing sequence over ${1,dots,n}$.



      Let us call $O_{n,k}$ the set of all ordered words over ${1,dots,n}$ of length $k$. Clearly, there are $binom{n}{k}$ many ordered words of length $k$.



      Now, what I am looking for is the maximal size of a subset $Msubseteq O_{n,k}$ such that each pair of letters $ij$ ($1le i<jle n$) occurs at most once as a consecutive substring in any word of $M$. What is the maximal size of such a subset?



      Formally, let $#_{ij}(M)$ be the number of words in $M$ that contain $ij$ as a consecutive substring, then
      $$m_{n,k}=max{|M|:Msubseteq O_{n,k}text{ and }#_{ij}(M)le 1text{ for all }i,jtext{ with }1le i<jle n}.$$
      What is $m_{n,k}$?



      Asymptotic behavior as well as some non-trivial lower and upper bounds would be helpful.



      $ $



      Example: $Sigma={1,2,3,4}$ and $k=3$.



      All ordered words of length $3$ are
      $$O_{4,3}={123,124,134,234}.$$
      A maximal subset such that no pair occurs more than once would be
      $$M={123,134},$$
      because all pairs $(12,13,14,23,24,34)$ occur at most once as a consecutive substring in $M$ and there is no set of size $3$ with this property. It follows that $m_{4,3}=2$.



      Thank for any help.







      combinatorics word-combinatorics






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited 2 hours ago







      Danny

















      asked 4 hours ago









      DannyDanny

      73939




      73939






















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$

          There is a simple upper bound of $$frac{binom{n}{2}}{k-1},$$ following from the fact that there are $binom{n}{2}$ ordered pairs of elements, and each ordered word contains $k-1$ of them.



          There is an almost matching lower bound of
          $$
          frac{binom{n-k+1}{2}}{k-1}.
          $$

          This shows that for fixed $k$, the answer is asymptotically
          $$
          frac{n^2}{2(k-1)} pm O(n).
          $$



          For every $c geq 1$ and $1 leq d leq c$, we can consider the collection of ordered words of the form
          $$
          d,d+c,ldots,d+(k-1)c \
          d+(k-1)c,d+(k+1)c,ldots,d+2(k-1)c \
          ldots
          $$

          These collections for all $c,d$ have disjoint pairs. For a given $m leq n$ and $c$, there is a word of this type if $m-(k-1)c geq 1$, that is, if $c leq frac{m-1}{k-1}$. Therefore, the total number of words is
          $$
          sum_{m=k}^n leftlfloor frac{m-1}{k-1} rightrfloor.
          $$

          We can estimate this sum roughly by
          $$
          sum_{m=k}^n left(frac{m-1}{k-1}-1right) =
          sum_{m=k}^n frac{m-k}{k-1} = frac{binom{n-k+1}{2}}{k-1}.
          $$






          share|cite|improve this answer









          $endgroup$














            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "419"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f106296%2fmaximal-size-of-a-set-of-ordered-words-such-that-no-pair-of-letters-occurs-twice%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2












            $begingroup$

            There is a simple upper bound of $$frac{binom{n}{2}}{k-1},$$ following from the fact that there are $binom{n}{2}$ ordered pairs of elements, and each ordered word contains $k-1$ of them.



            There is an almost matching lower bound of
            $$
            frac{binom{n-k+1}{2}}{k-1}.
            $$

            This shows that for fixed $k$, the answer is asymptotically
            $$
            frac{n^2}{2(k-1)} pm O(n).
            $$



            For every $c geq 1$ and $1 leq d leq c$, we can consider the collection of ordered words of the form
            $$
            d,d+c,ldots,d+(k-1)c \
            d+(k-1)c,d+(k+1)c,ldots,d+2(k-1)c \
            ldots
            $$

            These collections for all $c,d$ have disjoint pairs. For a given $m leq n$ and $c$, there is a word of this type if $m-(k-1)c geq 1$, that is, if $c leq frac{m-1}{k-1}$. Therefore, the total number of words is
            $$
            sum_{m=k}^n leftlfloor frac{m-1}{k-1} rightrfloor.
            $$

            We can estimate this sum roughly by
            $$
            sum_{m=k}^n left(frac{m-1}{k-1}-1right) =
            sum_{m=k}^n frac{m-k}{k-1} = frac{binom{n-k+1}{2}}{k-1}.
            $$






            share|cite|improve this answer









            $endgroup$


















              2












              $begingroup$

              There is a simple upper bound of $$frac{binom{n}{2}}{k-1},$$ following from the fact that there are $binom{n}{2}$ ordered pairs of elements, and each ordered word contains $k-1$ of them.



              There is an almost matching lower bound of
              $$
              frac{binom{n-k+1}{2}}{k-1}.
              $$

              This shows that for fixed $k$, the answer is asymptotically
              $$
              frac{n^2}{2(k-1)} pm O(n).
              $$



              For every $c geq 1$ and $1 leq d leq c$, we can consider the collection of ordered words of the form
              $$
              d,d+c,ldots,d+(k-1)c \
              d+(k-1)c,d+(k+1)c,ldots,d+2(k-1)c \
              ldots
              $$

              These collections for all $c,d$ have disjoint pairs. For a given $m leq n$ and $c$, there is a word of this type if $m-(k-1)c geq 1$, that is, if $c leq frac{m-1}{k-1}$. Therefore, the total number of words is
              $$
              sum_{m=k}^n leftlfloor frac{m-1}{k-1} rightrfloor.
              $$

              We can estimate this sum roughly by
              $$
              sum_{m=k}^n left(frac{m-1}{k-1}-1right) =
              sum_{m=k}^n frac{m-k}{k-1} = frac{binom{n-k+1}{2}}{k-1}.
              $$






              share|cite|improve this answer









              $endgroup$
















                2












                2








                2





                $begingroup$

                There is a simple upper bound of $$frac{binom{n}{2}}{k-1},$$ following from the fact that there are $binom{n}{2}$ ordered pairs of elements, and each ordered word contains $k-1$ of them.



                There is an almost matching lower bound of
                $$
                frac{binom{n-k+1}{2}}{k-1}.
                $$

                This shows that for fixed $k$, the answer is asymptotically
                $$
                frac{n^2}{2(k-1)} pm O(n).
                $$



                For every $c geq 1$ and $1 leq d leq c$, we can consider the collection of ordered words of the form
                $$
                d,d+c,ldots,d+(k-1)c \
                d+(k-1)c,d+(k+1)c,ldots,d+2(k-1)c \
                ldots
                $$

                These collections for all $c,d$ have disjoint pairs. For a given $m leq n$ and $c$, there is a word of this type if $m-(k-1)c geq 1$, that is, if $c leq frac{m-1}{k-1}$. Therefore, the total number of words is
                $$
                sum_{m=k}^n leftlfloor frac{m-1}{k-1} rightrfloor.
                $$

                We can estimate this sum roughly by
                $$
                sum_{m=k}^n left(frac{m-1}{k-1}-1right) =
                sum_{m=k}^n frac{m-k}{k-1} = frac{binom{n-k+1}{2}}{k-1}.
                $$






                share|cite|improve this answer









                $endgroup$



                There is a simple upper bound of $$frac{binom{n}{2}}{k-1},$$ following from the fact that there are $binom{n}{2}$ ordered pairs of elements, and each ordered word contains $k-1$ of them.



                There is an almost matching lower bound of
                $$
                frac{binom{n-k+1}{2}}{k-1}.
                $$

                This shows that for fixed $k$, the answer is asymptotically
                $$
                frac{n^2}{2(k-1)} pm O(n).
                $$



                For every $c geq 1$ and $1 leq d leq c$, we can consider the collection of ordered words of the form
                $$
                d,d+c,ldots,d+(k-1)c \
                d+(k-1)c,d+(k+1)c,ldots,d+2(k-1)c \
                ldots
                $$

                These collections for all $c,d$ have disjoint pairs. For a given $m leq n$ and $c$, there is a word of this type if $m-(k-1)c geq 1$, that is, if $c leq frac{m-1}{k-1}$. Therefore, the total number of words is
                $$
                sum_{m=k}^n leftlfloor frac{m-1}{k-1} rightrfloor.
                $$

                We can estimate this sum roughly by
                $$
                sum_{m=k}^n left(frac{m-1}{k-1}-1right) =
                sum_{m=k}^n frac{m-k}{k-1} = frac{binom{n-k+1}{2}}{k-1}.
                $$







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered 1 hour ago









                Yuval FilmusYuval Filmus

                195k14184349




                195k14184349






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Computer Science Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f106296%2fmaximal-size-of-a-set-of-ordered-words-such-that-no-pair-of-letters-occurs-twice%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Costa Masnaga

                    Create new schema in PostgreSQL using DBeaver

                    Fotorealismo