The Student Room Group

OCR (NOT MEI) - D1 Exam - January 2012

Scroll to see replies

Original post by BenUny
I got something like 998 for the upper bound, and looking at the previous post that's wrong. poop.

Did people x=6 for the simplex?


yep got x =6 , y=0 and z = 0
Reply 21
I got 970 as the upper bound. Then for the 8 marker i got 876 as the two things i got were FAD and CEB. The route I then got was CEBDAFB as BD and BF were the two shortest that connected the two?

Can someone explain this to me?
Reply 22
Original post by StrangeCloud
Part a my outputs were 8, 2, 1 and 0
Part b algorithm never terminated


I didn't get an output of 0? As you had to change B by a value. Then check whether it terminates. B was 0 so the output never actually equaled 0?
Reply 23
Original post by StrangeCloud
yep got x =6 , y=0 and z = 0


I got x=6 too. For the next question i put 10 blue bags. As I went through each of the 6 potential pivots in the y and z column. The only one that gave a value of 10 was the 3/5 in the z column?
Original post by BenUny
I got something like 998 for the upper bound, and looking at the previous post that's wrong. poop.

Did people x=6 for the simplex?


yeah i got x=6, y=0 and z=0 :smile: what did you put for the last part of this question? think it was only a one marker but I got confused :frown:
Reply 25
I've amended the mistake in 5v and added in the better answer for 4iv - thanks.
1. Shuttle sort with 8 passes, 26 comparisons and 21 swaps.
2. i) 5 arcs e.g. all outer arcs except one
ii) 15 arcs complete graph - all pairings connected exactly once
iii) All vertices must have an even order, so we need to reduce each vertex order by 1. If we pair the 6 vertices into 3 pairs, we can remove the arc joining each pair and all vertices will be of order 4. So 12 arcs.
iv) It is semi-Eulerian as there are exactly two nodes of odd order: F and D. E.g. FABECAD
3. i) ACBDF weight 13
ii) 38+6=44
iii) Duplicate AC and DF 38+7=45
4. i) x represents the number of red bags
ii) 3x+7y+6z represents the total number of sweets need, where x,y,z represent the number of red, yellow and blue bags respectively


and x,y,z are integers
iv) Assume that she has enough party bags of each colour - or - Assume that she sells them all.
v)
P x y Z s t u RHS
1 -1 -1 -1 0 0 0 0
0 3 7 6 1 0 0 80
0 5 4 6 0 1 0 40
0 5 2 3 0 0 1 30
vi) Ratios: sweets 26.7, balloons 8, toys 6
P x y z s t u RHS
1 0 -0.6 -0.4 0 0 0.2 6
0 0 5.8 4.2 1 0 -0.6 62
0 0 2 3 0 1 -1 10
0 1 0.4 0.6 0 0 0.2 6
x=6, y=0, z=0, so 6 red bags and no others
vii) 10 yellow bags
5. i) completed network
ii) total weight 563
iii) 563+50+59=672
iv) 970
v) FAD = 435, CEB = 278
total weight 967, route such as FADBECF
6. i)
A B C D E F Output
10 128 12.8 12 120 8 8
10 12 1.2 1 10 2 2
10 1 0.1 0 0 1 1
10 0
ii)
A B C D E F Output
10 -13 -1.3 -2 -20 7 7
10 -2 -0.2 -1 -10 8 8
10 -1 -0.1 -1 -10 9 9
10 -1 -0.1 -1 -10 9 9
The algorithm will continue to repeat.
(edited 12 years ago)
Original post by dybydx
I did this quickly after the exam, but I haven't been through them to check them, but my answers are below. I might have some of the numbering wrong, and by the sounds of it, I've got one wrong, as I got 922 not 967. I normally get some basic arithmetic wrong on D1, so take these with a pinch of salt. Let me know what to correct.

1. Shuttle sort with 8 passes, 26 comparisons and 21 swaps.
2. i) 5 arcs e.g. all outer arcs except one
ii) 15 arcs complete graph - all pairings connected exactly once
iii) All vertices must have an even order, so we need to reduce each vertex order by 1. If we pair the 6 vertices into 3 pairs, we can remove the arc joining each pair and all vertices will be of order 4. So 12 arcs.
iv) It is semi-Eulerian as there are exactly two nodes of odd order: F and D. E.g. FABECAD
3. i) ACBDF weight 13
ii) 38+6=44
iii) Duplicate AC and DF 38+7=45
4. i) x represents the number of red bags
ii) 3x+7y+6z represents the total number of sweets need, where x,y,z represent the number of red, yellow and blue bags respectively
5x+4y+6z405x+4y+6z\leq40
5x+2y+3z305x+2y+3z\leq30
x,y,z0x,y,z\geq0 and x,y,z are integers
iv) Assume that she has enough party bags of each colour.
v)
P x y Z s t u RHS
1 -1 -1 -1 0 0 0 0
0 3 7 6 1 0 0 80
0 5 4 6 0 1 0 40
0 5 2 3 0 0 1 30
vi) Ratios: sweets 26.7, balloons 8, toys 6
P x y z s t u RHS
1 0 -0.6 -0.4 0 0 0.2 6
0 0 5.8 4.2 1 0 -0.6 62
0 0 2 3 0 1 -1 10
0 1 0.4 0.6 0 0 0.2 6
x=6, y=0, z=0, so 6 red bags and no others
vii) 10 yellow bags
5. i) completed network
ii) total weight 563
iii) 563+50+59=672
iv) 970
v) FAD = 435, CBE = 278
total weight 922, route such as FADEBCF
6. i)
A B C D E F Output
10 128 12.8 12 120 8 8
10 12 1.2 1 10 2 2
10 1 0.1 0 0 1 1
10 0
ii)
A B C D E F Output
10 -13 -1.3 -2 -20 7 7
10 -2 -0.2 -1 -10 8 8
10 -1 -0.1 -1 -10 9 9
10 -1 -0.1 -1 -10 9 9
The algorithm will continue to repeat.


For the assumption, I think it's we assume she sells them all. But your way works too :P
Reply 27
Original post by Little Wing
For the assumption, I think it's we assume she sells them all. But your way works too :P


Ah, that's a much better answer. I didn't like my one at all. Thanks.
Reply 28
Original post by dybydx
I did this quickly after the exam, but I haven't been through them to check them, but my answers are below. I might have some of the numbering wrong, and by the sounds of it, I've got one wrong, as I got 922 not 967. I normally get some basic arithmetic wrong on D1, so take these with a pinch of salt. Let me know what to correct.

1. Shuttle sort with 8 passes, 26 comparisons and 21 swaps.
2. i) 5 arcs e.g. all outer arcs except one
ii) 15 arcs complete graph - all pairings connected exactly once
iii) All vertices must have an even order, so we need to reduce each vertex order by 1. If we pair the 6 vertices into 3 pairs, we can remove the arc joining each pair and all vertices will be of order 4. So 12 arcs.
iv) It is semi-Eulerian as there are exactly two nodes of odd order: F and D. E.g. FABECAD
3. i) ACBDF weight 13
ii) 38+6=44
iii) Duplicate AC and DF 38+7=45
4. i) x represents the number of red bags
ii) 3x+7y+6z represents the total number of sweets need, where x,y,z represent the number of red, yellow and blue bags respectively
5x+4y+6z405x+4y+6z\leq40
5x+2y+3z305x+2y+3z\leq30
x,y,z0x,y,z\geq0 and x,y,z are integers
iv) Assume that she has enough party bags of each colour.
v)
P x y Z s t u RHS
1 -1 -1 -1 0 0 0 0
0 3 7 6 1 0 0 80
0 5 4 6 0 1 0 40
0 5 2 3 0 0 1 30
vi) Ratios: sweets 26.7, balloons 8, toys 6
P x y z s t u RHS
1 0 -0.6 -0.4 0 0 0.2 6
0 0 5.8 4.2 1 0 -0.6 62
0 0 2 3 0 1 -1 10
0 1 0.4 0.6 0 0 0.2 6
x=6, y=0, z=0, so 6 red bags and no others
vii) 10 yellow bags
5. i) completed network
ii) total weight 563
iii) 563+50+59=672
iv) 970
v) FAD = 435, CBE = 278
total weight 922, route such as FADEBCF
6. i)
A B C D E F Output
10 128 12.8 12 120 8 8
10 12 1.2 1 10 2 2
10 1 0.1 0 0 1 1
10 0
ii)
A B C D E F Output
10 -13 -1.3 -2 -20 7 7
10 -2 -0.2 -1 -10 8 8
10 -1 -0.1 -1 -10 9 9
10 -1 -0.1 -1 -10 9 9
The algorithm will continue to repeat.


A couple of things with this.

2ii) All of the 6 nodes cannot have an order of four. Someone showed me this and I said damn. I got this wrong too.

4iv) Apparantly this is she sells all the bags she makes?

4vii) I thought it was 10 blue bags? The z column can be changed if you use the solution from the first iteration? Are there two answers to this too? Or am I just wrong. LOL

5v) What two arcs did you use to join these two? As I got BD and BF. Which was 104 or something near it and 50? These were the two shortest I thought? And it asked for a closed route for the nearest neighbour?
Reply 29
Original post by dybydx
I did this quickly after the exam, but I haven't been through them to check them, but my answers are below. I might have some of the numbering wrong, and by the sounds of it, I've got one wrong, as I got 922 not 967. I normally get some basic arithmetic wrong on D1, so take these with a pinch of salt. Let me know what to correct.

1. Shuttle sort with 8 passes, 26 comparisons and 21 swaps.
2. i) 5 arcs e.g. all outer arcs except one
ii) 15 arcs complete graph - all pairings connected exactly once
iii) All vertices must have an even order, so we need to reduce each vertex order by 1. If we pair the 6 vertices into 3 pairs, we can remove the arc joining each pair and all vertices will be of order 4. So 12 arcs.
iv) It is semi-Eulerian as there are exactly two nodes of odd order: F and D. E.g. FABECAD
3. i) ACBDF weight 13
ii) 38+6=44
iii) Duplicate AC and DF 38+7=45
4. i) x represents the number of red bags
ii) 3x+7y+6z represents the total number of sweets need, where x,y,z represent the number of red, yellow and blue bags respectively
5x+4y+6z405x+4y+6z\leq40
5x+2y+3z305x+2y+3z\leq30
x,y,z0x,y,z\geq0 and x,y,z are integers
iv) Assume that she has enough party bags of each colour.
v)
P x y Z s t u RHS
1 -1 -1 -1 0 0 0 0
0 3 7 6 1 0 0 80
0 5 4 6 0 1 0 40
0 5 2 3 0 0 1 30
vi) Ratios: sweets 26.7, balloons 8, toys 6
P x y z s t u RHS
1 0 -0.6 -0.4 0 0 0.2 6
0 0 5.8 4.2 1 0 -0.6 62
0 0 2 3 0 1 -1 10
0 1 0.4 0.6 0 0 0.2 6
x=6, y=0, z=0, so 6 red bags and no others
vii) 10 yellow bags
5. i) completed network
ii) total weight 563
iii) 563+50+59=672
iv) 970
v) FAD = 435, CBE = 278
total weight 922, route such as FADEBCF
6. i)
A B C D E F Output
10 128 12.8 12 120 8 8
10 12 1.2 1 10 2 2
10 1 0.1 0 0 1 1
10 0
ii)
A B C D E F Output
10 -13 -1.3 -2 -20 7 7
10 -2 -0.2 -1 -10 8 8
10 -1 -0.1 -1 -10 9 9
10 -1 -0.1 -1 -10 9 9
The algorithm will continue to repeat.


I can only see a few things that look different to what I had but I may have remembered some stuff wrong.
In question 1 I seem to remember 36 comparisons, not 26
Also for 5v I also got 967
And for the assumption I put that they are all sold but there was probably other answers for that question.

Cant see any other answers where I didnt get the same but not sure.
Reply 30
Original post by dybydx
Ah, that's a much better answer. I didn't like my one at all. Thanks.


I put she makes a profit of some kind? Will i get the mark or nah?
Original post by Kavzaz
I put she makes a profit of some kind? Will i get the mark or nah?


Probably.
Original post by .Stubert.
I can only see a few things that look different to what I had but I may have remembered some stuff wrong.
In question 1 I seem to remember 36 comparisons, not 26
Also for 5v I also got 967
And for the assumption I put that they are all sold but there was probably other answers for that question.

Cant see any other answers where I didnt get the same but not sure.


It was definitely 26 comparisons.
Original post by .Stubert.
I can only see a few things that look different to what I had but I may have remembered some stuff wrong.
In question 1 I seem to remember 36 comparisons, not 26
Also for 5v I also got 967
And for the assumption I put that they are all sold but there was probably other answers for that question.

Cant see any other answers where I didnt get the same but not sure.


I got 36 comparisons too, but I'm absolutely rubbish at counting comparisons and swaps so I could easily be wrong...
Reply 34
Original post by jodiedoodles
I got 36 comparisons too, but I'm absolutely rubbish at counting comparisons and swaps so I could easily be wrong...


I would have thought that with a shuttle sort and 9 items it would be 1+2+3+4+5+6+7+8=36?

am I doing something wrong?
Reply 35
Original post by Kavzaz
A couple of things with this.

2ii) All of the 6 nodes cannot have an order of four. Someone showed me this and I said damn. I got this wrong too.

4iv) Apparantly this is she sells all the bags she makes?

4vii) I thought it was 10 blue bags? The z column can be changed if you use the solution from the first iteration? Are there two answers to this too? Or am I just wrong. LOL

5v) What two arcs did you use to join these two? As I got BD and BF. Which was 104 or something near it and 50? These were the two shortest I thought? And it asked for a closed route for the nearest neighbour?


Ermmm 2ii) 15 arcs is correct, each node joins to every other node which means that every node has an order of 5, so arcs = 5+4+3+2+1 = 15
Reply 36
Original post by .Stubert.
I would have thought that with a shuttle sort and 9 items it would be 1+2+3+4+5+6+7+8=36?

am I doing something wrong?


Yeahh this is not always true because if you're sorting say the first 4 numbers for example, you know that from the previous passes that the first 3 numbers are already in order and so if you compare the 4th number with the 3rd and it does not swap then no more comparisons need to be made for this pass :smile: hope this helps and it's not too confusing :smile:
does anyone have the paper? i have no idea what answers i got for some of the 3rd question, but i'm pretty sure some of them weren't what are on here :frown: ... or does anyone remember the questions? :smile:
Reply 38
Original post by Adzz5
Yeahh this is not always true because if you're sorting say the first 4 numbers for example, you know that from the previous passes that the first 3 numbers are already in order and so if you compare the 4th number with the 3rd and it does not swap then no more comparisons need to be made for this pass :smile: hope this helps and it's not too confusing :smile:


I understand you dont need to do any more checks in that instance, but I wasnt aware that the algorithm had an exception for this.
Reply 39
yeah x=6. hmm how could the upper bound be messed up.. i swear all we had to do was nearest neighbour. im hearing most got 970.... would help if we had the paper. I think it was for upper bound by the way (the 1013?) I cant remember.. I was definately on that question though. anyone remember the arcs?

Quick Reply

Latest

Trending

Trending