Purchase Solution

Determine coding matrix using java

Not what you're looking for?

Ask Custom Question

Coding Theory Program
--------------------------------------------------------------------------------
I have attached the specifications --> Program2.doc. I need it written in Java.
I have also attached --> Program 2 Defined
This will help with understanding the program.

The words must be generated using matrix multiplication

For a reference to matrix multiplication read the attached pdf. Also I have completed the algorithm for the matrix multiplication in the attached document --> Full Matrix Multiplication Algorithm.

***Extra info for reference only***:
I attempted the program on the malmut.pdf without success because I could not figure it out. Basically program2 is an extension of the first.

Purchase this Solution

Solution Summary

The expert determines the coding matrix using java. The specification of programs defined are determined.

Solution Preview

Please see the attached files.

I am sending you classfile, codingprogram.java file, one codingprogram.doc file.

codingprogram.doc file contains all the documentation and the procedure followed

import java.io.*;

public class codingprogram{
public static void main(String[] args)
{
int[][] generatingmatrix = new int[7][11];
int[][] codewords = new int[7][11];
int[][] distancemeasured = new int[7][7];
int[] mw = new int[7];
int num,count,i,k,j,sum,inc,first,second,mindistance,distance;

System.out.println("");
System.out.println("");
/* print your name here */
System.out.println(" GAYATRI ");
System.out.println("");
System.out.println("");
/* The following code is used to input Generating matrix */
for(i=0;i<7;i++)
for(j=0;j<11;j++)
if (i==j) generatingmatrix[i][j] = 1;
else generatingmatrix[i][j] = 0;
for(i=0;i<5;i++)
generatingmatrix[i][7] = 1;
for(i=2;i<7;i++)
generatingmatrix[i][10] = 1;
generatingmatrix[2][8] = 1;
generatingmatrix[5][8] = 1;
generatingmatrix[6][8] = 1;
generatingmatrix[1][9] = 1;
generatingmatrix[3][9] = 1;
generatingmatrix[6][9] = 1;
System.out.println("The given ...

Purchase this Solution


Free BrainMass Quizzes
Exponential Expressions

In this quiz, you will have a chance to practice basic terminology of exponential expressions and how to evaluate them.

Know Your Linear Equations

Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.

Solving quadratic inequalities

This quiz test you on how well you are familiar with solving quadratic inequalities.

Graphs and Functions

This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.

Geometry - Real Life Application Problems

Understanding of how geometry applies to in real-world contexts