Algorithm Questions

Description

Algorithm Questions
Doc Boff
Slide Set by Doc Boff, updated more than 1 year ago
Doc Boff
Created by Doc Boff about 7 years ago
0
0

Resource summary

Slide 1

Slide 2

    Answer
    DE 6 AC 8 AD 10 FG 11 BE 12 CF 16 6+8+10+11+12+16 = 63 , so minimum length = 63   Note the graph should be drawn again in the order of the above for maximum marks and highlighted on the original

Slide 3

Slide 4

    Answer
    GH 5 , EG 7 , HJ 8 , BE 10 , BD 11 , HI 14 , DC 15 , AC 6 , FJ 19 , HK 22 5+7+8+10+11+14+15+6+19+22 = 117 , so minimum length = 117        

Slide 5

    Prim's (Adjacency Matrix)
    Caption: : Here is an Adjacency Matrix for a graph. Find the minimum length of a spanning tree and draw the spanning tree

Slide 6

    Answer
    Select A first and circle it (note down a number 1 next to it as well) Cross out row A Select minimum value below that circled value (so 100). 100 is in row F, so circle F and note down a number 2 near it Cross out row F Select minimum value below that circled value and the previous circled value(s) (so 80) Repeat for all rows: 100 + 80 + 80 + 180 + 230 = 670 Minimum length = 670

Slide 9

Slide 10

    Answers (left to right)
    1. PS 17 , SU 23 , UQ 35 , QR 30 , RT 27 , TP 44 , sum = 176. Therefore cycle PSVQRTP = 176 (upper bound) 2. Cycle = AEBDCA, total = 70+35+65+85+30 = 285 3. Shortest route from A to D = 9 and shortest route from B to D is 5 ; AB 4 , BC 2 , CD 3 , DA 9 , sum =18. This cycle is ABCDA, but the actual route is ABCDCBA (as DA is actually DCBA as DA isn't really there) 4. Fill in matrix (note that if there is no direct route, the shortest possible journey for that route is chosen) , cycle = ABEDCA , total = 23 , actual route = ABEDCDA

Slide 11

Show full summary Hide full summary

Similar

GCSE Subjects
KimberleyC
Trigonometry and Geometry
Winbaj08
Matrix Algebra - AQA FP4
kcogman
Matricies
Winbaj08
CORE
Winbaj08
Level 2 Further Mathematics - AQA - IGCSE - Matrices
Josh Anderson
Graph Theory
Luke Byrne
GCSE Subjects
Jeb7
WJEC FP3
Joshua Butterwor
Practice Exam Links
a.chipmann