Skip to content

Unix lexicographic sort. Made with java and red-black Trees as data structure to sort in O(log(n)) time.

License

Notifications You must be signed in to change notification settings

richardfm77/unix-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

unix-sort.

Unix lexicographic sort. Developed with java and red-black Trees as data structure to sort in O(log(n)) time.

With proprietary implementations of data structures, which meet the complexity in time and space.

Prerequisites.

The program makes use of the MAVEN 3.8.6 or higher packager.

  • Linux.
  https://maven.apache.org/download.cgi
  1. Clone the repository.
   git clone https://github.com/richardfm77/unix-sort.git
   cd unix-sort/proyecto1
  1. Compile.
   mvn compile
  1. Run tests.

It is necessary to keep the txt files for the tests to work correctly.

   mvn test

Start program.

  • Installation of the files .jar.
   mvn install
  • Execution for reading unix standard input.
   java -jar target/proyecto1
  • Execution for reading one or more files.
   java -jar target/proyecto1 [file1] [file2] ...

Flags.

  • The flag -o allows you to redirect the standard output to a file.

It is used with the parameter -o followed by the directory and name of the output file.

Warning: the operation is destructive and it is understood that the user knows what he is doing.

For example:

   java -jar target/proyecto1 [file1] -o [fileOutput]
  • The flag -r allows the output to be displayed in reverse.

It is used with the parameter -r.

For example:

   java -jar target/proyecto1 [file1] -r

Flags can go anywhere in the parameters, and can be used and adapted as required.

About

Unix lexicographic sort. Made with java and red-black Trees as data structure to sort in O(log(n)) time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages