Skip to content

Commit

Permalink
Remove obsolete "guaranteed…" tags
Browse files Browse the repository at this point in the history
  • Loading branch information
agdphd committed Dec 15, 2015
1 parent d5630f1 commit d40471a
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 31 deletions.
5 changes: 3 additions & 2 deletions containers/README.md
Expand Up @@ -80,9 +80,10 @@ You can run this container online on the [Algorun server](http://pymbd.algorun.o

### ParTran
A parallel algorithm using a Berge-like calculation on divided subhypergraphs, published in [_Parallel computation of the minimal elements of a poset_](//doi.org/10.1145/1837210.1837221) by Leiserson et al.
An implementation in Cilk++ by those authors is available from the BPASlib project's [webpage](//bpaslib.org) and is provided in the [`compsysmed/partran`](//hub.docker.com/r/compsysmed/partran) container in the [`partran`](partran/) directory under the terms of the authors' license.
An implementation in Cilk++ by those authors is available from the BPASlib project's [webpage](//bpaslib.org).

***WARNING***: Testing has revealed that this software does not accurately generate all MHSes.
The implementation is provided in the [`compsysmed/partran`](//hub.docker.com/r/compsysmed/partran) container in the [`partran`](partran/) directory under the terms of the authors' license.
You can run this container online on the [Algorun server](http://partran.algorun.org).

### KNUTH
An algorithm based on ZDD representations of hypergraphs or boolean functions.
Expand Down
2 changes: 0 additions & 2 deletions containers/agdmhs/src/mhs
Expand Up @@ -91,8 +91,6 @@ def main():
transversals = (map(int, line.split()) for line in temp_output_file)

results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/bmr/src/mhs
Expand Up @@ -59,8 +59,6 @@ with tempfile.NamedTemporaryFile() as temp_input_file:
temp_output_file.seek(0)
transversals = (map(int, line.split()) for line in temp_output_file)
results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/dl/src/mhs
Expand Up @@ -59,8 +59,6 @@ with tempfile.NamedTemporaryFile() as temp_input_file:
temp_output_file.seek(0)
transversals = (map(int, line.split()) for line in temp_output_file)
results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/fka-begk/src/mhs
Expand Up @@ -75,8 +75,6 @@ with tempfile.NamedTemporaryFile() as temp_input_file:
lineprocessor = lambda line: [i for (i, c) in enumerate(line.split(), start=1) if c=='1']
transversals = (lineprocessor(line) for line in temp_output_file)
results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 1 addition & 1 deletion containers/hbc/algorun_info/output_example.txt
@@ -1 +1 @@
{"guaranteedComplete": true, "transversals": [[2], [3, 4], [4, 5]], "timeTaken": 0.002045721, "guaranteedMinimal": true, "sets": [[1, 2, 5], [3, 2, 4], [1, 3]]}
{"transversals": [[2], [3, 4], [4, 5]], "timeTaken": 0.002045721, "sets": [[1, 2, 5], [3, 2, 4], [1, 3]]}
2 changes: 0 additions & 2 deletions containers/hbc/src/mhs
Expand Up @@ -63,8 +63,6 @@ with tempfile.NamedTemporaryFile() as temp_input_file:
next(temp_output_file)
transversals = (map(int, line.split()) for line in temp_output_file)
results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/htcbdd/src/mhs
Expand Up @@ -76,8 +76,6 @@ with tempfile.NamedTemporaryFile() as temp_input_file:
transversal_lines = temp_output_file.readlines()
transversals = (map(int, line.split()) for line in transversal_lines)
results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/ks/src/mhs
Expand Up @@ -80,8 +80,6 @@ def main():
transversals = (transversals_from_output_file(temp_output_file))

results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/mhs2/src/mhs
Expand Up @@ -86,8 +86,6 @@ with tempfile.NamedTemporaryFile() as temp_input_file:
lineprocessor = lambda line: sorted(map(int, line.split()[:-1]))
transversals = (lineprocessor(line) for line in temp_output_file if line[0] != '0')
results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/ocsanamhs/src/mhs
Expand Up @@ -78,8 +78,6 @@ def main():
transversals = (map(int, line.split()) for line in temp_output_file)

results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
4 changes: 1 addition & 3 deletions containers/partran/src/mhs
Expand Up @@ -87,12 +87,10 @@ def main():

# Process the results
temp_output_file.seek(0)
transversal_lines = temp_output_file.readlines()[:-1]
transversal_lines = temp_output_file.readlines()
lineprocessor = lambda line: [i+1 for (i, c) in enumerate(line) if c=='1']
transversals = map(lineprocessor, transversal_lines)
results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/primdecomp/src/mhs
Expand Up @@ -103,8 +103,6 @@ def main():
transversals = list(output_file_sets(temp_output_file))

results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 0 additions & 2 deletions containers/pymbd/src/mhs
Expand Up @@ -77,8 +77,6 @@ total_time = float(stats['total_time'])
results = input_json
results['transversals'] = formatted_hs
results['timeTaken'] = total_time
results['guaranteedMinimal'] = False
results['guaranteedComplete'] = True
results['algName'] = algarg

# Write the results to the output file
Expand Down
2 changes: 0 additions & 2 deletions containers/shd/src/mhs
Expand Up @@ -90,8 +90,6 @@ with tempfile.NamedTemporaryFile() as temp_input_file:
transversal_lines = temp_output_file.readlines()
transversals = (map(int, line.split()) for line in transversal_lines)
results = input_json
results["guaranteedMinimal"] = True
results["guaranteedComplete"] = True
results["transversals"] = transversals
results["timeTaken"] = time_taken

Expand Down
2 changes: 1 addition & 1 deletion correctness-test.py
Expand Up @@ -91,7 +91,7 @@
result_str = alg.run_alg(args.test_data_file, 600)
result = json.loads(result_str)
except ValueError:
errormessage = "Algorithm {0} returned invalid JSON: {1}".format(newname, algresult)
errormessage = "Algorithm {0} returned invalid JSON: {1}".format(newname, result_str)
raise RuntimeError(errormessage)

# Store the transversals as sets in a set for easy equality testing
Expand Down

0 comments on commit d40471a

Please sign in to comment.