0% found this document useful (0 votes)
38 views8 pages

Decision Paper Speciemen

The document contains a series of mathematical and algorithmic problems related to sorting, graph theory, project management, linear programming, and network analysis. Each question requires the application of specific algorithms or methods to derive solutions, including quick sort, Dijkstra's algorithm, and the Simplex algorithm. The total marks for the paper are 75, with detailed instructions for each question.

Uploaded by

akshajendertech
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views8 pages

Decision Paper Speciemen

The document contains a series of mathematical and algorithmic problems related to sorting, graph theory, project management, linear programming, and network analysis. Each question requires the application of specific algorithms or methods to derive solutions, including quick sort, Dijkstra's algorithm, and the Simplex algorithm. The total marks for the paper are 75, with detailed instructions for each question.

Uploaded by

akshajendertech
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Answer ALL questions. Write your answers in the spaces provided.

1.
6 1 9 14 18 7 10 4 17 13

(a) The list of numbers shown above is to be sorted into descending order. Apply the
quick sort algorithm to obtain the sorted list. You must make your pivots clear.
(3)
(b) Apply the first‑fit decreasing bin packing algorithm to your ordered list to pack the
numbers into bins of size 30
(2)
(Total for Question 1 is 5 marks)
___________________________________________________________________________

2.

(a) Write down the number of arcs in a minimum spanning tree for the graph shown in
Figure 1.
(1)
(b) Determine the minimum number of arcs that would need to be added to make the
graph semi‑Eulerian. You must justify your answer.
(2)

Taking AFGHBCDEA as the Hamiltonian cycle,

(c) use the planarity algorithm to determine whether or not the graph shown in Figure 1
is planar. You must make your working clear and justify your answer.
(3)
(Total for Question 2 is 6 marks)
___________________________________________________________________________
3.

Figure 2 represents a network of train tracks. The vertices A, B, C, D, E, F, G and H


represent train stations.

(i) The number on each edge represents the time, in minutes, to travel on the
corresponding track.

(a) Use Dijkstra’s algorithm to find the time required to travel the quickest route
from A to H.
(4)

A train is to travel from A to F via H without stopping.

(b) Find the quickest route from A to F via H. State the route and the time taken.
(2)

A train is to travel from A to H, stopping for 1 minute at each train station it passes
through on its route.

(c) Explain how you would adapt the network so that Dijkstra’s algorithm could be
used to find the quickest route for this train. You do not need to find this route.
(2)
(ii) The number on each edge now represent the length, in km, of the corresponding
track. A route that starts at C, finishes at G and traverses each track at least once
needs to be found.

(a) Use an appropriate algorithm to find the length of the shortest route. You must
make your method clear.
(4)
(b) State the tracks that will need to be traversed twice.
(1)
(Total for Question 3 is 13 marks)
___________________________________________________________________________
4. The table below lists the durations (in minutes), the immediate preceding activities and
the number of workers required for each activity in a project.

Duration Immediate preceding Number of


Activity
(minutes) activities workers
A 20 ‑ 1
B 15 ‑ 1
C 35 ‑ 2
D 10 C 1
E 35 A 1
F 20 A 2
G 10 A, B, D 1
H 25 C 1
I 30 E 1
J 20 E, F, G, H 2

The project is modelled by the activity network shown in Figure 3. The activities are
represented by the arcs. The project is to be completed in the shortest possible time.

(a) (i) Calculate the early time and the late time for each event, using Diagram 1 in the
answer book.

(ii) Determine the minimum project completion time.

(iii) Identify the critical activities.


(5)
(b) On Grid 1 in the answer book, draw a resource histogram to show the number of
workers required at each time when each activity begins at its earliest possible start time.
(3)
(c) Determine whether or not the project can be completed in the minimum possible
time by at most four workers. You must justify your answer with reference to your
resource histogram.
(2)
(Total for Question 4 is 10 marks)
___________________________________________________________________________

5. Dale is planning a production run of three types of desk. The three types are lectern desk,
roll top desk and writing desk.

In total, Dale has 400 m2 of wood available; each lectern desk requires 3 m2, each
roll top desk requires 5 m2, and each writing desk requires 8 m2

In total, Dale has 350 hours available; each lectern desk requires 3 hours, each
roll top desk requires 6 hours, and each writing desk requires 10 hours.

Once complete, the desks need to be stored in a warehouse. The warehouse has 75 m3 of
storage space available; each lectern desk requires 1 m3, each roll top desk requires 1.5 m3
and each writing desk requires 1.25 m3

The profit on each lectern desk sold is £40, the profit on each roll top desk sold is £50
and the profit on each writing desk sold is £65

Dale wants to maximise his profit.

Let x, y and z be the number of lectern desks, roll top desks and writing desks made
respectively during the production run.

(a) Formulate this situation as a linear programming problem, giving your constraints as
inequalities.
(4)
(b) Complete the initial tableau in the answer book for this linear programming problem.
(2)
(c) Taking the most negative number in the profit row to indicate the pivot column,
perform one complete iteration of the Simplex algorithm. Give an explanation of the
method by clearly stating the row operations you use.
(4)

After a second iteration, the exact values in the tableau are

b.v. x y z s1 s2 s3 Value
s1 0 −0.52 0 1 −0.68 −0.96 90
z 0 0.24 1 0 0.16 −0.48 20
x 1 1.2 0 0 −0.2 1.6 50
P 0 13.6 0 0 2.4 32.8 3300
(d) Use algebra to explain how you know that this tableau is optimal.
(1)
(e) (i) State the optimal number of each type of desk that should be made.

(ii) State the maximum total profit.


(2)
(f) Explain, in context, the meaning of the 90 in the value column.
(2)
(g) Give a reason why the profit may be less than the value stated in (e)(ii).
(1)
(Total for Question 5 is 16 marks)
___________________________________________________________________________
6.

The network in Figure 4 shows the direct routes linking five towns, A, B, C, D and E.
The edge weights represent distances, in km, between the towns.

(a) For this network, complete the initial distance and route tables provided in the
answer book.
(2)
(b) Perform the first and second iterations of Floyd’s algorithm. You should show the
distance table and the route table after each iteration.
(4)

The final tables after five iterations of Floyd’s algorithm are shown below.

Distance table Route table


A B C D E A B C D E
A – 3 5 9 10 A A B B D C
B 3 – 2 8 7 B A B C C C
C 5 2 – 6 5 C B B C D E
D 9 8 6 – 4 D A C C D E
E 10 7 5 4 – E C C C D E

(c) Draw the complete network of shortest distances.


(2)
(d) (i) Use the nearest neighbour algorithm, starting at vertex E, to produce a
Hamiltonian cycle for the complete network.

(ii) Write down the length of the Hamiltonian cycle.


(2)
(e) Interpret the Hamiltonian cycle from (d) in terms of the towns actually visited.
(1)
(f) Starting by deleting A from the complete network of shortest distances, and all of its
edges, find a lower bound for the solution to the Travelling Salesman problem.
(2)
(g) Use your results to write down the smallest interval that you can be confident
contains the optimal solution to the Travelling Salesman problem.
(2)
(Total for Question 6 is 15 marks)
___________________________________________________________________________
7.

Figure 5 shows the constraints of a maximisation linear programming problem in x and y,


where R is the feasible region. An objective line is also shown and labelled on Figure 5.

A student decides to find the optimal vertex of R by using the two‑stage Simplex algorithm.

Set up an initial tableau for the two‑stage Simplex algorithm. (You should not solve the
linear programming problem.)
(Total for Question 7 is 10 marks)
___________________________________________________________________________
TOTAL FOR PAPER IS 75 MARKs

You might also like