mersenneforum.org  

Go Back   mersenneforum.org > Fun Stuff > Puzzles

Reply
 
Thread Tools
Old 2014-08-09, 16:02   #1
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

11111111010012 Posts
Default August 2014

http://domino.research.ibm.com/Comm/...ugust2014.html
Xyzzy is offline   Reply With Quote
Old 2014-08-09, 16:52   #2
axn
 
axn's Avatar
 
Jun 2003

115528 Posts
Default

Code:
cost=vector(100); choice=vector(100);
cost[1]=0; choice[1]=1;
for(i=2,100, mcost=10000; mchoice=0; for(ch=1,i-1, ncost=(ch/i)*(1+cost[ch])+((i-ch)/i)*(10+cost[i-ch]); if(ncost < mcost, mcost=ncost; mchoice=ch)); cost[i]=mcost; choice[i]=mchoice)

Last fiddled with by axn on 2014-08-09 at 16:52
axn is offline   Reply With Quote
Old 2014-11-02, 19:04   #3
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

177518 Posts
Default

http://domino.research.ibm.com/Comm/...ugust2014.html
Xyzzy is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
August 2017 Batalov Puzzles 15 2017-09-05 03:47
August 2015 R. Gerbicz Puzzles 7 2015-09-04 13:18
2801^79-1 reservations (CLOSED 27 AUGUST) fivemack Factoring 76 2010-11-06 11:36
August Progress Wacky NFSNET Discussion 0 2007-08-09 02:32
SIRTF launches August 25! dswanson Lounge 10 2003-08-27 22:48

All times are UTC. The time now is 22:48.

Tue May 18 22:48:01 UTC 2021 up 40 days, 17:28, 0 users, load averages: 1.52, 1.56, 1.67

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.