12 Aug 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 |
||||
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.