| 1 |
(* |
| 2 |
* This is the algorithm from PACT '98 (me, Krishna Palem and Amir Pnueli) |
| 3 |
* Note: the dag is assumed to be in transitively closed form. |
| 4 |
* |
| 5 |
* -- Allen |
| 6 |
*) |
| 7 |
signature LEUNG_PALEM_PNUELI = |
| 8 |
sig |
| 9 |
|
| 10 |
exception Infeasible |
| 11 |
|
| 12 |
val rank : { dag : ('n,'e,'g) Graph.graph, (* dag *) |
| 13 |
l : 'e Graph.edge -> int, (* latency *) |
| 14 |
r : 'n Graph.node -> int, (* individual release times *) |
| 15 |
d : 'n Graph.node -> int, (* individual deadlines *) |
| 16 |
m : int (* number of processors *) |
| 17 |
} -> |
| 18 |
{ r' : int Array.array, (* modified release times *) |
| 19 |
d' : int Array.array (* modified deadlines *) |
| 20 |
} |
| 21 |
|
| 22 |
end |