COMP1927 13s1 | COMP1927 13s1 Final Exam | Computing 2 |

[Q1] [Q2] [Q3] [Q4] [Q5] [Q6] [Q7] [Q8]

Consider the following weighted, undirected graph:

Answer the following questions using this graph:

Show the order in which vertices would be visited if we carried out a breadth-first search

- starting from vertex
`a` - visiting all vertices once
- selecting neighbours based on descending vertex order

(i.e. using reverse alphabetical order (*highest*to lowest)) - ignoring weights

- starting from vertex
Show the order in which vertices would be visited if we carried out a breadth-first search

- starting from vertex
`a` - visiting all vertices once
- selecting neighbours in edge-weight order

(i.e. using lowest-to-highest costs on the edges)

- starting from vertex

Show your working by giving the intermediate states of the vertex queue and "visited" set in both cases.

**Bonus question** (1 mark)
(the mark is in addition to the full 65 marks available for the rest of the exam)

What is the name of the former CSE Professor who was renowned for teaching his Operating Systems course using the Unix source code?

Type the answer to this question into the file called
`q9.txt` and submit it using the command:

submit q9