Find a stone which is not the lightest oneWhich one is the lightest marble?Using a balance scale the minimum number of times, find the median weight personA balance with three pans, detecting the lightest pan (find the one lighter ball)A balance with three pans, detecting the lightest pan (find the one heavier ball)A balance with three pans, detecting the lightest pan (find the two heavier balls)A balance with three pans, detecting the lightest pan (find the one lighter/heavier ball, for a given number of balls)Find 2 heavy coins among 27 with a 3-pan balanceMinimum number of tries to find the balance!Lots of Gold Stacks and a Balance ScaleFive balls weighing

Is 'contemporary' ambiguous and if so is there a better word?

Change in "can't be countered" wording

Is Benjen dead?

Agena docking and RCS Brakes in First Man

Will 700 more planes a day fly because of the Heathrow expansion?

Why am I receiving the identity insert error even after explicitly setting IDENTITY_INSERT ON and using a column list?

When an imagined world resembles or has similarities with a famous world

Where to draw the line between quantum mechanics theory and its interpretation(s)?

Why does sound not move through a wall?

How do I calculate how many of an item I'll have in this inventory system?

Using Im[] and Re[] Correctly

To kill a cuckoo

Find magical solution to magical equation

What was Bran's plan to kill the Night King?

Feasibility of lava beings?

Are pressure-treated posts that have been submerged for a few days ruined?

Can you use "едать" and "игрывать" in the present and future tenses?

Why is my arithmetic with a long long int behaving this way?

Out of scope work duties and resignation

SOQL query WHERE filter by specific months

Is there a word for food that's gone 'bad', but is still edible?

Hostile Divisor Numbers

History of the kernel of a homomorphism?

What do I do if my advisor made a mistake?



Find a stone which is not the lightest one


Which one is the lightest marble?Using a balance scale the minimum number of times, find the median weight personA balance with three pans, detecting the lightest pan (find the one lighter ball)A balance with three pans, detecting the lightest pan (find the one heavier ball)A balance with three pans, detecting the lightest pan (find the two heavier balls)A balance with three pans, detecting the lightest pan (find the one lighter/heavier ball, for a given number of balls)Find 2 heavy coins among 27 with a 3-pan balanceMinimum number of tries to find the balance!Lots of Gold Stacks and a Balance ScaleFive balls weighing













10












$begingroup$


I've gotten this riddle and have been struggling with solving it:



Suppose you have 20 stones which have different weights [0 ... n] . You have no way of measuring the weight of any stone individually, instead you can only measure them by putting 10 on each side of a balance. After doing this you see which "group" of stones is heavier. You can do this only 10 times in total. You can also switch the stones from either side to the other as much as you want between the measurements.



Your task is to find a stone for which you can be certain is not the lightest of them all.



All the stones are marked, so you always know which is which. Their appearance or anything similar does not help you with to determine their weight, the only way you can do it is by putting it on the balance.










share|improve this question











$endgroup$







  • 5




    $begingroup$
    Please give credit to the author of the puzzle.
    $endgroup$
    – Gilles
    Apr 25 at 21:06










  • $begingroup$
    I have a new and improved solution!
    $endgroup$
    – Brandon_J
    Apr 26 at 0:35















10












$begingroup$


I've gotten this riddle and have been struggling with solving it:



Suppose you have 20 stones which have different weights [0 ... n] . You have no way of measuring the weight of any stone individually, instead you can only measure them by putting 10 on each side of a balance. After doing this you see which "group" of stones is heavier. You can do this only 10 times in total. You can also switch the stones from either side to the other as much as you want between the measurements.



Your task is to find a stone for which you can be certain is not the lightest of them all.



All the stones are marked, so you always know which is which. Their appearance or anything similar does not help you with to determine their weight, the only way you can do it is by putting it on the balance.










share|improve this question











$endgroup$







  • 5




    $begingroup$
    Please give credit to the author of the puzzle.
    $endgroup$
    – Gilles
    Apr 25 at 21:06










  • $begingroup$
    I have a new and improved solution!
    $endgroup$
    – Brandon_J
    Apr 26 at 0:35













10












10








10





$begingroup$


I've gotten this riddle and have been struggling with solving it:



Suppose you have 20 stones which have different weights [0 ... n] . You have no way of measuring the weight of any stone individually, instead you can only measure them by putting 10 on each side of a balance. After doing this you see which "group" of stones is heavier. You can do this only 10 times in total. You can also switch the stones from either side to the other as much as you want between the measurements.



Your task is to find a stone for which you can be certain is not the lightest of them all.



All the stones are marked, so you always know which is which. Their appearance or anything similar does not help you with to determine their weight, the only way you can do it is by putting it on the balance.










share|improve this question











$endgroup$




I've gotten this riddle and have been struggling with solving it:



Suppose you have 20 stones which have different weights [0 ... n] . You have no way of measuring the weight of any stone individually, instead you can only measure them by putting 10 on each side of a balance. After doing this you see which "group" of stones is heavier. You can do this only 10 times in total. You can also switch the stones from either side to the other as much as you want between the measurements.



Your task is to find a stone for which you can be certain is not the lightest of them all.



All the stones are marked, so you always know which is which. Their appearance or anything similar does not help you with to determine their weight, the only way you can do it is by putting it on the balance.







weighing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 25 at 21:06









Gilles

3,43531837




3,43531837










asked Apr 25 at 12:46









podloga123podloga123

512




512







  • 5




    $begingroup$
    Please give credit to the author of the puzzle.
    $endgroup$
    – Gilles
    Apr 25 at 21:06










  • $begingroup$
    I have a new and improved solution!
    $endgroup$
    – Brandon_J
    Apr 26 at 0:35












  • 5




    $begingroup$
    Please give credit to the author of the puzzle.
    $endgroup$
    – Gilles
    Apr 25 at 21:06










  • $begingroup$
    I have a new and improved solution!
    $endgroup$
    – Brandon_J
    Apr 26 at 0:35







5




5




$begingroup$
Please give credit to the author of the puzzle.
$endgroup$
– Gilles
Apr 25 at 21:06




$begingroup$
Please give credit to the author of the puzzle.
$endgroup$
– Gilles
Apr 25 at 21:06












$begingroup$
I have a new and improved solution!
$endgroup$
– Brandon_J
Apr 26 at 0:35




$begingroup$
I have a new and improved solution!
$endgroup$
– Brandon_J
Apr 26 at 0:35










3 Answers
3






active

oldest

votes


















11












$begingroup$


Measure 10 and 10.

In each subsequent weighing you change one of the originals of one side for one of the originals of the other side.

At some point, the balance turns around.

The stone that you have put on the side that has come down is not the lightest, because the other is lighter than that.

If at the tenth weighing the sides have not been turned around, the only original stone left on the side that is below is not the lightest.







share|improve this answer









$endgroup$












  • $begingroup$
    You didn't explicitly mention this, but it is impossible for the two scales to ever be equal with the given set of stones. But this solution would still work even if the weights were such that the scales could be balanced, provided you know that there is at least one stone that has a unique weight.
    $endgroup$
    – Jaap Scherphuis
    Apr 25 at 13:51










  • $begingroup$
    Well, never mind my previous comment about being late; I found a better solution.
    $endgroup$
    – Brandon_J
    Apr 26 at 0:41


















8












$begingroup$

Here's a solution that needs at most




5




weighings.




For convenience, I arbitrarily number each stone on side "A" (which I declare to be the lighter side for convenience) of the balance in the first weighing to be stones 1, 3, 5...19 and each stone on the heaver side B 2, 4, 6...20. The original weighing of all of the stones is taken to count toward the weighing total, but will be named "step zero" for convenience, because it's the only possible thing to do at the beginning.




Note: if at any point the scale balances, a not-lightest stone can be found in one more weighing by switching any two stones and seeing which way the balance tips.



Step one:




Swap stones 1, 3, 5, and 7 with stones 2, 4, 6, and 8. If the balance tips, you would skip to step 3, but that wouldn't be worst-case scenario (as you will see), so we won't skip ahead. We assume the balance does not tip. Total weighings: 2




Step two:




Swap stones 9, 11, 13, and 15 with stones 10, 12, 14, and 16. If the balance tips doesn't tip, you would skip to step 4, but that's not the worst case, so we will assume that the balance does tip. Total weighings: 3




Step three:




Swap four of the 8 stones that you have just swapped. Assuming that we are still following the worst case, swap stones 9 and 11 with 10 and 12. If the scale does not tip back to side B, then you know that switching 13 and 15 with 14 and 16 will. Total weighings: 4




Step four:




Regardless of which route we took to get here, we currently have four stones which we know either have tipped the scale when swapped, or would tip the scale when swapped. Swap two of them across the balance. If the scale doesn't change state when these are swapped, then the unswapped stone on the side that the scale was expected to tip away from is definitely not the lightest stone. If the scale does change state, the swapped stone that ended up on the side that the scale just tipped toward is definitely _not the lightest stone. Total weighings: 5




And there's your answer!






share|improve this answer











$endgroup$












  • $begingroup$
    What if neither side is heavier?
    $endgroup$
    – noedne
    Apr 26 at 0:46










  • $begingroup$
    @noedne see JaapScherpius's comment above. Also, if neither side is heavier, a not-lightest stone could be identified in two weighings, one swap.
    $endgroup$
    – Brandon_J
    Apr 26 at 0:51











  • $begingroup$
    @noedne here's the better solution.
    $endgroup$
    – Brandon_J
    Apr 26 at 1:31



















0












$begingroup$

An optimization on Hermes's solution:




You have 2n stones numbered 0 to 2n-1.


Weigh stones 0..n-1 against stones n..2n-1.

If it balances, just swap 2 stones, the scale must tip to one side. The stone you added to the heavier side is not the lightest.

Else, let's say it tips left. Stones 0..(n-1) are left and the rest are right.


Consider what happens if you weigh stones k..(k+n-1) against the rest.
For k=0 the scale tips left, for k=n it tips right. At some point there is a value 'a' such that the scale tips left for k=a, but balances or tips right for k=a+1.


To find 'a' do a binary search: set a=0, b=n. Then choose k=(a+b)/2 rounded down. If the scale tips left, set a=k and restart, else set b=k and restart. When a+1=b then you are done.


From k=a to k=a+1, stone (a) is moved right and stone (a+n) is moved left. If it tips the scale, stone (a) is heavier than stone (a+n). You can pick stone (a) as guaranteed not the lightest.


This method requires at most 5 weighings for 20 stones.







share|improve this answer









$endgroup$













    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "559"
    ;
    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
    ,
    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%2fpuzzling.stackexchange.com%2fquestions%2f83188%2ffind-a-stone-which-is-not-the-lightest-one%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    11












    $begingroup$


    Measure 10 and 10.

    In each subsequent weighing you change one of the originals of one side for one of the originals of the other side.

    At some point, the balance turns around.

    The stone that you have put on the side that has come down is not the lightest, because the other is lighter than that.

    If at the tenth weighing the sides have not been turned around, the only original stone left on the side that is below is not the lightest.







    share|improve this answer









    $endgroup$












    • $begingroup$
      You didn't explicitly mention this, but it is impossible for the two scales to ever be equal with the given set of stones. But this solution would still work even if the weights were such that the scales could be balanced, provided you know that there is at least one stone that has a unique weight.
      $endgroup$
      – Jaap Scherphuis
      Apr 25 at 13:51










    • $begingroup$
      Well, never mind my previous comment about being late; I found a better solution.
      $endgroup$
      – Brandon_J
      Apr 26 at 0:41















    11












    $begingroup$


    Measure 10 and 10.

    In each subsequent weighing you change one of the originals of one side for one of the originals of the other side.

    At some point, the balance turns around.

    The stone that you have put on the side that has come down is not the lightest, because the other is lighter than that.

    If at the tenth weighing the sides have not been turned around, the only original stone left on the side that is below is not the lightest.







    share|improve this answer









    $endgroup$












    • $begingroup$
      You didn't explicitly mention this, but it is impossible for the two scales to ever be equal with the given set of stones. But this solution would still work even if the weights were such that the scales could be balanced, provided you know that there is at least one stone that has a unique weight.
      $endgroup$
      – Jaap Scherphuis
      Apr 25 at 13:51










    • $begingroup$
      Well, never mind my previous comment about being late; I found a better solution.
      $endgroup$
      – Brandon_J
      Apr 26 at 0:41













    11












    11








    11





    $begingroup$


    Measure 10 and 10.

    In each subsequent weighing you change one of the originals of one side for one of the originals of the other side.

    At some point, the balance turns around.

    The stone that you have put on the side that has come down is not the lightest, because the other is lighter than that.

    If at the tenth weighing the sides have not been turned around, the only original stone left on the side that is below is not the lightest.







    share|improve this answer









    $endgroup$




    Measure 10 and 10.

    In each subsequent weighing you change one of the originals of one side for one of the originals of the other side.

    At some point, the balance turns around.

    The stone that you have put on the side that has come down is not the lightest, because the other is lighter than that.

    If at the tenth weighing the sides have not been turned around, the only original stone left on the side that is below is not the lightest.








    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 25 at 13:20









    HermesHermes

    5459




    5459











    • $begingroup$
      You didn't explicitly mention this, but it is impossible for the two scales to ever be equal with the given set of stones. But this solution would still work even if the weights were such that the scales could be balanced, provided you know that there is at least one stone that has a unique weight.
      $endgroup$
      – Jaap Scherphuis
      Apr 25 at 13:51










    • $begingroup$
      Well, never mind my previous comment about being late; I found a better solution.
      $endgroup$
      – Brandon_J
      Apr 26 at 0:41
















    • $begingroup$
      You didn't explicitly mention this, but it is impossible for the two scales to ever be equal with the given set of stones. But this solution would still work even if the weights were such that the scales could be balanced, provided you know that there is at least one stone that has a unique weight.
      $endgroup$
      – Jaap Scherphuis
      Apr 25 at 13:51










    • $begingroup$
      Well, never mind my previous comment about being late; I found a better solution.
      $endgroup$
      – Brandon_J
      Apr 26 at 0:41















    $begingroup$
    You didn't explicitly mention this, but it is impossible for the two scales to ever be equal with the given set of stones. But this solution would still work even if the weights were such that the scales could be balanced, provided you know that there is at least one stone that has a unique weight.
    $endgroup$
    – Jaap Scherphuis
    Apr 25 at 13:51




    $begingroup$
    You didn't explicitly mention this, but it is impossible for the two scales to ever be equal with the given set of stones. But this solution would still work even if the weights were such that the scales could be balanced, provided you know that there is at least one stone that has a unique weight.
    $endgroup$
    – Jaap Scherphuis
    Apr 25 at 13:51












    $begingroup$
    Well, never mind my previous comment about being late; I found a better solution.
    $endgroup$
    – Brandon_J
    Apr 26 at 0:41




    $begingroup$
    Well, never mind my previous comment about being late; I found a better solution.
    $endgroup$
    – Brandon_J
    Apr 26 at 0:41











    8












    $begingroup$

    Here's a solution that needs at most




    5




    weighings.




    For convenience, I arbitrarily number each stone on side "A" (which I declare to be the lighter side for convenience) of the balance in the first weighing to be stones 1, 3, 5...19 and each stone on the heaver side B 2, 4, 6...20. The original weighing of all of the stones is taken to count toward the weighing total, but will be named "step zero" for convenience, because it's the only possible thing to do at the beginning.




    Note: if at any point the scale balances, a not-lightest stone can be found in one more weighing by switching any two stones and seeing which way the balance tips.



    Step one:




    Swap stones 1, 3, 5, and 7 with stones 2, 4, 6, and 8. If the balance tips, you would skip to step 3, but that wouldn't be worst-case scenario (as you will see), so we won't skip ahead. We assume the balance does not tip. Total weighings: 2




    Step two:




    Swap stones 9, 11, 13, and 15 with stones 10, 12, 14, and 16. If the balance tips doesn't tip, you would skip to step 4, but that's not the worst case, so we will assume that the balance does tip. Total weighings: 3




    Step three:




    Swap four of the 8 stones that you have just swapped. Assuming that we are still following the worst case, swap stones 9 and 11 with 10 and 12. If the scale does not tip back to side B, then you know that switching 13 and 15 with 14 and 16 will. Total weighings: 4




    Step four:




    Regardless of which route we took to get here, we currently have four stones which we know either have tipped the scale when swapped, or would tip the scale when swapped. Swap two of them across the balance. If the scale doesn't change state when these are swapped, then the unswapped stone on the side that the scale was expected to tip away from is definitely not the lightest stone. If the scale does change state, the swapped stone that ended up on the side that the scale just tipped toward is definitely _not the lightest stone. Total weighings: 5




    And there's your answer!






    share|improve this answer











    $endgroup$












    • $begingroup$
      What if neither side is heavier?
      $endgroup$
      – noedne
      Apr 26 at 0:46










    • $begingroup$
      @noedne see JaapScherpius's comment above. Also, if neither side is heavier, a not-lightest stone could be identified in two weighings, one swap.
      $endgroup$
      – Brandon_J
      Apr 26 at 0:51











    • $begingroup$
      @noedne here's the better solution.
      $endgroup$
      – Brandon_J
      Apr 26 at 1:31
















    8












    $begingroup$

    Here's a solution that needs at most




    5




    weighings.




    For convenience, I arbitrarily number each stone on side "A" (which I declare to be the lighter side for convenience) of the balance in the first weighing to be stones 1, 3, 5...19 and each stone on the heaver side B 2, 4, 6...20. The original weighing of all of the stones is taken to count toward the weighing total, but will be named "step zero" for convenience, because it's the only possible thing to do at the beginning.




    Note: if at any point the scale balances, a not-lightest stone can be found in one more weighing by switching any two stones and seeing which way the balance tips.



    Step one:




    Swap stones 1, 3, 5, and 7 with stones 2, 4, 6, and 8. If the balance tips, you would skip to step 3, but that wouldn't be worst-case scenario (as you will see), so we won't skip ahead. We assume the balance does not tip. Total weighings: 2




    Step two:




    Swap stones 9, 11, 13, and 15 with stones 10, 12, 14, and 16. If the balance tips doesn't tip, you would skip to step 4, but that's not the worst case, so we will assume that the balance does tip. Total weighings: 3




    Step three:




    Swap four of the 8 stones that you have just swapped. Assuming that we are still following the worst case, swap stones 9 and 11 with 10 and 12. If the scale does not tip back to side B, then you know that switching 13 and 15 with 14 and 16 will. Total weighings: 4




    Step four:




    Regardless of which route we took to get here, we currently have four stones which we know either have tipped the scale when swapped, or would tip the scale when swapped. Swap two of them across the balance. If the scale doesn't change state when these are swapped, then the unswapped stone on the side that the scale was expected to tip away from is definitely not the lightest stone. If the scale does change state, the swapped stone that ended up on the side that the scale just tipped toward is definitely _not the lightest stone. Total weighings: 5




    And there's your answer!






    share|improve this answer











    $endgroup$












    • $begingroup$
      What if neither side is heavier?
      $endgroup$
      – noedne
      Apr 26 at 0:46










    • $begingroup$
      @noedne see JaapScherpius's comment above. Also, if neither side is heavier, a not-lightest stone could be identified in two weighings, one swap.
      $endgroup$
      – Brandon_J
      Apr 26 at 0:51











    • $begingroup$
      @noedne here's the better solution.
      $endgroup$
      – Brandon_J
      Apr 26 at 1:31














    8












    8








    8





    $begingroup$

    Here's a solution that needs at most




    5




    weighings.




    For convenience, I arbitrarily number each stone on side "A" (which I declare to be the lighter side for convenience) of the balance in the first weighing to be stones 1, 3, 5...19 and each stone on the heaver side B 2, 4, 6...20. The original weighing of all of the stones is taken to count toward the weighing total, but will be named "step zero" for convenience, because it's the only possible thing to do at the beginning.




    Note: if at any point the scale balances, a not-lightest stone can be found in one more weighing by switching any two stones and seeing which way the balance tips.



    Step one:




    Swap stones 1, 3, 5, and 7 with stones 2, 4, 6, and 8. If the balance tips, you would skip to step 3, but that wouldn't be worst-case scenario (as you will see), so we won't skip ahead. We assume the balance does not tip. Total weighings: 2




    Step two:




    Swap stones 9, 11, 13, and 15 with stones 10, 12, 14, and 16. If the balance tips doesn't tip, you would skip to step 4, but that's not the worst case, so we will assume that the balance does tip. Total weighings: 3




    Step three:




    Swap four of the 8 stones that you have just swapped. Assuming that we are still following the worst case, swap stones 9 and 11 with 10 and 12. If the scale does not tip back to side B, then you know that switching 13 and 15 with 14 and 16 will. Total weighings: 4




    Step four:




    Regardless of which route we took to get here, we currently have four stones which we know either have tipped the scale when swapped, or would tip the scale when swapped. Swap two of them across the balance. If the scale doesn't change state when these are swapped, then the unswapped stone on the side that the scale was expected to tip away from is definitely not the lightest stone. If the scale does change state, the swapped stone that ended up on the side that the scale just tipped toward is definitely _not the lightest stone. Total weighings: 5




    And there's your answer!






    share|improve this answer











    $endgroup$



    Here's a solution that needs at most




    5




    weighings.




    For convenience, I arbitrarily number each stone on side "A" (which I declare to be the lighter side for convenience) of the balance in the first weighing to be stones 1, 3, 5...19 and each stone on the heaver side B 2, 4, 6...20. The original weighing of all of the stones is taken to count toward the weighing total, but will be named "step zero" for convenience, because it's the only possible thing to do at the beginning.




    Note: if at any point the scale balances, a not-lightest stone can be found in one more weighing by switching any two stones and seeing which way the balance tips.



    Step one:




    Swap stones 1, 3, 5, and 7 with stones 2, 4, 6, and 8. If the balance tips, you would skip to step 3, but that wouldn't be worst-case scenario (as you will see), so we won't skip ahead. We assume the balance does not tip. Total weighings: 2




    Step two:




    Swap stones 9, 11, 13, and 15 with stones 10, 12, 14, and 16. If the balance tips doesn't tip, you would skip to step 4, but that's not the worst case, so we will assume that the balance does tip. Total weighings: 3




    Step three:




    Swap four of the 8 stones that you have just swapped. Assuming that we are still following the worst case, swap stones 9 and 11 with 10 and 12. If the scale does not tip back to side B, then you know that switching 13 and 15 with 14 and 16 will. Total weighings: 4




    Step four:




    Regardless of which route we took to get here, we currently have four stones which we know either have tipped the scale when swapped, or would tip the scale when swapped. Swap two of them across the balance. If the scale doesn't change state when these are swapped, then the unswapped stone on the side that the scale was expected to tip away from is definitely not the lightest stone. If the scale does change state, the swapped stone that ended up on the side that the scale just tipped toward is definitely _not the lightest stone. Total weighings: 5




    And there's your answer!







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 28 at 1:20

























    answered Apr 25 at 13:23









    Brandon_JBrandon_J

    4,118449




    4,118449











    • $begingroup$
      What if neither side is heavier?
      $endgroup$
      – noedne
      Apr 26 at 0:46










    • $begingroup$
      @noedne see JaapScherpius's comment above. Also, if neither side is heavier, a not-lightest stone could be identified in two weighings, one swap.
      $endgroup$
      – Brandon_J
      Apr 26 at 0:51











    • $begingroup$
      @noedne here's the better solution.
      $endgroup$
      – Brandon_J
      Apr 26 at 1:31

















    • $begingroup$
      What if neither side is heavier?
      $endgroup$
      – noedne
      Apr 26 at 0:46










    • $begingroup$
      @noedne see JaapScherpius's comment above. Also, if neither side is heavier, a not-lightest stone could be identified in two weighings, one swap.
      $endgroup$
      – Brandon_J
      Apr 26 at 0:51











    • $begingroup$
      @noedne here's the better solution.
      $endgroup$
      – Brandon_J
      Apr 26 at 1:31
















    $begingroup$
    What if neither side is heavier?
    $endgroup$
    – noedne
    Apr 26 at 0:46




    $begingroup$
    What if neither side is heavier?
    $endgroup$
    – noedne
    Apr 26 at 0:46












    $begingroup$
    @noedne see JaapScherpius's comment above. Also, if neither side is heavier, a not-lightest stone could be identified in two weighings, one swap.
    $endgroup$
    – Brandon_J
    Apr 26 at 0:51





    $begingroup$
    @noedne see JaapScherpius's comment above. Also, if neither side is heavier, a not-lightest stone could be identified in two weighings, one swap.
    $endgroup$
    – Brandon_J
    Apr 26 at 0:51













    $begingroup$
    @noedne here's the better solution.
    $endgroup$
    – Brandon_J
    Apr 26 at 1:31





    $begingroup$
    @noedne here's the better solution.
    $endgroup$
    – Brandon_J
    Apr 26 at 1:31












    0












    $begingroup$

    An optimization on Hermes's solution:




    You have 2n stones numbered 0 to 2n-1.


    Weigh stones 0..n-1 against stones n..2n-1.

    If it balances, just swap 2 stones, the scale must tip to one side. The stone you added to the heavier side is not the lightest.

    Else, let's say it tips left. Stones 0..(n-1) are left and the rest are right.


    Consider what happens if you weigh stones k..(k+n-1) against the rest.
    For k=0 the scale tips left, for k=n it tips right. At some point there is a value 'a' such that the scale tips left for k=a, but balances or tips right for k=a+1.


    To find 'a' do a binary search: set a=0, b=n. Then choose k=(a+b)/2 rounded down. If the scale tips left, set a=k and restart, else set b=k and restart. When a+1=b then you are done.


    From k=a to k=a+1, stone (a) is moved right and stone (a+n) is moved left. If it tips the scale, stone (a) is heavier than stone (a+n). You can pick stone (a) as guaranteed not the lightest.


    This method requires at most 5 weighings for 20 stones.







    share|improve this answer









    $endgroup$

















      0












      $begingroup$

      An optimization on Hermes's solution:




      You have 2n stones numbered 0 to 2n-1.


      Weigh stones 0..n-1 against stones n..2n-1.

      If it balances, just swap 2 stones, the scale must tip to one side. The stone you added to the heavier side is not the lightest.

      Else, let's say it tips left. Stones 0..(n-1) are left and the rest are right.


      Consider what happens if you weigh stones k..(k+n-1) against the rest.
      For k=0 the scale tips left, for k=n it tips right. At some point there is a value 'a' such that the scale tips left for k=a, but balances or tips right for k=a+1.


      To find 'a' do a binary search: set a=0, b=n. Then choose k=(a+b)/2 rounded down. If the scale tips left, set a=k and restart, else set b=k and restart. When a+1=b then you are done.


      From k=a to k=a+1, stone (a) is moved right and stone (a+n) is moved left. If it tips the scale, stone (a) is heavier than stone (a+n). You can pick stone (a) as guaranteed not the lightest.


      This method requires at most 5 weighings for 20 stones.







      share|improve this answer









      $endgroup$















        0












        0








        0





        $begingroup$

        An optimization on Hermes's solution:




        You have 2n stones numbered 0 to 2n-1.


        Weigh stones 0..n-1 against stones n..2n-1.

        If it balances, just swap 2 stones, the scale must tip to one side. The stone you added to the heavier side is not the lightest.

        Else, let's say it tips left. Stones 0..(n-1) are left and the rest are right.


        Consider what happens if you weigh stones k..(k+n-1) against the rest.
        For k=0 the scale tips left, for k=n it tips right. At some point there is a value 'a' such that the scale tips left for k=a, but balances or tips right for k=a+1.


        To find 'a' do a binary search: set a=0, b=n. Then choose k=(a+b)/2 rounded down. If the scale tips left, set a=k and restart, else set b=k and restart. When a+1=b then you are done.


        From k=a to k=a+1, stone (a) is moved right and stone (a+n) is moved left. If it tips the scale, stone (a) is heavier than stone (a+n). You can pick stone (a) as guaranteed not the lightest.


        This method requires at most 5 weighings for 20 stones.







        share|improve this answer









        $endgroup$



        An optimization on Hermes's solution:




        You have 2n stones numbered 0 to 2n-1.


        Weigh stones 0..n-1 against stones n..2n-1.

        If it balances, just swap 2 stones, the scale must tip to one side. The stone you added to the heavier side is not the lightest.

        Else, let's say it tips left. Stones 0..(n-1) are left and the rest are right.


        Consider what happens if you weigh stones k..(k+n-1) against the rest.
        For k=0 the scale tips left, for k=n it tips right. At some point there is a value 'a' such that the scale tips left for k=a, but balances or tips right for k=a+1.


        To find 'a' do a binary search: set a=0, b=n. Then choose k=(a+b)/2 rounded down. If the scale tips left, set a=k and restart, else set b=k and restart. When a+1=b then you are done.


        From k=a to k=a+1, stone (a) is moved right and stone (a+n) is moved left. If it tips the scale, stone (a) is heavier than stone (a+n). You can pick stone (a) as guaranteed not the lightest.


        This method requires at most 5 weighings for 20 stones.








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 28 at 10:47









        Florian FFlorian F

        9,54912361




        9,54912361



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Puzzling 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%2fpuzzling.stackexchange.com%2fquestions%2f83188%2ffind-a-stone-which-is-not-the-lightest-one%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

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company