# FreeBSD Manual Pages

ALGOTUTOR(1) User Contributed Perl Documentation ALGOTUTOR(1)NAMEalgotutor - an interactive program for observing the intermediate steps of algorithms.SYNOPSISalgotutor[OPTION] ...DATA...DESCRIPTIONalgotutor is an interactive program for observing the intermediate steps of algorithms. The target audience is computer science students and/or anyone who studies algorithms and/or data structures. One can create data files in plain text format (actually perl anonymous hashes, but one need not care) and let algotutor runs through some predefined algorithm. Then one can step backward and forward through the execution sequence of the algorithm at different levels of details. It requires perl-Tk.DATAis the input data. For the dynamic programming algorithms such as lcs and matc, please see the respective entries in the following list; for other algorithms, it is the file name containing the actual input data.OPTIONS-aALGORuns the algorithm ALGO. Currently ALGO can be one of:bstoperations on binary search treesrbtoperations on red-black trees (remove()is not implemented yet)heapoperations on heaps -- the remove operation on a heap always removes the top element regardless of the argumentsbsstack-based search on graphs, a variant of depth first searchbfsbreadth first search on graphsprimPrim's minimal spanning tree on graphsdijkDijkstra's single-source shortest path on graphsflwaFloyd-Warshall's all-pair shortest path on graphs (very, very slow)dom2-dimensional point dominationgrahamGraham's scan for convex hulllcslongest common subsequence -- it requires two strings as the command line arguments. For example, "algotutor -a lcs AGCTATACGAT- GACT GTCAGTATAGTCATATG"matcoptimal matrix chain multiplication -- it requires an alter- nating sequence of integers and matrix names as the command line arguments. For example, "algotutor -a matc 32 A 35 B 24 C 30 D 36 E 25 F 40 G 34 H 35" means finding the optimal multiplication se- quence of the chain of matrices: A of size 32 by 35, B of size 35 by 24, ... H of size 34 by 35.-sVERTEXUse VERTEX as the starting vertex (for sbs, bfs, prim, and dijk)-iSTEPDisplay step STEP as the initial image.-dFILENAMEDump the picture into FILENAME as a ps file and exit immediately without going into interactive mode.LICENSEThis code is distributed under the GNU General Public LicenseAUTHORChao-KueiHungckhung AT ofset DOT orgSEE ALSOPlease see /usr/share/doc/algotutor/doc/ for examples and the full set of documentations. perl v5.8.7 2007-04-09 ALGOTUTOR(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | LICENSE | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:

<https://www.freebsd.org/cgi/man.cgi?query=algotutor&sektion=1&manpath=FreeBSD+12.1-RELEASE+and+Ports>