forked from Gregable/pq-trees
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
35 lines (26 loc) · 1.45 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
A C++ implementation of Booth & Lueker's PQ-Tree algorithm.
Kellog S. Booth, George S. Lueker, Testing for the consecutive ones property,
interval graphs, and graph planarity using PQ-tree algorithms, Journal of
Computer and Systems Sciences, 13(3) (1976) 335-379.
IMPORTANT NOTE: This code currently is known to be buggy on some rare inputs. A believed to be correct, but harder to use version of this code can be found as a library within BiVoC: https://bioinformatics.cs.vt.edu/~murali/papers/bivoc/
Description of files:
The main file for this library is pqtree.h. It contains an API that can be
used by client code for dealing with PQ-Trees. There are two binaries:
fuzztest and pqtest.
pqtest runs the pqtree code for one example set of reductions on a single tree, printing the state of the tree at every step. This illustrates how the pqtree is built.
fuzztest generates a large random set of possible reductions and runs them
against the library making sure that it never returns false or segfaults.
Usage:
Primarily, this is intended to be used as a library, not a binary. But you can
still compile and run the binaries |pqtest| and |fuzztest|. My personal
recommendation would be to compile with scons, http://scons.org/. To do so,
run:
$ scons
$ ./fuzztest
$ ./pqtest
Alternatively, I also handily include the tried and true MakeFile, so if you
don't have scons on your system and don't feel like installing it, instead just
run:
$ make
$ ./fuzztest
$ ./pqtest