Search found 90 matches
- Mon Oct 04, 2004 2:40 am
- Forum: Algorithms
- Topic: ICPC Warmup mobius function
- Replies: 4
- Views: 2107
- Sun Oct 03, 2004 3:38 pm
- Forum: Algorithms
- Topic: ICPC Warmup mobius function
- Replies: 4
- Views: 2107
ICPC Warmup mobius function
Hey, what is the strategy for doing the mobius function problem efficiently? I see how to determine mu(i) efficiently, but i find M(i) to be the problem. I can see how many non-square-free numbers there are less than i, but how do you deal with checking how many sqyare-free numbers less than i have ...
- Thu Sep 09, 2004 2:01 pm
- Forum: Algorithms
- Topic: A number problem
- Replies: 14
- Views: 5091
- Tue Sep 07, 2004 1:58 pm
- Forum: Volume 4 (400-499)
- Topic: 492 - Pig-Latin
- Replies: 213
- Views: 49378
- Tue Sep 07, 2004 11:54 am
- Forum: Volume 107 (10700-10799)
- Topic: 10710 - Chinese Shuffle
- Replies: 19
- Views: 6778
- Mon Sep 06, 2004 5:11 pm
- Forum: Volume 4 (400-499)
- Topic: 454 - Anagrams
- Replies: 97
- Views: 36110
- Mon Sep 06, 2004 4:34 pm
- Forum: Volume 4 (400-499)
- Topic: 459 - Graph Connectivity
- Replies: 133
- Views: 57848
- Mon Sep 06, 2004 2:51 am
- Forum: Algorithms
- Topic: Prime Number
- Replies: 8
- Views: 2361
- Sun Sep 05, 2004 10:37 pm
- Forum: Volume 5 (500-599)
- Topic: 571 - Jugs
- Replies: 24
- Views: 15387
I tried to use BFS to solve this problem, but got SIGSEV. Does anyone see what is wrong? I've tried littering the code with asserts, but it was no help. :( The idea of my code is to keep track of which states have been visited in the states array. states [j][2] is 0 iff we haven't visited the state ...
- Sun Sep 05, 2004 8:08 pm
- Forum: Volume 4 (400-499)
- Topic: 447 - Population Explosion
- Replies: 23
- Views: 4708
- Sun Sep 05, 2004 7:32 pm
- Forum: Volume 4 (400-499)
- Topic: 447 - Population Explosion
- Replies: 23
- Views: 4708
hm, i haven't taken the time to reason through your code because it is so long (why so complicated?). my ac code is only 51 lines (of which 3 are just method declarations and 15 others just have a }).
do you have email for me to send you I/O? or if you use AIM/MSN messenger i am MinilekDOC on AIM ...
do you have email for me to send you I/O? or if you use AIM/MSN messenger i am MinilekDOC on AIM ...
- Sat Sep 04, 2004 6:18 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124763
- Tue Aug 31, 2004 11:24 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10706 - Number Sequence
- Replies: 34
- Views: 20144
- Tue Aug 31, 2004 6:55 am
- Forum: Volume 102 (10200-10299)
- Topic: 10200 - Prime Time
- Replies: 202
- Views: 96638
- Mon Aug 30, 2004 6:03 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10700 - Camel trading
- Replies: 32
- Views: 17575