Interesting amnesty?

General chitchat, advertisements for other services, and other non-Cantr-related topics

Moderators: Public Relations Department, Players Department

west
Posts: 4649
Joined: Mon Aug 25, 2003 5:23 pm

Postby west » Mon Oct 06, 2003 3:20 am

yeah dawg...i got the answer! if you want it meet me in the unnamed building in Drojf with 3000g rubber and a dead cow at turn 8 :-)
I'm not dead; I'm dormant.
Chrissy
Posts: 651
Joined: Mon Jul 14, 2003 10:18 pm
Location: Michigan

Postby Chrissy » Mon Oct 06, 2003 11:35 am

Everytime I read through this my stomach feels sick. I really, really, really, hope it was just a hypothetical math problem and nothing more.

Chrissy
User avatar
Rob Maule
Posts: 441
Joined: Mon Jul 14, 2003 5:15 pm
Location: Florida, USA
Contact:

Postby Rob Maule » Mon Oct 06, 2003 6:54 pm

Hypothetical to the extreme. The staff of any game would not make desicions this way.
Image
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Mon Oct 06, 2003 7:24 pm

They would at least not publish it. ;)
User avatar
Rob Maule
Posts: 441
Joined: Mon Jul 14, 2003 5:15 pm
Location: Florida, USA
Contact:

Postby Rob Maule » Mon Oct 06, 2003 7:27 pm

And I think the answer is 10, Thomas.
Image
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Mon Oct 06, 2003 7:40 pm

Thank you for an explicit and correct solution. ;-) I guess, now you could also answer the same question with 10,000 locked accounts and 10,000 runs? :-)
User avatar
Rob Maule
Posts: 441
Joined: Mon Jul 14, 2003 5:15 pm
Location: Florida, USA
Contact:

Postby Rob Maule » Mon Oct 06, 2003 7:45 pm

Yes, it's 100.
Image
Meh
Posts: 2661
Joined: Wed Jul 16, 2003 10:13 pm
Location: Way away from TRUE staff abuse

Postby Meh » Mon Oct 06, 2003 8:06 pm

Did you change the problem?

When I did 10 manually just now it came out to 5 open and 5 closed.

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

0000000000
+0101010101
=0101010101
+0010010010
=0111010101
+0001000100
=0110010011
+0000100001
=0110110010
+0000010000
=0110100010
+0000001000
=0110100010
+0000000100
=0110101010
+0000000010
=0110101110
+0000000001
=110101100
User avatar
Báng
Posts: 268
Joined: Tue Jul 15, 2003 8:01 pm
Location: Tyrone, Ireland

Postby Báng » Mon Oct 06, 2003 8:08 pm

:shock: I'm glad I didn't even try.
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Mon Oct 06, 2003 9:05 pm

Yes, the algorithm has slightly changed.

1 = locked
0 = unlocked

Code: Select all

 
 1111111111
+1111111111
=0000000000
+0101010101
=0101010101
+0010010010
=0111010101 <= error, correct: 0111000111
+0001000100
=0110010011
+0000100001
=0110110010
+0000010000
=0110100010
+0000001000
=0110100010
+0000000100
=0110101010
+0000000010
=0110101110
+0000000001
=110101100
Meh
Posts: 2661
Joined: Wed Jul 16, 2003 10:13 pm
Location: Way away from TRUE staff abuse

Postby Meh » Mon Oct 06, 2003 10:50 pm

D'oh
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Mon Oct 06, 2003 11:10 pm

But the error was not due to the changed algorithm. It was only a slight change, that changes the outcome but not essentially the algorithm itself. Only a different start.
User avatar
kroner
Posts: 1463
Joined: Sat Sep 27, 2003 4:39 pm
Location: new jersey...

Postby kroner » Tue Oct 07, 2003 3:39 am

The answer for 100 accounts is 10. The answer for 10,000 accounts is 100. The perfect squares, which have an odd number of factors are flipped an odd number of times and therefore are open at the end. All the other numbers have an even number of factors and therefore stay closed. In general, for n accounts, the number open at the end is the greatest integer less than or equal to the square root of n. 8)
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Tue Oct 07, 2003 7:23 am

Absolutely accurate! ;-) *applauds*

Return to “Non-Cantr-Related Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest