Knot Floer homology calculator
This is a companion for the papers Bordered knot algebras
with matchings and Algebras with matchings and knot Floer homology
by Peter Ozsváth and
The program uses Planar Diagrams for knots.
For example Trefoil = PD[X[4,2,5,1], X[2,6,3,5], X[6,4,1,3]]
The X and the extra brackets are optional, the program will look for the PD start
and then read in the integers separated by other char, so
will also work.
The current version requires knot diagrams that cannot be simplified with Reidemeister 1 moves.
A version for links will also be available later.
You can give it several knots, just include PD in front of each; e.g.
g++ -std=c++11 -O3 Main.cpp Utility.cpp Min.cpp Max.cpp Crossing.cpp Simplify.cpp HomologyRank.cpp Report.cpp Diagrams.cpp Alternating.cpp KnotFloer.cpp
It uses C++11, and will produce an a.out file.
Run it with ./a.out (depending on your setup a.out may also work).
It will ask for the name of an input file and a prime number p.
The answer will print on the screen, and to inputfile.modp, together
with additional info to inputfile.modp.Morse.
The second file contains a Morse presentation of the knot (that the program found and
used for the planar diagram).
In the Morse presentation minimums are always added on the left. Max(i) indicates that the maximum was
added to create the strands i and i+1. Crossing n means right-handed twist between strands n and n+1, and -n
the left handed twist.
Alternating projections are handled differently; the homology groups are
computed from the Alexander polynomial and signature.
For example Torus34.txt and 7
will result in two output files:
Click here to download.