You are going to create a program that has two matrices depicting two separate directed graphs
You are going to create a program that has two matrices depicting two separate directed graphs. You will multiply the two matrices (Book 6.6.2). Then you will print out the new matrix and tell me the number of connections within the matrix (add up the values inside the matrix).
There can be more than 1 connection between vertices.
There are 4 vertices in this directed graph. We know that because there are 4 rows and 4 columns. If there is a 1 that means that the vertex on the left (you need to name them) has an arrow edge towards the vertex on the top. If there is a 0 that means there are no edges from the vertex on the left to the top vertex.
Matrix 1:
1 | 0 | 0 | 1 |
0 | 1 | 0 | 1 |
0 | 0 | 1 | 0 |
1 | 1 | 1 | 0 |
Matrix 2:
0 | 1 | 1 | 1 |
1 | 1 | 0 | 1 |
0 | 1 | 0 | 1 |
1 | 0 | 1 | 0 |
– Make sure to program the matrices into your code.
– Output the new matrix created when you multiplied them.
– Output the number of connections within the directed graph being depicted by the new matrix.
Rubric
Relations/Digraphs Rubric
Criteria | Ratings | Pts | ||
---|---|---|---|---|
This criterion is linked to a Learning OutcomeDescription of criterionWriting code that can make and store matrices. |
|
5 pts |
||
This criterion is linked to a Learning OutcomeDescription of criterionCode that properly multiplies two matrices. |
|
5 pts |
||
This criterion is linked to a Learning OutcomeDescription of criterionCode that outputs the new matrix (created by multiplying two matrices). |
|
5 pts |
||
This criterion is linked to a Learning OutcomeDescription of criterionCode that outputs the number of connections (arrows) between vertices in a directed graph. |
|
5 pts |
||
Total Points: 20 |
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.