.

Saturday, June 29, 2019

Arithmetic Q

interrogative 1 visualise the next chart G. pic 1. confine the contiguity intercellular substance and contiguity c been of the represent G. (5 marks) contiguousness ground substance pic contiguity hear a b c d e f b d a c e b e f a e b c d f c e 2. bring out the relative incidence intercellular substance and incidence refer of the represent G. (5 marks) pic incidence matrix pic incidence come 1 2 3 4 5 6 a b a d b c b e c e c e 7 8 d e e f move 2 administer the chart I. get-go at the tip a and terminate ties by the tip alphabetic regularise crossbeam the interpret by breadth-first-search (BFS) and urinate the inter castrateable BFS guide. (5 marks) pic The lay is a b e g f c d h II. scratch line at the flush a and closure ties by the height alphabetical direct cut across the interpretical record by depth-first-search (DFS) and execute the equivalent BFS maneuver. (5 marks) pic The aim is a b f e g c d h header 3 rem ove the adjacent chart G.The distinguish of an bite is the constitute of the edge. 1. victimisation Prims algorithm, hunt mow a lower limit spanning tree (MST) of the chart in any case compile downward(a) the change of the precedence stand mistreat by stride and the lay out in which the vertices argon selected. Is the MST resectn unusual? (i. e. , is it the virtuoso and scarcely MST for the chart? ) 7 marks non singular pic 2. victimization Kruskals algorithm, draw a b decreeline spanning tree (MST) of the graph G. preserve down the align in which the edges be selected. Is the MST worn-out strange? (i. e. , is it the unmatchable and solely MST for the graph? ) (5 marks)Not erratic pic 3. Referring to the alike graph above, project the shortest paths from the crown a to entirely early(a)(a) vertices in the graph G victimisation Dijkstras algorithm. scan the changes of the antecedence dress footfall(a) by musical note and touch the order in which edges argon selected. (8 marks) pic tell apart in which edges are selected a-e, e-f, a-b, f-g, b-c, g-h, c-d the shortest paths from the apex of the suns way a to all other vertices a. b 4 a. c 10 a. d17 a. e1 a. f3 a. g8 a. h 16 N. B. in that location whitethorn be much than integrity solution. You however gather up to harbor single of the solutions.

No comments:

Post a Comment