romophic / opttp Goto Github PK
View Code? Open in Web Editor NEWOptimize transmit problem
License: MIT License
Optimize transmit problem
License: MIT License
時間が同じだと同じテストケースが生成されてしまうので
任意頂点でDAGを組めるが往復パスにて重みが違う偏重グラフ?において、経路長の計算を*2で済ませているのでそこの対応
//533
state.l[carriernum] += model.G.g[pos][outdnum].cost * 2; // TODO: 偏重の場合対応
s-opt法で遷移した状態を用いて定数時間で荷物運送をシミュレートする
unsigned long xor128() {
static unsigned long x = 123456789, y = 362436069, z = 521288629, w = 88675123;
unsigned long t;
t = (x ^ (x << 11));
x = y;
y = z;
z = w;
return w = (w ^ (w >> 19)) ^ (t ^ (t >> 8));
}
double frand() {
//return xor128() % ULONG_MAX / static_cast<double>(ULONG_MAX);
return (((double) rand() / (RAND_MAX)));
}
これを使いたくないんだけど、RAND_MAXは変な値返すし、randomgeneratorは定数倍が重くて見直すことになりそうなので難しい雰囲気がします
192.168.20.[160 ~ 163]の範囲に立てたので、四台でクラスタリング実行ができます
4x4 32G
UTGSC受かったら16台借りてクラスタ組む
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.