CS Terms Flashcards
Exponentiation
expt
Square Root
sqrt
Remainder
Remainder
Absolute value
abs
greatest common divisor
gcd
Least Common Multiple
lcm
What does modulo do?
Find the remainder of the division of the first number by the second
What does quotient do?
Divides the first integer by the second to obtain the quotient.
What does remainder do?
Determines the remainder of dividing the first by the second integer
What does round do?
Rounds a real number to an integer
What does floor do?
Determines the closest integer below a real number
What does ceiling do?
Determines the closest integer above a real number
How do you use check-expect?
(check-expect observed-value expected-value)
What is a base case?
The simplest form of the recursive problem. The condition that causes the method to end.
What is a recursive case?
The steps that an algorithm takes to make the problem one step smaller and move towards the base case.