MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / main

Function main

test/test_johnsons_rule.cpp:8–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "johnsons_rule.h"
7
8int main() {
9 // example from wikipedia
10 vector<Job> jobs = {
11 {32, 42, 1},
12 {47, 15, 2},
13 {22, 50, 3},
14 {58, 40, 4},
15 {31, 28, 5}
16 };
17 auto schedule = johnsons_rule(jobs);
18 assert(finish_times(schedule) == make_pair(190, 205));
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected