Why is the sequence “3,3,4,5,2” considered a bitonic sequence?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite
1












Why do we consider the sequence "3,3,4,5,2" a bitonic sequence?



In the sequence, "3,3,4,5,2", the sequence is



  • constant for "3,3",

  • increasing for "4,5", and

  • decreasing for "5,2".






share|cite|improve this question






















  • According to this site: A Bitonic Sequence is a sequence of numbers which is first strictly increasing then after a point strictly decreasing. , your example might be incorrect because "3,3" is not strictly increasing. I am not an expert. Waiting for experts to explain.
    – scaaahu
    Aug 21 at 13:18














up vote
3
down vote

favorite
1












Why do we consider the sequence "3,3,4,5,2" a bitonic sequence?



In the sequence, "3,3,4,5,2", the sequence is



  • constant for "3,3",

  • increasing for "4,5", and

  • decreasing for "5,2".






share|cite|improve this question






















  • According to this site: A Bitonic Sequence is a sequence of numbers which is first strictly increasing then after a point strictly decreasing. , your example might be incorrect because "3,3" is not strictly increasing. I am not an expert. Waiting for experts to explain.
    – scaaahu
    Aug 21 at 13:18












up vote
3
down vote

favorite
1









up vote
3
down vote

favorite
1






1





Why do we consider the sequence "3,3,4,5,2" a bitonic sequence?



In the sequence, "3,3,4,5,2", the sequence is



  • constant for "3,3",

  • increasing for "4,5", and

  • decreasing for "5,2".






share|cite|improve this question














Why do we consider the sequence "3,3,4,5,2" a bitonic sequence?



In the sequence, "3,3,4,5,2", the sequence is



  • constant for "3,3",

  • increasing for "4,5", and

  • decreasing for "5,2".








share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 21 at 19:59









PÃ¥l GD

5,7621838




5,7621838










asked Aug 21 at 13:00









user40628

355




355











  • According to this site: A Bitonic Sequence is a sequence of numbers which is first strictly increasing then after a point strictly decreasing. , your example might be incorrect because "3,3" is not strictly increasing. I am not an expert. Waiting for experts to explain.
    – scaaahu
    Aug 21 at 13:18
















  • According to this site: A Bitonic Sequence is a sequence of numbers which is first strictly increasing then after a point strictly decreasing. , your example might be incorrect because "3,3" is not strictly increasing. I am not an expert. Waiting for experts to explain.
    – scaaahu
    Aug 21 at 13:18















According to this site: A Bitonic Sequence is a sequence of numbers which is first strictly increasing then after a point strictly decreasing. , your example might be incorrect because "3,3" is not strictly increasing. I am not an expert. Waiting for experts to explain.
– scaaahu
Aug 21 at 13:18




According to this site: A Bitonic Sequence is a sequence of numbers which is first strictly increasing then after a point strictly decreasing. , your example might be incorrect because "3,3" is not strictly increasing. I am not an expert. Waiting for experts to explain.
– scaaahu
Aug 21 at 13:18










2 Answers
2






active

oldest

votes

















up vote
7
down vote



accepted










Bitonic sequence is defined for example for parallel sort, as non-decreasing and then non-increasing sequence, to allow duplicates.



See here: Bitonic sequence. Also Wikipedia article about Bitonic sorter shows the same definition which is, afaik, the common one.






share|cite|improve this answer



























    up vote
    11
    down vote













    The words "increasing" and "decreasing" are used in inconsistent ways. Probably, you're assuming one definition while the author of the text that's confusing you is using the other. Say that the sequence $a_1, dots, a_n$ is




    • type A if $a_1leq a_2leq dotsleq a_n$;


    • type B if $a_1<a_2<dots<a_n$.

    The problem is that



    • some people refer to type A sequences as "nondecreasing" and type B sequences as "strictly increasing", which is unambiguous;

    • some people call type A "nondecreasing" and type B "increasing";

    • some people call type A "increasing" and type B "strictly increasing".

    This means that the term "increasing" is ambiguous because some people use it for type A and some people use it for type B. (And ditto for variants of "decreasing".)



    The same problem occurs, though to a much smaller extent; with the terms "nonnegative", "positive" and "strictly positive": the first definitely means $geq 0$, the last definitely means $>0$; the majority of people use "positive" to mean $>0$ but a few use it for $geq 0$. (And ditto for variants of "negative".)






    share|cite|improve this answer


















    • 2




      Agreed (+1) up until the last paragraph. Does positive really ever mean anything other than "strictly positive"?
      – wchargin
      Aug 22 at 0:14






    • 1




      @wchargin codegolf.meta.stackexchange.com/questions/1324/…
      – user92772
      Aug 22 at 0:22










    • @user202729 codegolf.meta.stackexchange.com/questions/1324/… :-) (but thanks for the link)
      – wchargin
      Aug 22 at 8:11






    • 2




      I agree with @wchargin and I would like this site to not to bow to France's bad usage. I strongly advise against saying that the same problem occurs with the terms "positive" and "negative", especially when we are in a site whose name contains "computer science". At the very least, could you add a word or two to discourage the ambiguous usage of positive thats include 0 and the usage of negative thats include 0?
      – Apass.Jack
      Aug 22 at 8:23











    • @Apass.Jack I'm not bowing to anything; I'm noting usage.
      – David Richerby
      Aug 22 at 8:55










    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f96459%2fwhy-is-the-sequence-3-3-4-5-2-considered-a-bitonic-sequence%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    7
    down vote



    accepted










    Bitonic sequence is defined for example for parallel sort, as non-decreasing and then non-increasing sequence, to allow duplicates.



    See here: Bitonic sequence. Also Wikipedia article about Bitonic sorter shows the same definition which is, afaik, the common one.






    share|cite|improve this answer
























      up vote
      7
      down vote



      accepted










      Bitonic sequence is defined for example for parallel sort, as non-decreasing and then non-increasing sequence, to allow duplicates.



      See here: Bitonic sequence. Also Wikipedia article about Bitonic sorter shows the same definition which is, afaik, the common one.






      share|cite|improve this answer






















        up vote
        7
        down vote



        accepted







        up vote
        7
        down vote



        accepted






        Bitonic sequence is defined for example for parallel sort, as non-decreasing and then non-increasing sequence, to allow duplicates.



        See here: Bitonic sequence. Also Wikipedia article about Bitonic sorter shows the same definition which is, afaik, the common one.






        share|cite|improve this answer












        Bitonic sequence is defined for example for parallel sort, as non-decreasing and then non-increasing sequence, to allow duplicates.



        See here: Bitonic sequence. Also Wikipedia article about Bitonic sorter shows the same definition which is, afaik, the common one.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Aug 21 at 13:54









        Evil

        7,43842144




        7,43842144




















            up vote
            11
            down vote













            The words "increasing" and "decreasing" are used in inconsistent ways. Probably, you're assuming one definition while the author of the text that's confusing you is using the other. Say that the sequence $a_1, dots, a_n$ is




            • type A if $a_1leq a_2leq dotsleq a_n$;


            • type B if $a_1<a_2<dots<a_n$.

            The problem is that



            • some people refer to type A sequences as "nondecreasing" and type B sequences as "strictly increasing", which is unambiguous;

            • some people call type A "nondecreasing" and type B "increasing";

            • some people call type A "increasing" and type B "strictly increasing".

            This means that the term "increasing" is ambiguous because some people use it for type A and some people use it for type B. (And ditto for variants of "decreasing".)



            The same problem occurs, though to a much smaller extent; with the terms "nonnegative", "positive" and "strictly positive": the first definitely means $geq 0$, the last definitely means $>0$; the majority of people use "positive" to mean $>0$ but a few use it for $geq 0$. (And ditto for variants of "negative".)






            share|cite|improve this answer


















            • 2




              Agreed (+1) up until the last paragraph. Does positive really ever mean anything other than "strictly positive"?
              – wchargin
              Aug 22 at 0:14






            • 1




              @wchargin codegolf.meta.stackexchange.com/questions/1324/…
              – user92772
              Aug 22 at 0:22










            • @user202729 codegolf.meta.stackexchange.com/questions/1324/… :-) (but thanks for the link)
              – wchargin
              Aug 22 at 8:11






            • 2




              I agree with @wchargin and I would like this site to not to bow to France's bad usage. I strongly advise against saying that the same problem occurs with the terms "positive" and "negative", especially when we are in a site whose name contains "computer science". At the very least, could you add a word or two to discourage the ambiguous usage of positive thats include 0 and the usage of negative thats include 0?
              – Apass.Jack
              Aug 22 at 8:23











            • @Apass.Jack I'm not bowing to anything; I'm noting usage.
              – David Richerby
              Aug 22 at 8:55














            up vote
            11
            down vote













            The words "increasing" and "decreasing" are used in inconsistent ways. Probably, you're assuming one definition while the author of the text that's confusing you is using the other. Say that the sequence $a_1, dots, a_n$ is




            • type A if $a_1leq a_2leq dotsleq a_n$;


            • type B if $a_1<a_2<dots<a_n$.

            The problem is that



            • some people refer to type A sequences as "nondecreasing" and type B sequences as "strictly increasing", which is unambiguous;

            • some people call type A "nondecreasing" and type B "increasing";

            • some people call type A "increasing" and type B "strictly increasing".

            This means that the term "increasing" is ambiguous because some people use it for type A and some people use it for type B. (And ditto for variants of "decreasing".)



            The same problem occurs, though to a much smaller extent; with the terms "nonnegative", "positive" and "strictly positive": the first definitely means $geq 0$, the last definitely means $>0$; the majority of people use "positive" to mean $>0$ but a few use it for $geq 0$. (And ditto for variants of "negative".)






            share|cite|improve this answer


















            • 2




              Agreed (+1) up until the last paragraph. Does positive really ever mean anything other than "strictly positive"?
              – wchargin
              Aug 22 at 0:14






            • 1




              @wchargin codegolf.meta.stackexchange.com/questions/1324/…
              – user92772
              Aug 22 at 0:22










            • @user202729 codegolf.meta.stackexchange.com/questions/1324/… :-) (but thanks for the link)
              – wchargin
              Aug 22 at 8:11






            • 2




              I agree with @wchargin and I would like this site to not to bow to France's bad usage. I strongly advise against saying that the same problem occurs with the terms "positive" and "negative", especially when we are in a site whose name contains "computer science". At the very least, could you add a word or two to discourage the ambiguous usage of positive thats include 0 and the usage of negative thats include 0?
              – Apass.Jack
              Aug 22 at 8:23











            • @Apass.Jack I'm not bowing to anything; I'm noting usage.
              – David Richerby
              Aug 22 at 8:55












            up vote
            11
            down vote










            up vote
            11
            down vote









            The words "increasing" and "decreasing" are used in inconsistent ways. Probably, you're assuming one definition while the author of the text that's confusing you is using the other. Say that the sequence $a_1, dots, a_n$ is




            • type A if $a_1leq a_2leq dotsleq a_n$;


            • type B if $a_1<a_2<dots<a_n$.

            The problem is that



            • some people refer to type A sequences as "nondecreasing" and type B sequences as "strictly increasing", which is unambiguous;

            • some people call type A "nondecreasing" and type B "increasing";

            • some people call type A "increasing" and type B "strictly increasing".

            This means that the term "increasing" is ambiguous because some people use it for type A and some people use it for type B. (And ditto for variants of "decreasing".)



            The same problem occurs, though to a much smaller extent; with the terms "nonnegative", "positive" and "strictly positive": the first definitely means $geq 0$, the last definitely means $>0$; the majority of people use "positive" to mean $>0$ but a few use it for $geq 0$. (And ditto for variants of "negative".)






            share|cite|improve this answer














            The words "increasing" and "decreasing" are used in inconsistent ways. Probably, you're assuming one definition while the author of the text that's confusing you is using the other. Say that the sequence $a_1, dots, a_n$ is




            • type A if $a_1leq a_2leq dotsleq a_n$;


            • type B if $a_1<a_2<dots<a_n$.

            The problem is that



            • some people refer to type A sequences as "nondecreasing" and type B sequences as "strictly increasing", which is unambiguous;

            • some people call type A "nondecreasing" and type B "increasing";

            • some people call type A "increasing" and type B "strictly increasing".

            This means that the term "increasing" is ambiguous because some people use it for type A and some people use it for type B. (And ditto for variants of "decreasing".)



            The same problem occurs, though to a much smaller extent; with the terms "nonnegative", "positive" and "strictly positive": the first definitely means $geq 0$, the last definitely means $>0$; the majority of people use "positive" to mean $>0$ but a few use it for $geq 0$. (And ditto for variants of "negative".)







            share|cite|improve this answer














            share|cite|improve this answer



            share|cite|improve this answer








            edited Aug 22 at 9:25

























            answered Aug 21 at 14:59









            David Richerby

            61.3k1594179




            61.3k1594179







            • 2




              Agreed (+1) up until the last paragraph. Does positive really ever mean anything other than "strictly positive"?
              – wchargin
              Aug 22 at 0:14






            • 1




              @wchargin codegolf.meta.stackexchange.com/questions/1324/…
              – user92772
              Aug 22 at 0:22










            • @user202729 codegolf.meta.stackexchange.com/questions/1324/… :-) (but thanks for the link)
              – wchargin
              Aug 22 at 8:11






            • 2




              I agree with @wchargin and I would like this site to not to bow to France's bad usage. I strongly advise against saying that the same problem occurs with the terms "positive" and "negative", especially when we are in a site whose name contains "computer science". At the very least, could you add a word or two to discourage the ambiguous usage of positive thats include 0 and the usage of negative thats include 0?
              – Apass.Jack
              Aug 22 at 8:23











            • @Apass.Jack I'm not bowing to anything; I'm noting usage.
              – David Richerby
              Aug 22 at 8:55












            • 2




              Agreed (+1) up until the last paragraph. Does positive really ever mean anything other than "strictly positive"?
              – wchargin
              Aug 22 at 0:14






            • 1




              @wchargin codegolf.meta.stackexchange.com/questions/1324/…
              – user92772
              Aug 22 at 0:22










            • @user202729 codegolf.meta.stackexchange.com/questions/1324/… :-) (but thanks for the link)
              – wchargin
              Aug 22 at 8:11






            • 2




              I agree with @wchargin and I would like this site to not to bow to France's bad usage. I strongly advise against saying that the same problem occurs with the terms "positive" and "negative", especially when we are in a site whose name contains "computer science". At the very least, could you add a word or two to discourage the ambiguous usage of positive thats include 0 and the usage of negative thats include 0?
              – Apass.Jack
              Aug 22 at 8:23











            • @Apass.Jack I'm not bowing to anything; I'm noting usage.
              – David Richerby
              Aug 22 at 8:55







            2




            2




            Agreed (+1) up until the last paragraph. Does positive really ever mean anything other than "strictly positive"?
            – wchargin
            Aug 22 at 0:14




            Agreed (+1) up until the last paragraph. Does positive really ever mean anything other than "strictly positive"?
            – wchargin
            Aug 22 at 0:14




            1




            1




            @wchargin codegolf.meta.stackexchange.com/questions/1324/…
            – user92772
            Aug 22 at 0:22




            @wchargin codegolf.meta.stackexchange.com/questions/1324/…
            – user92772
            Aug 22 at 0:22












            @user202729 codegolf.meta.stackexchange.com/questions/1324/… :-) (but thanks for the link)
            – wchargin
            Aug 22 at 8:11




            @user202729 codegolf.meta.stackexchange.com/questions/1324/… :-) (but thanks for the link)
            – wchargin
            Aug 22 at 8:11




            2




            2




            I agree with @wchargin and I would like this site to not to bow to France's bad usage. I strongly advise against saying that the same problem occurs with the terms "positive" and "negative", especially when we are in a site whose name contains "computer science". At the very least, could you add a word or two to discourage the ambiguous usage of positive thats include 0 and the usage of negative thats include 0?
            – Apass.Jack
            Aug 22 at 8:23





            I agree with @wchargin and I would like this site to not to bow to France's bad usage. I strongly advise against saying that the same problem occurs with the terms "positive" and "negative", especially when we are in a site whose name contains "computer science". At the very least, could you add a word or two to discourage the ambiguous usage of positive thats include 0 and the usage of negative thats include 0?
            – Apass.Jack
            Aug 22 at 8:23













            @Apass.Jack I'm not bowing to anything; I'm noting usage.
            – David Richerby
            Aug 22 at 8:55




            @Apass.Jack I'm not bowing to anything; I'm noting usage.
            – David Richerby
            Aug 22 at 8:55

















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f96459%2fwhy-is-the-sequence-3-3-4-5-2-considered-a-bitonic-sequence%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            Confectionery