b-kremser / ParityCheckApplication

This application calculates valid codewords for a given parity check matrix and can give additional insights into the associated code's properties

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ParityCheckApplication

This application calculates valid codewords for a given parity check matrix and can provide useful information about the associated code

Features

  • Compute Generator Matrix
  • Generate all valid codewords
  • Calculate Hamming Distance
  • Give insights into the code's properties

How to Use

There are two main ways to use this application.

  • Run it in your favorite IDE: Navigate to Application.java and run the main method. You can either pass your arguments in args[] or you can edit the hard-coded values at the beginning of the main method. If no arguments can be parsed from args[], the hard-coded values will be used for the calculations.
  • Open the .jar-file from the command line: After navigating to the root directory, you can write java -jar Parity-Check-Matrix-1.2.1.jar to run the application. The parity-check-matrix and a limit for possible values can be added to the command by simply attaching them to the end of the command.
The application has two arguments that can be passed: the parity-check-matrix and the limit. The parity-check-matrix should be given as a string, following either Latex or Wolfram Alpha syntax. The limit describes the upper bound of possible values in the words, codewords and the parity-check-matrix. Oftentimes those values can only be in F_2={0,1}; in that case limit = 2. If no limit is specified, limit=2 will be used.

Example inputs

  • java -jar Parity-Check-Matrix-1.2.1.jar This runs the application with the hard-coded values as parameters
  • java -jar Parity-Check-Matrix-1.2.1.jar "{{1,1,1,1,1}}" This runs the application with the parity-check-matrix {{1,1,1,1,1}} and the standard limit of 2
  • java -jar Parity-Check-Matrix-1.2.1.jar "{{1,1,1,1,1}}" 4 This runs the application with the parity-check-matrix {{1,1,1,1,1}} and a limit of 4 which means 0, 1, 2 and 3 are possible values (eg. in a codeword)
  • java -jar Parity-Check-Matrix-1.2.1.jar "\begin{pmatrix} 1&1&1&1&1 \end{pmatrix}" 4 This works just like the previous example but uses Latex syntax instead of Wolfram Alpha syntax for the matrix
  • java -jar Parity-Check-Matrix-1.2.1.jar solveWholeExam This will probably not work, but I'm not sure as I haven't tried it yet!

About

This application calculates valid codewords for a given parity check matrix and can give additional insights into the associated code's properties


Languages

Language:Java 100.0%