| # | User | Rating |
|---|---|---|
| 1 | Benq | 3792 |
| 2 | VivaciousAubergine | 3647 |
| 3 | Kevin114514 | 3611 |
| 4 | jiangly | 3583 |
| 5 | strapple | 3515 |
| 6 | tourist | 3470 |
| 7 | Radewoosh | 3415 |
| 8 | Um_nik | 3376 |
| 9 | maroonrk | 3361 |
| 10 | XVIII | 3345 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 162 |
| 2 | adamant | 148 |
| 3 | Um_nik | 146 |
| 4 | Dominater069 | 143 |
| 5 | errorgorn | 141 |
| 6 | cry | 138 |
| 7 | Proof_by_QED | 136 |
| 8 | YuukiS | 135 |
| 9 | chromate00 | 134 |
| 10 | soullless | 133 |
|
0
Only if you have binary operations. |
|
-20
Yeah, practically mine took 2.7 seconds but theoretically it should be 2-3 mins, no ? |
|
-11
about 2-3 mins theoretically, yeah should work. But wasnt expecting this tight. So I did miller rabin factorization. |
|
+1
What factorization method did you guys use in B2 ? Cuz the naive implementation would take 140 * sqrt(B) operations ~1.4 * 1e9 ? |
|
0
How is this for an idea ? lets say we find an undirected cycle. that is a->b->c->d and a->e->d. The undirected cycle is a b c d e a. I can convert the flow without changing source to sink flows by making it a->b->c->e->d. and adding the c->d flow to c->e and e->d. This reduced my edge by 1 whilst keeping the same flow. I can do this till I remove all the cycles ? |
|
0
That is insightful. We also need some kind of randomisation... As the choice can't be greedy based on the val function you gave. maybe choose some top k candidates from these and try all. something like that or do a Monte Carlo tree search with your way of reward. . |
|
+8
Thank you for the tip but I want heuristics of the above problem which is NP hard. |
|
0
Auto comment: topic has been updated by sharvil_cpp (previous revision, new revision, compare). |
| Name |
|---|


