We are assuming that students entering this paper are relatively mathematically confident, having done well in NCEA Level 3 mathematics. To be precise: we’re hoping that you’ve received a ‘merit’ or higher on one of the three externally-assessed NCEA L3 mathematics standards, namely differentiation, integration, or complex numbers.
In other systems, this is roughly equivalent to a passing mark in CIE A2 mathematics, or a C or better in CIE AS mathematics, or a 3/7 or higher in IB mathematics.
Compsci 120 is a paper that assumes you are already comfortable with a number of mathematical concepts and conventions. Trying to take this course without a solid background in mathematics is a bad idea. If you do not have this background, you should take Maths 102! Maths 102 is a course ran every semester (including summer semesters) at the University of Auckland, and has no prerequisites. It is designed to give you the skills to succeed in CS 120!
By “comfortable with”, we mean that you should be able to see these calculations done in lecture without further explanation, and be able perform these calculations yourself on an exam without a calculator.
To help clarify some of the specific concepts we’re expecting students to understand (in case you’re coming from overseas, or it’s been a while since you finished high school), here is a particular set of skills that we are hoping you’ve acquired over your career. This list is not exhaustive, but is just meant to point out the most common stumbling blocks that less-prepared students encounter in Compsci 120. Again, if you do not feel comfortable with these calculations, please enrol in Maths 102!
Exponents. You should know what ab
is for any two integers a,b
, and know how to work with exponents. For example, the following calculations are ones you should be comfortable with:
This isn’t quite right. It looks like you might have replaced
log2(4n)
with n
, which you cannot do: logarithms
and exponents only cancel out when they “match”!
Check out the logarithms
page for a
solution to this problem, along with some more examples and definitions.
Expanding polynomials. You should be able to expand products of polynomials and other expressions. For example, the following calculations are ones that you should be able to read and understand without further explanation:
Fractions. You should be able to combine ratios and fractions with various arithmetic operations. For instance, you should be comfortable with the following calculations:
31−84=241⋅8+(−4)⋅3=−244
3+1137=113113⋅3+7=113346
1−x1=1−x1+−x+x=1+1−xx
(−1145)⋅(−65)=11⋅6(−45)⋅(−5)=66225
ba+bcd=bcac+d
x−a1=x−a1⋅x+ax+a=x−a2x+a
Solving equalities and inequalities. Given an equation or inequality in one or more variables, you should be able to rearrange it to “solve” for one variable in terms of the others. For example, the following processes should be ones you’re comfortable with:
3x−4=12⇒3x=16⇒x=316
(a2−1)b+1=a⇒(a2−1)b=a−1⇒b=a2−1a−1=a+11, if a=±1
−5x−7≤3⇒−5x≤10⇒x≥−2
x2+120>2⇒20x2+1<21⇒x2+1<10⇒∣x∣<3
x2−3x+2>0⇒(x−2)(x−1)>0⇒(x−2) and (x−1) are both <0, or (x−2) and (x−1) are both >0⇒(x<2 and x<1), or (x>2 and x>1)⇒(x<1) or (x>2).
Substitution. Given a function f(x)
, you should be able to plug in values and expressions in to this function, and get the correct output. For example, you should be capable of the following:
If f(x)=x2+1 then f(4)=42+1=17, and f(x+1)=(x+1)2+1=x2+2x+2.
If g(n)=2n(n+1) then g(n+1)=2(n+1)(n+2), and g(2n)=2(2n)(2n+1)=n(2n+1).
If h(x)=1−x then h(y)=1−y, and h(h(y))=h(1−y)=1−(1−y)=y.