Chat with us, powered by LiveChat You are going to create a program that has two matrices depicting two separate directed graphs - EssayAbode

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

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

Full marks

0 pts

No marks

5 pts

This criterion is linked to a Learning OutcomeDescription of criterionCode that properly multiplies two matrices.

5 pts

Full marks

0 pts

No marks

5 pts

This criterion is linked to a Learning OutcomeDescription of criterionCode that outputs the new matrix (created by multiplying two matrices).

5 pts

Full marks

0 pts

No marks

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

Full marks

0 pts

No marks

5 pts

Total Points: 20

Related Tags

Academic APA Assignment Business Capstone College Conclusion Course Day Discussion Double Spaced Essay English Finance General Graduate History Information Justify Literature Management Market Masters Math Minimum MLA Nursing Organizational Outline Pages Paper Presentation Questions Questionnaire Reference Response Response School Subject Slides Sources Student Support Times New Roman Title Topics Word Write Writing