Docsity

Mathematics for Computing, Assignments of Computer Science

Toggle sidebar
bg1
1
Unit Learning Outcomes
LO1 Use applied number theory in practical computing scenarios
LO2 Analyse events using probability theory and probability distributions
LO3 Determine solutions of graphical examples using geometry and vector methods
LO4 Evaluate problems concerning differential and integral calculus.
Assignment Brief and Guidance
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
Discount

On special offer

Partial preview of the text

Download Mathematics for Computing and more Assignments Computer Science in PDF only on Docsity!

Unit Learning Outcomes

LO1 Use applied number theory in practical computing scenarios

LO2 Analyse events using probability theory and probability distributions

LO3 Determine solutions of graphical examples using geometry and vector methods

LO4 Evaluate problems concerning differential and integral calculus.

Assignment Brief and Guidance

Suppose that you work for a company which operates in multidisciplinary streams such as

hardware & software development, sales, networking, resources management etc. you have

been recruited by the company and it is required for you to work in all the disciplines during

the first year probationary period, in order to gain minimum competence in each area.

Following tasks asses your mathematics knowledge, skills and its application in relevant areas

of work that you are about to get involved.

Task 1 (P1,P2, D1)

a) Programmes A, B & C, give out notifications every 3 days, every 5 days & every 6 days.

when will they give out notifications at the same time during the course of two months

b) Computer store A sells a package of 15 CPU’s for half price while Computer store B sells

a package of 12 Desktop monitors for half price. Suppose that you intend to buy CPU’s

and monitors to set up a gaming zone and find What is the least number of CPU’s and

Desktop monitors you need to buy in order to make sure you are not left with a surplus

c) A teacher has three computer science classes. Each class has 72, 104, and 128 students

respectively. He wants to divide each class into groups (members should be from the

same class) In order to give a common assignment so that every group in every class

has the same number of students. For the convenience of marking, the teacher expect

to set up less number of groups as possible. Find the number of students can put into

each group.

d) Suppose you have two hard disks with different disk space’s 512 GB and 736 GB. If

you are required to partition both disks into equal capacity that are as large as

possible, find the space that should be allocated for each partition?

e) Describe importance of prime numbers in detail within the field of computing.

e) Suppose that a server can only handle 500 requests at a time. Find out how many

servers you need in order to accommodate requests without any interruption for a

confidence level of 95%, if load balancing is done evenly

f) Discuss the use of modular arithmetic’s in the field of computing

g) A hash function will be used in directing users to servers whereas the modular value

of the output will be used in determining the relevant server (i.e. modular value 1

directed to server 1) based on the number calculated in part e). Given below are

some of the outputs of hash function and determine which server they belong to

i. 2048

ii. 3987

iii. 2675

h) Find the multiplicative inverse of 2675 (mod n) whereas “n” is the number of servers

Task 3 (P5,P6,M3,D3)

a) Plot following points Cartesian coordinates and enclose it to make a polygon ABCDEA

such as A(0,2) ; B(4,8); C(15,5); D(12,4) ;E(6,2)

i. Find the length of the line AC without using the diagram

ii. Find the area of the polygon without using the diagram

iii. Convert the given coordinates to polar coordinates

b) Draw a view port P(0,0) ,Q(0,10),R(16,10), S(16,0) and assume it as the output

screen of the computer zoomed at 100 %.Suppose that you have zoomed out to 40%

keeping the same aspect ratio ,redraw the image that can be visualized in the screen

and also define the new boundaries of the viewport.

Task 4 (P7,M4,D4)

a) You have been asked to analyse a motherboard to assess the lifespan of the

capacitors. When a charged capacitor is connected to a resistor to form an RC

(resistor-capacitor) circuit, the capacitor discharge follows the equation:

𝑚𝑎𝑥

Cos( 2 𝑡). 𝑒

− 𝑡

Where 𝑉 is the voltage, 𝑡 is the time in seconds, and 𝑉

𝑚𝑎𝑥

is the initial voltage which is equal

to 2V.

i. Determine how long it will take for a capacitor in this circuit to discharge

to Half of its initial charge

ii. Find the rate of discharge at t=1s

b) A monitor to be made with 180cm

2

display area with 2cm margins at bottom & sides

and 3cm margin at top. Find the dimensions of the monitor with least total area.

c) A software office complex has the space to accommodate 300 employees. For every

person they employ (𝑥) then their monthly profit, in rupees, can be approximated by

the equation:

2

Find How many people should they employ in order to maximize their profits?

Task 5 (P8)

a) Find the area enclosed by 𝑓

2

3

  • 64 , 𝑥 = − 1 and 𝑥 = 3

b) The rate at which the depletion of charge of a portable computer battery is directly

proportional to the charge of the battery at any given instance. Suppose that it was

charged to 100% before use. After one hour of usage, it was reduced to 65%. Find

the percentage charge after three hours

c) Power supply in a particular computer converts the A/C input voltage to D/C output

whereas the input can be given as function of current

V(t)= Vmax Sin(t)

Achievement Summary

Criteria

Reference

Pass criteria Achieved?

(tick)

LO

P1 Calculate the greatest common divisor and least common

multiple of a given pair of numbers.

P2 Use relevant theory to sum arithmetic and geometric

progressions.

LO

P3 Deduce the conditional probability of different events

occurring within

independent trials.

P4 Identify the expectation of an event occurring from a

discrete, random variable.

LO

P5 Identify simple shapes using co-ordinate geometry

P6 Determine shape parameters using appropriate vector

methods.

LO

P7 Determine the rate of change within an algebraic function

P8 Use integral calculus to solve practical problems involving

area.

Higher Grade achievements

Grade descriptor Achieved?

(tick)

Grade descriptor Achieved?

(tick)

M1 D

M2 D

M3 D

M

b) Computer store A sells a package of 15 CPU’s for half price while Computer store B sells

a package of 12 Desktop monitors for half price. Suppose that you intend to buy CPU’s

and monitors to set up a gaming zone and find What is the least number of CPU’s and

Desktop monitors you need to buy in order to make sure you are not left with a surplus

c) A teacher has three computer science classes. Each class has 72, 104, and 128 students

respectively. He wants to divide each class into groups (members should be from the

same class) In order to give a common assignment so that every group in every class

has the same number of students. For the convenience of marking, the teacher expects

to set up less number of groups as possible. Find the number of students can put into

each group.

e) Describe importance of prime numbers in detail within the field of computing.

A prime number is a number that can only be divided by one and by itself, which basically means that there is

no division. At this point (evening), three, four, five, and so on take half of every number that can be taken

with all the multipliers. While this may not seem like a number left over after a certain location, in fact, we

know that there will be an infinite number of primes, albeit often less as we move forward. In fact, it's part of

making primaries so interesting, not only is the number line filled to the primary infinity, but the whole

number line can be produced by nothing but the primary.

It is important to use it to make these blocks unique, that is, each natural number is obtained by multiplying a

unique set of prime numbers. Even so, we currently have no formula for how to find that number group! That

is why primitive numbers play a very important role in occultism. There are several popular algorithms for

communication between computers that use primary numbers to encrypt messages so that others can access

the information we need to remain private. It takes decades to find the set of primitive numbers needed to

compose a definite natural number, even the best computers that do lots and calculations per second. It is clear

that the larger the natural number, the longer it will take!

Although occultism is the most common use of primitive numbers today, they are still used in many other

fields, such as electronics, architecture, and music theory.

Cryptography

The RSA system in the cryptographic system makes extensive use of prime numbers to compute public and

private keys. The strength of this method depends on the difficulty of making large numbers - especially the

difficulty associated with finding a specific number of pairs selected to make a large number called modulus.

Computer Science

A hash code is a numeric code for every object created by a program. Hash codes are required for quick

retrieval / storage of complex objects from a hash table /. Hash codes must be unique to each object so that

accuracy can be maintained. For this reason, prime numbers are used when calculating hash codes. For

example, the hash codes for Java threads are calculated as follows: s [0] * 31 (n - 1) + s [1] * 31 (n- 2) +… + s

[n-1] * 310 where s 0 - is an alphabet from n 1 numbered from n-1 and s [x] represents the ASCII value of the

x letter s in s. The number 31 is a prime number close to 2 power. Prime numbers are chosen because they are

best distributed through hash buckets. Since they have no factors other than and 1, the "modulo x" function is

guaranteed to provide a wider range of answers if x is not predominant, thereby increasing the number of hash

buckets.

Task 02

a) It was determined that 80% of spam emails have “check this out” in the subject line

while 15% of non-spam emails have this sentence in the subject line. If you see a

mail contains “”check this out” by your filter, what is the probability that it is an actual

spam?

c) The probability that a visitor to a Web site provides contact data for additional

information is 0.01. Assume that 2000 visitors to the site behave independently.

Determine the following probabilities

a. No visitor provides contact data

b. Exactly 3 visitors provide contact data

c. More than 3 visitors provide contact data.

d. What is the expected number of visitors provide contact data

d) Number of visits to a particular website in an any given instance during peak hours

follows a normal distribution with mean 1100 and standard deviation 320. Find the

probability that the number of users visit the website is

a. More than 600

b. Less than 2000

c. Between 1000 - 1500

e) Suppose that a server can only handle 500 requests at a time. Find out how many

servers you need in order to accommodate requests without any interruption for a

confidence level of 95%, if load balancing is done evenly