Docsity

HND Level 5 Unit 18 Discrete Maths Assignment 1, Papers of Mathematics for Computing

Partial preview of the text

Download HND Level 5 Unit 18 Discrete Maths Assignment 1 and more Papers Mathematics for Computing in PDF only on Docsity!

Assignment 1

Discrete Maths

Unit 18

Table of Contents

  • Introduction
  • Part
    • Sets and Venn diagrams
    • Cardinality
    • Inverse Function
    • De Morgan’s Law
  • Part
    • Problem Tree
    • Dijkstra’s algorithm
    • Eulerian and Hamiltonian circuit
  • References

a = n(Support & Marksman) – n(Support & Marksman & Tank)

a = n(S ∩ M) – n(S ∩ M ∩ T)

a = 55 – 22

a = 33

b = n(Tank & Marksman) – n(Support & Marksman & Tank)

b = n(T ∩ M) – n(S ∩ M ∩ T)

b = 5 3 – 22

b = 3 1

c = n(Support & Tank) – n(Support & Marksman & Tank)

c = n(S ∩ T) – n(S ∩ M ∩ T)

c = 80 – 22

c = 58

As the number of players who played two different roles have been calculated, the next

step is to find out how many people have played only one role in each category.

d = n(Support) – n(Support & Marksman) – n(Support & Tank) – n(Support & Marksman &

Tank)

d = n(S) – n(S ∩ M) – n(S ∩ T) – n(S ∩ M ∩ T)

d = 120 – 33 – 58 – 22

d = 7

e = n(Marksman) – n(Support & Marksman) – n(Marksman & Tank) – n(Support & Marksman

& Tank)

d = n(S) – n(S ∩ M) – n(M ∩ T) – n(S ∩ M ∩ T)

e = 258 – 33 – 31 – 22

e = 172

f = n(Tank) – n(Support & Tank) – n(Marksman & Tank) –

n(Support & Marksman & Tank)

f = n(S) – n(S ∩ T) – n(M ∩ T) – n(S ∩ M ∩ T)

f = 315 – 58 – 31 – 22

f = 204

U

U

[ 3 ]

Now that we have all the data we need, we can find out a total of how many players took one

role, exactly two roles and at least two roles.

Number of players who only took only one role = d + e + f

Number of players who took exactly two roles = a + b + c

Number of players who took at least two roles = a + b + c + n(Support & Marksman & Tank)

Therefore, the number of players who took only one role is 383, the number of players

who took exactly two roles is 122 and the number of players who took at least two roles is 144.

Cardinality

For the second task, three sets, A, B and C were given. Each set contain several

numbers and is stated that Z is the set of A B and C. My job is to calculate the cardinality of set

Z. The details of the sets are shown below.

A = {1,2,4,1,5,3,1,3,5,7,12}
B = {1,2,6,2,1,9,7,5,3,3,5,6,7,10}
C = {2,8,3,5,1,2,7,4,7,2,7,2}
Z = {A, B, C, C}

From the given data, it can be found that the cardinality of set Z is 3, |Z| = 3.

Inverse Function

In addition, my project manager is eager to hear my views on how much control the

user should have in aiming and shooting video games. In order to do the computation, I need

to use the proper mathematical tools to find the inverse of the composition function. The

function for the motion of bullet is f(x)= 2x

2

  • 12x – 14 and damage is g(x) = (x+1)

2

Calculation for both of the functions will be shown on the next page.

f(x) = 2x

2

+ 12x – 14

  • Coefficients a, b and c of the quadratic

formula are identified.

2

De Morgan’s Law

The next task given by the project manager is to develop appropriate proof principles to

prove properties about the set, (A ∪ B)' = A' ∩ B', also known as De Morgan’s Law.

Let’s assign some sample numbers to set A and B and Universal set.

A = {1,2,3,4,5}
B = {5,6,7,8,9}
A ∪ B = {1,2,3,4,5,6,7,8,9}
(A ∪ B)' = {10}
A' = {6,7,8,9,10}
B' = {1,2,3,4,10}
A' ∩ B' = {10}

Therefore, (A ∪ B)' = A' ∩ B' and it is also proven with a Venn diagram, the yellow part

defines (A ∪ B)' and A' ∩ B'.

Part 2

Problem Tree

In order to complete the first task of the second section, I will need to conduct an issue

tree analysis to identify root causes and possible remedies related to the popularity of ARCADE

games on various online platforms in both quantitative and qualitative forms. The diagram

below shows the problem tree analysis of the given task.

The prevalence of arcade games on digital platforms is the root of the issue depicted in

the preceding example. More than 2 billion people throughout the world regularly engage in

gaming. The fact that 66.2% of the world's population now has access to the internet and that

Eulerian and Hamiltonian circuit

For the final task, my project manager is curious as to whether the following underlying

map of America exhibits Eulerian and Hamiltonian circuits. Whenever necessary, I can insert

new connections to complete the Eulerian and Hamiltonian circuit and I need to build a proof by

using the 3 or 4 color theorems. States included are: California, Nevada, Utah, Colorado,

Arizona, New Mexico, Kansas, Oklahoma, and Texas.

In order to find out whether Eulerian and Hamiltonian circuit exist, first the selected

regions from the map are converted into a graph. Each state represents a vertex and the names

are given according to the state abbreviations. CA is for California, NV is Nevada, UT is Utah,

CO is Colorado, AZ is Arizona, NM is New Mexico, KS is Kansas, OK is Oklahoma, and TX is

Texas. From the graph it can be seen that each vertex has even number of edges so it means

the graph has Eulerian circuit. Below is the proof of Eulerian circuit.

CA – 4 edges

NV – 2 edges

UT – 4 edges

CO – 6 edges

AZ – 4 edges

NM – 6 edges

KS – 2 edges

OK – 4 edges

TX – 2 edges

Hamiltonian circuit also exists since the start vertex and the end vertex are the same

and every vertex is visited only once. Below path shows proof that Hamiltonian circuit exists.

California → Nevada → Utah → Colorado → Kansas → Oklahoma → Texas → New Mexico →

Arizona → California

Four-color theorem is used for the graph, the colors used for the graph are: purple,

yellow, blue and red. As shown in the graph, the vertexes are colored in a way that no two

adjacent vertexes that share a boundary have the same color. It is impossible to use three-

color theorem due to numerous numbers of vertexes and links between them. It is possible to

use five-color theorem but too much colors make the graph dizzy to look at so four-color

theorem is selected.