You are on page 1of 1

Lecturer: Dr. Jozsef Katona Date: ................................................................

Course code: DFAN-ISF-213-EN Student’s name: ..............................................


Course name: Programming 1 NEPTUN code:..............................................
Type of test: Written Signature: ........................................................
Time to finish: 1 week

TASK DESCRIPTION:
Design and implement an application that upload a matrix double stochastically. A matrix is stochastic
regarding its rows, if its elements are non-negative and every row amount is 1, while regarding its columns,
it is stochastic, if its elements are non-negative and every column amount is 1. If a matrix is stochastic
both regarding its rows and columns, it is called double stochastic. It is advised to use a homogeneous
matrix as a starting point, which can be implemented by dividing 1 by the number of columns of the
matrix. After creating the homogeneous matrix, select 4 points randomized, which should be the indexes
of the matrix. So there should be a x1, x2, y1, and y2. Select the lowest value from the four values, then
generate a random number between the lowest value and zero. Subtract the generated number from the
number selected by two random coordinates, then add it to the number selected by two other random
coordinates. The row and column amount of the matrix will always be one this way. Do this operation
approximately one thousand times to build the matrix up of a wide range of random numbers. After
generating, implement checking, and display the matrix and its row and column amounts.

Any excipients can be ued, however in case of two identical required projects (both for the author and
the plagiarist) the did not fulfill registration will be written in the electronic index automatically. The
deadline of submitting your required project is 1 week from disclosure.

You might also like