-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
168 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
a b 1 | ||
a c 2 | ||
a d 3 | ||
a e 4 | ||
a f 4 | ||
b c 3 | ||
b d 2 | ||
b e 3 | ||
b f 3 | ||
c d 3 | ||
c e 4 | ||
c f 4 | ||
d e 5 | ||
d f 1 | ||
e f 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
a a 1 | ||
a b 1 | ||
a c 2 | ||
a d 3 | ||
a e 4 | ||
a f 4 | ||
b a 1 | ||
b b 2 | ||
b c 3 | ||
b d 2 | ||
b e 3 | ||
b f 3 | ||
c a 2 | ||
c b 3 | ||
c c 4 | ||
c d 3 | ||
c e 4 | ||
c f 4 | ||
d a 3 | ||
d b 2 | ||
d c 3 | ||
d d 2 | ||
d e 5 | ||
d f 1 | ||
e a 4 | ||
e b 3 | ||
e c 4 | ||
e d 5 | ||
e e 6 | ||
e f 6 | ||
f a 4 | ||
f b 3 | ||
f c 4 | ||
f d 1 | ||
f e 6 | ||
f f 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
e f 6 | ||
d e 5 | ||
d f 11 | ||
c d 3 | ||
c e 8 | ||
c f 14 | ||
b c 3 | ||
b d 2 | ||
b e 7 | ||
b f 13 | ||
a b 1 | ||
a c 4 | ||
a d 7 | ||
a e 12 | ||
a f 18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
a b 1 | ||
a c 2 | ||
a d 3 | ||
a e 4 | ||
a f 4 | ||
b c 3 | ||
b d 2 | ||
b e 3 | ||
b f 3 | ||
c d 3 | ||
c e 4 | ||
c f 4 | ||
d e 5 | ||
d f 1 | ||
e f 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
a a 1 | ||
a b 1 | ||
a c 2 | ||
a d 3 | ||
a e 4 | ||
a f 4 | ||
b a 1 | ||
b b 2 | ||
b c 3 | ||
b d 2 | ||
b e 3 | ||
b f 3 | ||
c a 2 | ||
c b 3 | ||
c c 4 | ||
c d 3 | ||
c e 4 | ||
c f 4 | ||
d a 3 | ||
d b 2 | ||
d c 3 | ||
d d 2 | ||
d e 5 | ||
d f 1 | ||
e a 4 | ||
e b 3 | ||
e c 4 | ||
e d 5 | ||
e e 6 | ||
e f 6 | ||
f a 4 | ||
f b 3 | ||
f c 4 | ||
f d 1 | ||
f e 6 | ||
f f 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Souffle - A Datalog Compiler | ||
// Copyright (c) 2016, The Souffle Developers. All rights reserved | ||
// Licensed under the Universal Permissive License v 1.0 as shown at: | ||
// - https://opensource.org/licenses/UPL | ||
// - <souffle root>/licenses/SOUFFLE-UPL.txt | ||
|
||
.decl dag(x:symbol, y:symbol, c:number) | ||
.input dag | ||
|
||
.decl max_path(x:symbol, y:symbol, c:number) btree_max | ||
.output max_path | ||
|
||
max_path(x, y, c) :- dag(x, y, c). | ||
max_path(x, y, c1+c2) :- max_path(x, z, c1), dag(z, y, c2). | ||
|
||
.decl min_path(x:symbol, y:symbol, c:number) btree_min | ||
.output min_path | ||
|
||
min_path(x, y, c) :- dag(x, y, c). | ||
min_path(x, y, c1+c2) :- min_path(x, z, c1), dag(z, y, c2). | ||
|
||
.decl sum_path(x:symbol, y:symbol, c:number) btree_sum | ||
.output sum_path | ||
|
||
sum_path(x, y, c) :- dag(x, y, c). | ||
sum_path(x, y, c1+c2) :- sum_path(x, z, c1), dag(z, y, c2). | ||
|
||
.decl graph(x:symbol, y:symbol, c:number) | ||
.input graph | ||
|
||
.decl min_path_c(x:symbol, y:symbol, c:number) btree_min | ||
.output min_path_c | ||
|
||
min_path_c(x, y, c) :- graph(x, y, c). | ||
min_path_c(x, y, c1+c2) :- min_path_c(x, z, c1), graph(z, y, c2). |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
a b 1 | ||
a c 6 | ||
a d 15 | ||
a e 48 | ||
a f 84 | ||
b c 3 | ||
b d 8 | ||
b e 28 | ||
b f 63 | ||
c d 3 | ||
c e 12 | ||
c f 14 | ||
d e 5 | ||
d f 12 | ||
e f 6 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.