Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Tavern of the Rising Sun > Thread: Riddle Master: Reformatted
Thread: Riddle Master: Reformatted This thread is 36 pages long: 1 2 3 4 5 ... 10 20 30 ... 32 33 34 35 36 · «PREV / NEXT»
dimis
dimis


Responsible
Supreme Hero
Digitally signed by FoG
posted March 04, 2008 05:09 PM
Edited by dimis at 18:43, 04 Mar 2008.

Nice Binabik.
Now, find the shortest one!
The one you uploaded is not the shortest.

@ Fog: Perhaps you could successively square it, so that you can get rid of the square roots. In the end you'll have a 4 degree polynomial which (with luck) you will be able to solve it. I'll check it out soon and let you know.
You 've got the idea, but I am not sure you 'll find all the minimum solutions.
edit: Now that I think about it again, you are probably right and you have all solutions with some justification.
____________
The empty set

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
dimis
dimis


Responsible
Supreme Hero
Digitally signed by FoG
posted March 05, 2008 12:04 AM
Edited by dimis at 00:17, 05 Mar 2008.

FOG function

Here is your function FriendOfGunnar:


Now how would you achieve minimum without actually solving the equation?

edit: Still!!! Even if you find the minimum in your case, there is a shorter route! So, you have to find the minimum among a family of functions, and then take the minimum once again. Or, ... try another approach?

In particular, can you find a route with length exactly 40? (<-- you can do better than this as well). I loved this problem!
____________
The empty set

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
friendofgunnar
friendofgunnar


Honorable
Legendary Hero
able to speed up time
posted March 05, 2008 12:55 AM
Edited by friendofgunnar at 01:20, 05 Mar 2008.

Quote:
Even if you find the minimum in your case, there is a shorter route!




brb


 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Binabik
Binabik


Responsible
Legendary Hero
posted March 05, 2008 01:09 AM



brb

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
friendofgunnar
friendofgunnar


Honorable
Legendary Hero
able to speed up time
posted March 05, 2008 01:20 AM
Edited by friendofgunnar at 01:35, 05 Mar 2008.

okay, this must be it:

Find all W for which

((6+12+w)^2 + 31^2)^.5 + ((6-w)^2 + 1)^.5 < 42

at W = 6 the total length is 40.2
at W = 0 the total length is 41.92

maybe the answer dips below 40 somewhere in there



15 minutes later

at w = 5.25 the total route is exactly 40.  I can't think of any way to get it shorter though...:hmmm:

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
dimis
dimis


Responsible
Supreme Hero
Digitally signed by FoG
posted March 05, 2008 01:48 AM
Edited by dimis at 01:53, 05 Mar 2008.

FOG-2 function



You might want to use GNUPlot to create similar plots like I plot.
For example in the last example I used the following commands:
Quote:
gnuplot> plot ((18+x)**2 + 31**2)**0.5 + ((6-x)**2 + 1)**0.5 title "FOG-2 function", 42 title "Bound"

If you want more 'tics' on x-axis, here you go:
Quote:
gnuplot> set xtics -100,1,100
gnuplot> replot

If you want to change the range for example as well:
Quote:
gnuplot> set xrange[0:10]
gnuplot> replot


Still your best solution seems to be 40 but you can do even better!! I don't know which x has the property and minimizes your function, but I have a good geometric interpretation (I believe).

edit: Seems that I was posting at the time you edited. Nice work so far!!! Let's see who will go below 40.
____________
The empty set

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Binabik
Binabik


Responsible
Legendary Hero
posted March 05, 2008 01:50 AM

I'm doing it graphically and haven't found anything shorter than 40 yet.

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
dimis
dimis


Responsible
Supreme Hero
Digitally signed by FoG
posted March 05, 2008 02:05 AM

ooops...

I am laughing at myself. I guess you are right guys. I can not verify a solution less than 40. Seems that I made a mistake in the calculations when I first solved. Sorry about that.

So, will someone draw a line of length 40?
____________
The empty set

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Binabik
Binabik


Responsible
Legendary Hero
posted March 05, 2008 02:08 AM

Yea, gimme a minute to make it and upload.

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Binabik
Binabik


Responsible
Legendary Hero
posted March 05, 2008 02:22 AM
Edited by Binabik at 02:33, 05 Mar 2008.



Note that this solution is nearest to a 45 degree angle which gives you the shortest hypotenuse.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Binabik
Binabik


Responsible
Legendary Hero
posted March 05, 2008 02:37 AM

Red is the shortest.


____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
dimis
dimis


Responsible
Supreme Hero
Digitally signed by FoG
posted March 05, 2008 02:41 AM
Edited by dimis at 03:03, 05 Mar 2008.

Nice! By the way, I just talked to the guy who gave me this riddle, and told me that the problem emerged since people wanted to minimize the ribbon (tape?) that is used in order to wrap a box containing whiskey, or a similar alcoholic beverage. Dunno if its true, but it's certainly interesting.

By the way, let's have a 3D-plot as well:


____________
The empty set

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Binabik
Binabik


Responsible
Legendary Hero
posted March 10, 2008 09:29 AM

Did anyone happen to notice that the triangle is a perferct 3,4,5 triangle?

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
dimis
dimis


Responsible
Supreme Hero
Digitally signed by FoG
posted March 10, 2008 10:25 AM

nope. Didn't check anything after I solved it. lol
____________
The empty set

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Duncan
Duncan


Famous Hero
The Pathfinder
posted July 18, 2008 12:32 PM

Hi guys, brought something interesting for you:

1 1 1 6
2 2 2 6
3 3 3 6
4 4 4 6
5 5 5 6
6 6 6 6
7 7 7 6
8 8 8 6
9 9 9 6
10 10 10 6

Make equalities from each line of the numbers above, for example (2nd row):

2 + 2 + 2 = 6  (I don't need to tell you this one is the easiest )

Square etc. are welcome, but you cannot introduce new numbers as coefficient for example 1x2 + 1x2 + 1x2 = 6 --> this isn't allowed.

Let's see what you can come up with.
____________
But now I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Minion
Minion


Legendary Hero
posted July 18, 2008 02:14 PM


3x3-3=6
4+4-sqr4=6
5=5x(-5+6)
6+6-6=6
7=7x(7-6)
cube root 8 + cube root 8 + cube root 8 = 6
9=sqr9x(9-6)

Hope some are right, don't know if cube roots were allowed (and didn't know what is the shortening used of it) Sqr = square root
____________
"These friends probably started using condoms after having produced the most optimum amount of offsprings. Kudos to them for showing at least some restraint" - Tsar-ivor

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
TheDeath
TheDeath


Responsible
Undefeatable Hero
with serious business
posted July 18, 2008 02:19 PM

You can use cbrt for cube root

1*1*1 = 6^0

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Duncan
Duncan


Famous Hero
The Pathfinder
posted July 18, 2008 02:35 PM

Hehheh... you guys are fast

@Minion:
Yes, cube root is the only solution for that one, afaik. So it's taken

@TheDeath:
That one is fine too. But 1 = (1 x 1)^6 is more elegant, as it does not add any new number

The most interesting part is the last. Need to think out of the box for this one
____________
But now I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
TheDeath
TheDeath


Responsible
Undefeatable Hero
with serious business
posted July 18, 2008 02:39 PM
Edited by TheDeath at 14:41, 18 Jul 2008.

log10(10) = (10/10)^6

log10 is the base10 logarithm

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Duncan
Duncan


Famous Hero
The Pathfinder
posted July 18, 2008 02:52 PM

Gah! Never thought that one is possible!

When I played this, someone gave the answer the LHS being binary, and it was taken

Thx guys. It's all too easy after all
____________
But now I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 36 pages long: 1 2 3 4 5 ... 10 20 30 ... 32 33 34 35 36 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0975 seconds