Theory of Computing

Instructions This practical is longer than last week's and you are encouraged to do the work in pairs. You and your prac partner must have the same tutor. Please hand in only one submission per pair. You are free to divide the work as you see fit. As this is the last practical you are to required to submit it in the CS2 submissions box by 5:00pm on Saturday 27 May. Random Graphs Example code is provided which will generate random, weighted, directed graphs. These graphs are available in a matrix format, or as a list of edges. In addition it is possible to specify a seed number so that the same random graph is always generated. You will find the code useful for the first two questions.