The egg drop problem where the aim is to minimise the time taken

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











up vote
0
down vote

favorite












In the standard egg drop problem you are in front of a 100-storey building and by dropping eggs from $k$ different floors you plan to find the lowest floor from which you can drop an egg without breaking it. Your task is to find the smallest $k$ that will ensure you are successful. The answer is 14, or if we replace 100 with $n$ it is $ leftlceil sqrt2n - frac12 rightrceil$.



Let us now change the problem so that it takes 1 minute to travel up or down a storey. Nothing else takes any time. You start outside the building. Your task is not to minimise $k$ but to minimise $t$, the time you need to allow, measured in minutes.



A further problem is to find a floor-choosing method that will minimise the mean $t$ required.







share|cite|improve this question
























    up vote
    0
    down vote

    favorite












    In the standard egg drop problem you are in front of a 100-storey building and by dropping eggs from $k$ different floors you plan to find the lowest floor from which you can drop an egg without breaking it. Your task is to find the smallest $k$ that will ensure you are successful. The answer is 14, or if we replace 100 with $n$ it is $ leftlceil sqrt2n - frac12 rightrceil$.



    Let us now change the problem so that it takes 1 minute to travel up or down a storey. Nothing else takes any time. You start outside the building. Your task is not to minimise $k$ but to minimise $t$, the time you need to allow, measured in minutes.



    A further problem is to find a floor-choosing method that will minimise the mean $t$ required.







    share|cite|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      In the standard egg drop problem you are in front of a 100-storey building and by dropping eggs from $k$ different floors you plan to find the lowest floor from which you can drop an egg without breaking it. Your task is to find the smallest $k$ that will ensure you are successful. The answer is 14, or if we replace 100 with $n$ it is $ leftlceil sqrt2n - frac12 rightrceil$.



      Let us now change the problem so that it takes 1 minute to travel up or down a storey. Nothing else takes any time. You start outside the building. Your task is not to minimise $k$ but to minimise $t$, the time you need to allow, measured in minutes.



      A further problem is to find a floor-choosing method that will minimise the mean $t$ required.







      share|cite|improve this question












      In the standard egg drop problem you are in front of a 100-storey building and by dropping eggs from $k$ different floors you plan to find the lowest floor from which you can drop an egg without breaking it. Your task is to find the smallest $k$ that will ensure you are successful. The answer is 14, or if we replace 100 with $n$ it is $ leftlceil sqrt2n - frac12 rightrceil$.



      Let us now change the problem so that it takes 1 minute to travel up or down a storey. Nothing else takes any time. You start outside the building. Your task is not to minimise $k$ but to minimise $t$, the time you need to allow, measured in minutes.



      A further problem is to find a floor-choosing method that will minimise the mean $t$ required.









      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Aug 13 at 10:03









      ruffle

      1033




      1033




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Then there is no faster algorithm than just dropping an egg from each floor as you ascend; if you wanted to start from floor $x$, it would take $x$ minutes to reach that floor to begin, in which time you could have tested every floor up to $x$ anyway.



          Thus: drop an egg from each floor. The worst case time would be $n$, which would always require at least $n$ minutes to find out simply because you must travel to that floor to distinguish between a solution of $n$ and $n-1$.






          share|cite|improve this answer




















          • Thanks. So this wasn't such a good question after all. I will try to craft another where one has to minimise some function of the amount of walking about inside the building and the number of eggs.
            – ruffle
            Aug 15 at 13:30










          • You could modify it to introduce some nonlinearity or to model the problem better. The original problem addresses the issue of finding which element of an array is the first to fail a predicate via the fewest evaluations of that predicate. The assumption is that values are cheap to access, and that the predicate is expensive to evaluate. Your question changed that to address the problem where the cost is linear in the traversal distance. An alternative (and gnarlier) version might be if evaluations were to be done in batches of $m$, and each batch had a constant cost; i.e. cache friendliness
            – Phil H
            Aug 16 at 9:09











          • Unfortunately I don't understand most of that. What if dropping an egg and learning whether or not it has broken takes time? Perhaps an increasing amount as time goes on? So 1 minute for the first egg, 2 for the second, etc.?
            – ruffle
            Aug 16 at 14:26










          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: "69"
          ;
          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: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2881206%2fthe-egg-drop-problem-where-the-aim-is-to-minimise-the-time-taken%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          Then there is no faster algorithm than just dropping an egg from each floor as you ascend; if you wanted to start from floor $x$, it would take $x$ minutes to reach that floor to begin, in which time you could have tested every floor up to $x$ anyway.



          Thus: drop an egg from each floor. The worst case time would be $n$, which would always require at least $n$ minutes to find out simply because you must travel to that floor to distinguish between a solution of $n$ and $n-1$.






          share|cite|improve this answer




















          • Thanks. So this wasn't such a good question after all. I will try to craft another where one has to minimise some function of the amount of walking about inside the building and the number of eggs.
            – ruffle
            Aug 15 at 13:30










          • You could modify it to introduce some nonlinearity or to model the problem better. The original problem addresses the issue of finding which element of an array is the first to fail a predicate via the fewest evaluations of that predicate. The assumption is that values are cheap to access, and that the predicate is expensive to evaluate. Your question changed that to address the problem where the cost is linear in the traversal distance. An alternative (and gnarlier) version might be if evaluations were to be done in batches of $m$, and each batch had a constant cost; i.e. cache friendliness
            – Phil H
            Aug 16 at 9:09











          • Unfortunately I don't understand most of that. What if dropping an egg and learning whether or not it has broken takes time? Perhaps an increasing amount as time goes on? So 1 minute for the first egg, 2 for the second, etc.?
            – ruffle
            Aug 16 at 14:26














          up vote
          1
          down vote



          accepted










          Then there is no faster algorithm than just dropping an egg from each floor as you ascend; if you wanted to start from floor $x$, it would take $x$ minutes to reach that floor to begin, in which time you could have tested every floor up to $x$ anyway.



          Thus: drop an egg from each floor. The worst case time would be $n$, which would always require at least $n$ minutes to find out simply because you must travel to that floor to distinguish between a solution of $n$ and $n-1$.






          share|cite|improve this answer




















          • Thanks. So this wasn't such a good question after all. I will try to craft another where one has to minimise some function of the amount of walking about inside the building and the number of eggs.
            – ruffle
            Aug 15 at 13:30










          • You could modify it to introduce some nonlinearity or to model the problem better. The original problem addresses the issue of finding which element of an array is the first to fail a predicate via the fewest evaluations of that predicate. The assumption is that values are cheap to access, and that the predicate is expensive to evaluate. Your question changed that to address the problem where the cost is linear in the traversal distance. An alternative (and gnarlier) version might be if evaluations were to be done in batches of $m$, and each batch had a constant cost; i.e. cache friendliness
            – Phil H
            Aug 16 at 9:09











          • Unfortunately I don't understand most of that. What if dropping an egg and learning whether or not it has broken takes time? Perhaps an increasing amount as time goes on? So 1 minute for the first egg, 2 for the second, etc.?
            – ruffle
            Aug 16 at 14:26












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          Then there is no faster algorithm than just dropping an egg from each floor as you ascend; if you wanted to start from floor $x$, it would take $x$ minutes to reach that floor to begin, in which time you could have tested every floor up to $x$ anyway.



          Thus: drop an egg from each floor. The worst case time would be $n$, which would always require at least $n$ minutes to find out simply because you must travel to that floor to distinguish between a solution of $n$ and $n-1$.






          share|cite|improve this answer












          Then there is no faster algorithm than just dropping an egg from each floor as you ascend; if you wanted to start from floor $x$, it would take $x$ minutes to reach that floor to begin, in which time you could have tested every floor up to $x$ anyway.



          Thus: drop an egg from each floor. The worst case time would be $n$, which would always require at least $n$ minutes to find out simply because you must travel to that floor to distinguish between a solution of $n$ and $n-1$.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Aug 13 at 10:08









          Phil H

          9531513




          9531513











          • Thanks. So this wasn't such a good question after all. I will try to craft another where one has to minimise some function of the amount of walking about inside the building and the number of eggs.
            – ruffle
            Aug 15 at 13:30










          • You could modify it to introduce some nonlinearity or to model the problem better. The original problem addresses the issue of finding which element of an array is the first to fail a predicate via the fewest evaluations of that predicate. The assumption is that values are cheap to access, and that the predicate is expensive to evaluate. Your question changed that to address the problem where the cost is linear in the traversal distance. An alternative (and gnarlier) version might be if evaluations were to be done in batches of $m$, and each batch had a constant cost; i.e. cache friendliness
            – Phil H
            Aug 16 at 9:09











          • Unfortunately I don't understand most of that. What if dropping an egg and learning whether or not it has broken takes time? Perhaps an increasing amount as time goes on? So 1 minute for the first egg, 2 for the second, etc.?
            – ruffle
            Aug 16 at 14:26
















          • Thanks. So this wasn't such a good question after all. I will try to craft another where one has to minimise some function of the amount of walking about inside the building and the number of eggs.
            – ruffle
            Aug 15 at 13:30










          • You could modify it to introduce some nonlinearity or to model the problem better. The original problem addresses the issue of finding which element of an array is the first to fail a predicate via the fewest evaluations of that predicate. The assumption is that values are cheap to access, and that the predicate is expensive to evaluate. Your question changed that to address the problem where the cost is linear in the traversal distance. An alternative (and gnarlier) version might be if evaluations were to be done in batches of $m$, and each batch had a constant cost; i.e. cache friendliness
            – Phil H
            Aug 16 at 9:09











          • Unfortunately I don't understand most of that. What if dropping an egg and learning whether or not it has broken takes time? Perhaps an increasing amount as time goes on? So 1 minute for the first egg, 2 for the second, etc.?
            – ruffle
            Aug 16 at 14:26















          Thanks. So this wasn't such a good question after all. I will try to craft another where one has to minimise some function of the amount of walking about inside the building and the number of eggs.
          – ruffle
          Aug 15 at 13:30




          Thanks. So this wasn't such a good question after all. I will try to craft another where one has to minimise some function of the amount of walking about inside the building and the number of eggs.
          – ruffle
          Aug 15 at 13:30












          You could modify it to introduce some nonlinearity or to model the problem better. The original problem addresses the issue of finding which element of an array is the first to fail a predicate via the fewest evaluations of that predicate. The assumption is that values are cheap to access, and that the predicate is expensive to evaluate. Your question changed that to address the problem where the cost is linear in the traversal distance. An alternative (and gnarlier) version might be if evaluations were to be done in batches of $m$, and each batch had a constant cost; i.e. cache friendliness
          – Phil H
          Aug 16 at 9:09





          You could modify it to introduce some nonlinearity or to model the problem better. The original problem addresses the issue of finding which element of an array is the first to fail a predicate via the fewest evaluations of that predicate. The assumption is that values are cheap to access, and that the predicate is expensive to evaluate. Your question changed that to address the problem where the cost is linear in the traversal distance. An alternative (and gnarlier) version might be if evaluations were to be done in batches of $m$, and each batch had a constant cost; i.e. cache friendliness
          – Phil H
          Aug 16 at 9:09













          Unfortunately I don't understand most of that. What if dropping an egg and learning whether or not it has broken takes time? Perhaps an increasing amount as time goes on? So 1 minute for the first egg, 2 for the second, etc.?
          – ruffle
          Aug 16 at 14:26




          Unfortunately I don't understand most of that. What if dropping an egg and learning whether or not it has broken takes time? Perhaps an increasing amount as time goes on? So 1 minute for the first egg, 2 for the second, etc.?
          – ruffle
          Aug 16 at 14:26












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2881206%2fthe-egg-drop-problem-where-the-aim-is-to-minimise-the-time-taken%23new-answer', 'question_page');

          );

          Post as a guest













































































          這個網誌中的熱門文章

          How to combine Bézier curves to a surface?

          Mutual Information Always Non-negative

          Why am i infinitely getting the same tweet with the Twitter Search API?