ENG New site

Advanced search

[ New messages · Forum rules · Members ]
Challenge a Child's IQ
midtskogenDate: Wednesday, 04.09.2013, 05:26 | Message # 31
Star Engineer
Group: Users
Norway
Messages: 1674
Status: Offline
I think Aerospacefag's question is clear enough. If the spheres don't even break from the 100th floor, there still is a minimum tries you need even to arrive at that answer, as it is if they break from the first. Come on, just think as a programmer and the problem is trivial...

Speaking of programming, on to my question:

Code

int f(int n) {
      int x;
      for (x = 0; n > x; x++) n -= 2*x;
      return x;
}


It computes:





NIL DIFFICILE VOLENTI


Edited by midtskogen - Wednesday, 04.09.2013, 05:37
 
HarbingerDawnDate: Wednesday, 04.09.2013, 05:27 | Message # 32
Cosmic Curator
Group: Administrators
United States
Messages: 8717
Status: Offline
Quote (midtskogen)
just think as a programmer and the problem is trivial...

I'd wager that a large percentage of us have no experience or even aptitude in that area.





All forum users, please read this!
My SE mods and addons
Phenom II X6 1090T 3.2 GHz, 16 GB DDR3 RAM, GTX 970 3584 MB VRAM
 
midtskogenDate: Wednesday, 04.09.2013, 06:22 | Message # 33
Star Engineer
Group: Users
Norway
Messages: 1674
Status: Offline
Quote (HarbingerDawn)
I'd wager that a large percentage of us have no experience or even aptitude in that area.

All right. Think like a scientist, then. Dropping a sphere is an experiment, and seeing whether it breaks is an observation. You want to do as few experiments as possible. Either because you're lazy or just pragmatic, or because an experiment costs a million dollar each.





NIL DIFFICILE VOLENTI


Edited by midtskogen - Wednesday, 04.09.2013, 08:21
 
Gondor2222Date: Wednesday, 04.09.2013, 08:25 | Message # 34
Space Pilot
Group: Users
United States
Messages: 92
Status: Offline
Quote (Watsisname)
Tomorrow you shake hands with two people. The day after, each of those two people shake hands with two more people. This process repeats every day. Roughly how long would it take for everyone on Earth to shake hands? (There are about 7 billion people.)


INSUFFICIENT DATA FOR MEANINGFUL ANSWER.



Quote (werdnaforever)
1 epoch: ends at 10^-43


I was under the impression that the Planck epoch ends at exactly the Planck time, not at exactly 10^-43 seconds? Wikipedia says "from zero to approximately 10−43 seconds (Planck time)." In which case the only suitable answer to the blank is anything equivalent to "0*Tp, where Tp is the Planck time in seconds" such that the answer reads "10^0*Tp seconds"

Quote (werdnaforever)
4 Medium: Can a triangle have more than 180 degrees? Yes or no, and if yes then explain under what circumstances.


Yes, but only in non-Euclidian geometry. Three points on the surface of a sphere connected by great circle segments are not a triangle in Euclidian geometry.

Quote (Aerospacefag)
What is the minimum amount of spheres you have to trow out of the window(s) to find this out?



Quote (midtskogen)
Code

int f(int n) {
int x;
for (x = 0; n > x; x++) n -= 2*x;
return x;
}




Edited by Gondor2222 - Wednesday, 04.09.2013, 09:44
 
apenpaapDate: Wednesday, 04.09.2013, 08:47 | Message # 35
World Builder
Group: Users
Antarctica
Messages: 1063
Status: Offline
Quote (werdnaforever)
Hard question: Having gone back in time, __ _____ casually gives a patient a pill allowing her to grow a new ______ after casually making the remark "what is this, the ____ ____?"


Quote (werdnaforever)
This one's hard since it's a specific part of a specific movie (which is the only hint I'll give). I want to know if anyone else can get this though...


It's one of my favourite movies, so pretty easy for me: Having gone back in time, dr. McCoy casually gives a patient a pill allowing her to grow a new kidney after casually making the remark "what is this, the Dark Ages?"





I occasionally stream at http://www.twitch.tv/magistermystax. Sometimes SE, sometimes other games.
 
midtskogenDate: Wednesday, 04.09.2013, 11:29 | Message # 36
Star Engineer
Group: Users
Norway
Messages: 1674
Status: Offline
Quote (Gondor2222)
Best case scenario

But since you don't have any information on when it's going to break, you can't know that you should use this method.

Quote (Gondor2222)
Worst case scenario



Quote (Gondor2222)
When the problem reads "return x" you have to ...






NIL DIFFICILE VOLENTI


Edited by midtskogen - Wednesday, 04.09.2013, 11:43
 
werdnaforeverDate: Wednesday, 04.09.2013, 16:24 | Message # 37
World Builder
Group: Users
Pirate
Messages: 897
Status: Offline
Quote (apenpaap)
It's one of my favourite movies, so pretty easy for me: Having gone back in time, dr. McCoy casually gives a patient a pill allowing her to grow a new kidney after casually making the remark "what is this, the Dark Ages?"

Yes!
 
SpyroDate: Wednesday, 04.09.2013, 21:11 | Message # 38
Explorer
Group: Users
United States
Messages: 162
Status: Offline
Where do you guys even get this stuff? Wikipedia or from purely thinking about it? wacko
Anyway, you said that the spheres could break from a fall of 100 floors, so 1 experiment, as it breaks from a fall of 100 floors, right? Or do you mean it can break from a fall of less? Then I'd do luck.
When I encounter a problem I don't really know anyway to solve, I just get scared. You guys are complete geniuses!
I'm just going to stop the score, as I'm certain that you guys are just going to maul me in the intelligence area.
So, here is ME asking the big question: Where do you guys get this stuff?! I want to be as smart as you guys! cry





I'm back, but am I here to stay? Hopefully!
 
HarbingerDawnDate: Wednesday, 04.09.2013, 22:39 | Message # 39
Cosmic Curator
Group: Administrators
United States
Messages: 8717
Status: Offline
Quote (Spyro)
Anyway, you said that the spheres could break from a fall of 100 floors, so 1 experiment, as it breaks from a fall of 100 floors, right? Or do you mean it can break from a fall of less?

He means that somewhere in that building is a lowest possible floor which will break the sphere. You have to find out what floor that is while testing a minimum of spheres.

Quote (Spyro)
Where do you guys get this stuff?!

Everything I see just looks made up by the posters.

Quote (Spyro)
You guys are complete geniuses!

Not sure I would agree; coming up with a riddle or some kind of math problem doesn't make someone a genius.





All forum users, please read this!
My SE mods and addons
Phenom II X6 1090T 3.2 GHz, 16 GB DDR3 RAM, GTX 970 3584 MB VRAM
 
werdnaforeverDate: Thursday, 05.09.2013, 16:58 | Message # 40
World Builder
Group: Users
Pirate
Messages: 897
Status: Offline
Quote (Spyro)
I want to be as smart as you guys!

Knowledge is clay, and intelligence is how you sculpt it. To get either of them takes, among other things, time. Despite the ever-increasing rate at which we can find new information, you're still only 13- you haven't had as long as some of us. You have most of your life still ahead of you including your teenage years... and trust me, enjoy your childhood while it lasts.

Quote (HarbingerDawn)
Not sure I would agree; coming up with a riddle or some kind of math problem doesn't make someone a genius.

Well, it depends on the math problem. Einstein was a genius... but you're right of course.
 
Billy_MayesDate: Thursday, 05.09.2013, 18:19 | Message # 41
Pioneer
Group: Users
Finland
Messages: 485
Status: Offline
Hey, I'm 12 years old, so could you ask me some questions too? I want to test my intelligence as well. smile
Pop culture allowed too, but not very hard questions about that.





AMD Phenom II X4 955 3.2 GHz Quad-Core - AMD Radeon HD 6950 2GB VRAM - 4GB RAM - 1680x1050 75 Hz Samsung screen
 
HarbingerDawnDate: Thursday, 05.09.2013, 19:24 | Message # 42
Cosmic Curator
Group: Administrators
United States
Messages: 8717
Status: Offline
Quote (werdnaforever)
To get either of them takes, among other things, time.

Intelligence is predominantly an inherent trait, so you either have a lot of intelligence or you don't, there's not much you can do to affect it either way. Knowledge on the other hand is open to anyone; to what degree is determined largely by intelligence.





All forum users, please read this!
My SE mods and addons
Phenom II X6 1090T 3.2 GHz, 16 GB DDR3 RAM, GTX 970 3584 MB VRAM
 
AerospacefagDate: Thursday, 05.09.2013, 19:25 | Message # 43
Pioneer
Group: Users
Russian Federation
Messages: 401
Status: Offline
Quote (Spyro)
Anyway, you said that the spheres could break from a fall of 100 floors, so 1 experiment, as it breaks from a fall of 100 floors, right? Or do you mean it can break from a fall of less? Then I'd do luck.

Ok, that's really enough for +1 pts, but not for more, because real answer requires abstracting from probability.



So, there's the full answer from me :

It is very simple to determine the minimum height of drop: if you drop it from position above that mark, sphere breaks, if from lower - it does not. For example if the answer is 45, you can only figure this out by dropping it from 45 and 44 floors.

+1 pts - 1 or 2 drops.
Easy mode, if it is possible for sphere to break even falling from 1st floor, it is only 1 throw, but that would be too easy, right? This is usually not a variant as it has no practical meaning.

+2 pts - 98 drops.
Normal mode. It is implied that range of floors is from 2 to 99, because floors 100 and 1 are out of range. So, for minimum reliable result we have to test every floor from 2 to 99 to find out, and number of throws always will be between 2 and 98.

+3 pts - 7 drops.
Hard mode, a programmer's version, with optimized algorithm aka "finding lion in the desert".
1. Drop 1 sphere from floor 50. If it doesn't break the answer is between 50 and 100, if does, it's 1<<50.
2. We split the remaining interval in 2 equal parts (1<<25 and 26<<50 or 50<<75 and 75<<100)
3. Here's the tricky part: repeat 2 until last interval is only 1 floor. This will be the answer.
26 = 64 < 100 < 128 = 27

+4 pts - 2 drops
Quantum bogosort algorithm.
1. Drop sphere from random floor. If it breaks, destroy the entire universe.
2. Drop it from the floor below it. If it does not break, destroy the entire universe.
3. The universes that survive, have the right answer.

Further reading: http://www.gksoft.com/a/fun/catch-lion.html
 
midtskogenDate: Thursday, 05.09.2013, 19:54 | Message # 44
Star Engineer
Group: Users
Norway
Messages: 1674
Status: Offline
Ok, here's another puzzle. Anyone can have a go. Remember to put answers in spoiler tags.

Let's say I give you 1000 coins and 10 jars. Your task will be to distribute the coins into these jars and seal them, so that if I ask for any number of these coins, you shall be able to give me one or more jars that together contain the number of coins that I asked for. Can it be done, and how would you distribute the coins?

Difficulty level: medium





NIL DIFFICILE VOLENTI
 
SpyroDate: Thursday, 05.09.2013, 20:11 | Message # 45
Explorer
Group: Users
United States
Messages: 162
Status: Offline
EDIT: Whoops, forgot the spoiler tag. Here it is:


Quote (Billy Mayes)
Hey, I'm 12 years old, so could you ask me some questions too? I want to test my intelligence as well. smile
Pop culture allowed too, but not very hard questions about that.

Easy: What is the name of the game I largely enjoy involving evolution?
Medium: How much daily Calcium does an entire large bag of Goldfish have in it?
Hard: What did I name my art project? smile





I'm back, but am I here to stay? Hopefully!

Edited by Spyro - Thursday, 05.09.2013, 20:12
 
Search: