Pia Heidtmann MID SWEDEN UNIVERSITY NAT Examination 2012 MA095G/MA098G Discrete Mathematics (English) Duration: 5 hours Date: 13 March 2012 The compulsory part of this examination consists of 8 questions. The maximum number of points available is 24. The points for each part of a question are indicated at the end of the part in [ ]-brackets. The final grade on the course is determined by how well the candidates demonstrate that they have met the learning outcomes on the course. Provided all learning outcomes have been met, the following guide values will be used to set the course grade: E: 9p D: 10p C: 14p B: 18p A: 22p The final question on the paper is the Aspect Question, it is optional and carries no value in terms of marks, but a good solution of this Aspect Question may raise a candidate’s grade by one grade. The candidates are advised that they must always show their working, otherwise they will not be awarded full marks for their answers. The candidates are further advised to start each of the nine questions on a new page and to label all their answers clearly. This is a closed book examination. No books, notes or mobile telephones are allowed in the examination room. Note that Mathematical Formula Collection Edition 2 is allowed on this tenta and will be available in the examination room. Electronic calculators may be used provided they cannot handle formulas. The make and model used must be specified on the cover of your script. GOOD LUCK!! c NAT, Mid Sweden University 1 PLEASE TURN OVER
14
Embed
MID SWEDEN UNIVERSITY NAT Examination 2012 ...apachepersonal.miun.se/~piahei/adm/res/tentor/dma1203.pdfPia Heidtmann MID SWEDEN UNIVERSITY NAT Examination 2012 MA095G/MA098G Discrete
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Pia Heidtmann
MID SWEDEN UNIVERSITY
NAT
Examination 2012
MA095G/MA098G Discrete Mathematics (English)
Duration: 5 hours
Date: 13 March 2012
The compulsory part of this examination consists of 8 questions. The maximumnumber of points available is 24. The points for each part of a question are indicatedat the end of the part in [ ]-brackets.
The final grade on the course is determined by how well the candidates demonstratethat they have met the learning outcomes on the course. Provided all learningoutcomes have been met, the following guide values will be used to set the coursegrade:
E: 9p D: 10p C: 14p B: 18p A: 22p
The final question on the paper is the Aspect Question, it is optional and carries novalue in terms of marks, but a good solution of this Aspect Question may raise acandidate’s grade by one grade.
The candidates are advised that they must always show their working, otherwisethey will not be awarded full marks for their answers.
The candidates are further advised to start each of the nine questions on a newpage and to label all their answers clearly.
This is a closed book examination. No books, notes or mobile telephonesare allowed in the examination room. Note that Mathematical FormulaCollection Edition 2 is allowed on this tenta and will be available in theexamination room.
Electronic calculators may be used provided they cannot handle formulas.The make and model used must be specified on the cover of your script.
(a) A PIN-code for a credit card consists of an ordered sequence of 4 digits fromthe set {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}. How many such PIN-codes have precisely twoidentical digits? [1]
(b) How many partitions of the set {1, 2, . . . , 10} exist with each part containingexactly two elements? [1]
(c) How many positive integers less than 700 are
(i) a multiple of 7?
(ii) a multiple of 3, 5 or 7? [1]
Question 5Use Dijkstra’s algorithm to find the shortest path from vertex x to vertex y in thefollowing weighted graph. Show carefully the order in which the vertices are beingprocessed by the algorithm, how the vertices are labelled and how these labels change.Give also the length of the shortest path. [2]
sx
sg
sd
sa sb
s e
si
sh
sf
sc
sy
������������
������
������
@@@@@@@@@@@@
@@@@@@
@@@@@@
4
2
6
4
6
1
1
6
2
1
1
4 4
3
7
1
7
1
6
2
7
1
Question 6
(a) Consider the function f : Z→ Z given by the rule
f(x) = 3x− 17.
(i) Give the range of f .
(ii) Show that f is O(x). [1.5]
(b) (i) State the Pigeonhole Principle.
(ii) Suppose that A and B are finite sets such that |A| > |B|.Explain why there does not exist a function g : A→ B whichis one-to-one (injective). [1.5]
Den obligatoriska delen av denna tenta omfattar 8 fragor. Delfragornas poang starangivna i marginalen inom [ ]-parenteser. Maximalt poangantal ar 24.
Betyg satts efter hur val larandemalen ar uppfyllda. Riktvarden for betygen ar:
E: 9p D: 10p C: 14p B: 18p A: 22p
Darutover innehaller skrivningen en frivillig aspektuppgift som kan hoja betyget omden utfors val med god motivering.
Behandla hogst en uppgift pa varje papper!
Till alla uppgifter skall fullstandiga losningar lamnas. Resonemang, ekvationslosningaroch utrakningar far inte vara sa knapphandiga att de blir svara att folja. Brister iframstallningen kan ge poangavdrag aven om slutresultatet ar ratt!
Hjalpmedel: Matematisk Formelsamling (delas ut), skriv- och ritmaterialsamt miniraknare som ej ar symbolhanterande. Ange marke och modellpa din miniraknare pa omslaget till tentamen.
(a) En PIN-kod for ett kreditkort bestar av en ordnad sekvens av 4 siffror franmangden {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}. Hur manga PIN-koder har precis tva siffrorsom ar lika? [1]
(b) Hur manga partitioner finns det av mangden {1, 2, . . . , 10} om varje del skainnehalla precis tva element? [1]
(c) Hur manga positiva heltal mindre an 700 ar
(i) en multipel av 7?
(ii) en multipel av 3, 5 eller 7? [1]
Uppgift 5Anvand Dijkstras algoritm for att bestamma en kortaste stig fran horn x till horny i foljande viktade graf. Redovisa gangen i losningen, dvs. ur din losning ska detframga i vilken ordning hornen behandlas, hur hornen marks och hur markena andrasnar du arbetar dig igenom algoritmen. Ange ocksa kortaste stigens langd. [2]
sx
sg
sd
sa sb
s e
si
sh
sf
sc
sy
������������
������
������
@@@@@@@@@@@@
@@@@@@
@@@@@@
4
2
6
4
6
1
1
6
2
1
1
4 4
3
7
1
7
1
6
2
7
1
Uppgift 6
(a) Lat f : Z→ Z vara funktionen
f(x) = 3x− 17.
(i) Ange vardemangden till f .
(ii) Visa att f ar O(x). [1.5]
(b) (i) Formulera Dirichlets Ladprincip.
(ii) Antag att A och B ar andliga mangder sadana att |A| > |B|.Forklara varfor det inte existerar en funktion g : A→ B som ar injektiv.