cuiksort.c File Reference

Detailed Description


Continuous solution sets need to be sorted for for its animation to be smooth. Moreover, when sorting the boxes we determine the number of connected components of the solution set.

This code and its dependencies (llist.h, llist.c, glr.h, glr.c, general.h) are not documented using doxygen but directly in the code because they come from old developments.

Definition in file cuiksort.c.


int main (int argc, char **arg)
 Main body of the cuiksort application. More...

Function Documentation

int main ( int  argc,
char **  arg 

Main body of the cuiksort application.


  • cuiksort base_name topology trav_mode step_size


  • base_name: The name of the .sol file without the extension
  • topology: May be 'r' (for Rn topology) or 't' (for torus topology). Optional. The default value is 'r'.
  • trav_mode: May be 'd' (depth 1st) or 'c' (for cycles) or 'u' (for unordered). Optional. The default value is 'd'.
  • step_size: Stepsize used when printing the boxes of a walk to a file. Optional. The default value is '1'.

If one of the optional parameters is given then all the previous parameters need to be given too.

argcNumber of elements in the command line that starts the application (i.e., the cuiksort command itself and its arguments).
argStrings with the arguments.
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 578 of file cuiksort.c.

References CreateFileName(), DeleteFileName(), Error(), GetFileFullName(), ListSize(), PrintBox(), ReadListOfBoxes(), and SOL_EXT.