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

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020