The Geek Forum

  • May 10, 2024, 11:08:40 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Due to the prolific nature of these forums, poster aggression is advised.

*

Recent Forum Posts

Shout Box

Members
Stats
  • Total Posts: 129623
  • Total Topics: 7186
  • Online Today: 159
  • Online Ever: 1013
  • (January 12, 2023, 01:18:11 AM)

Author Topic: I wanna present a puzzle too!  (Read 1289 times)

Jaepheth

  • Computer Whore
  • **
  • Coolio Points: +114/-5
  • Offline Offline
  • Gender: Male
  • Posts: 348
    • View Profile
I wanna present a puzzle too!
« on: January 28, 2011, 10:23:56 PM »

It seems to be the cool thing to do, so here you go:

Adam buys one kilogram of sugar every Monday.
Bob buys one dollar's worth of sugar every Wednesday.
The price of sugar may change on Sundays only.

Who gets the best deal over time? Justify your answer.


Monte Carlo solutions will not be accepted.
« Last Edit: February 03, 2011, 03:03:39 AM by Jaepheth »
Logged

I'm sorry, but the number you have dialed is imaginary. Please rotate the phone by 90 degrees and try again.

ivan

  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +499/-50
  • Offline Offline
  • Posts: 4929
  • Not a Mod, nor a Rocker. A Mocker.
    • View Profile
Re: I wanna present a puzzle too!
« Reply #1 on: January 29, 2011, 03:24:01 AM »

It seems to be the cool thing to do, so here your go:

Adam buys one kilogram of sugar every Monday.
Bob buys one dollar's worth of sugar every Wednesday.
The price of sugar may change on Sundays only.

Who gets the best deal over time? Justify your answer.


Monte Carlo solutions will not be accepted.

Insufficient data.

But, assuming that the sugar is priced per pound, and Adam and Bob are both using dollars, then Adam and Bob are both paying the same price for the sugar, and purchasing the same amount of sugar per dollar. So neither has an advantage, unless you postulate that the sugar at the top of the barrel is qualitatively different from the sugar deeper down in the barrel (provided the sugar is in fact stored in barrels), in which case either Adam or Bob gets the best deal over time, depending on whether the sugar at the top is better or worse than the sugar deeper down, and provided that a new barrel is cracked open on Sunday or Monday morning, or some time Tuesday or Wednesday morning, which is totally not determined. Provided also that we're looking at a sufficiently long period of time, so that the fluctuations of the dollar versus the value of sugar as a commodity is evened out.

What's a Monte Carlo solution?


Logged
"I TYPE 120 WORDS PER MINUTE, BUT IT'S IN MY OWN LANGUAGE!"  -Detta

xolik: WHERE IS OBAMA'S GIFT CERTIFICATE?
Demosthenes: Is that from the gifters movement?


Detta: Crappy old shorts and a tank top.  This is how I dress for work. Because my job is to get puked on.
Demosthenes: So is mine.  I work in IT.


bananaskittles: The world is 4chan and God is a troll.

Jaepheth

  • Computer Whore
  • **
  • Coolio Points: +114/-5
  • Offline Offline
  • Gender: Male
  • Posts: 348
    • View Profile
Re: I wanna present a puzzle too!
« Reply #2 on: January 29, 2011, 04:42:33 AM »

Insufficient data.

But, assuming that the sugar is priced per pound, and Adam and Bob are both using dollars, then Adam and Bob are both paying the same price for the sugar, and purchasing the same amount of sugar per dollar. So neither has an advantage, unless you postulate that the sugar at the top of the barrel is qualitatively different from the sugar deeper down in the barrel (provided the sugar is in fact stored in barrels), in which case either Adam or Bob gets the best deal over time, depending on whether the sugar at the top is better or worse than the sugar deeper down, and provided that a new barrel is cracked open on Sunday or Monday morning, or some time Tuesday or Wednesday morning, which is totally not determined. Provided also that we're looking at a sufficiently long period of time, so that the fluctuations of the dollar versus the value of sugar as a commodity is evened out.

What's a Monte Carlo solution?


A Monte Carlo solution would be generating random prices and calculating who gets the best Dollar to pounds of sugar ratio.

You can use it to find the right answer, you just can't use it as a proof.
« Last Edit: January 29, 2011, 04:50:21 AM by Jaepheth »
Logged

I'm sorry, but the number you have dialed is imaginary. Please rotate the phone by 90 degrees and try again.

Jaepheth

  • Computer Whore
  • **
  • Coolio Points: +114/-5
  • Offline Offline
  • Gender: Male
  • Posts: 348
    • View Profile
Re: I wanna present a puzzle too!
« Reply #3 on: February 01, 2011, 12:51:59 AM »

Ok, since this is a pretty difficult problem I'll give you all a Big Hint
Logged

I'm sorry, but the number you have dialed is imaginary. Please rotate the phone by 90 degrees and try again.

Min

  • Nice Ex-Hackernetwork Moderator
  • Forum Moderator
  • Hacker
  • *
  • Coolio Points: +468/-13
  • Offline Offline
  • Gender: Female
  • Posts: 5970
  • Slacker Wiseass
    • View Profile
Re: I wanna present a puzzle too!
« Reply #4 on: February 02, 2011, 03:51:27 PM »

Ok, I'm going to try to work on this in the next few days.
Logged
Flammable : Inflammable :: Duh : No Duh
"I TYPE 120 WORDS PER MINUTE, BUT IT'S IN MY OWN LANGUAGE!"  -ivan
1,180,463,441,680 Coolio Points