Term
|
Definition
| showing the truth or falsehood of a given statement by a straightforward combination of established facts |
|
|
Term
|
Definition
Claim: P(n) is true for all positive integers n.
Proof: We’ll use induction on n.
Base: We need to show that P(1) is true.
Induction: Suppose that P(n) is true for n = 1, 2, . . . , k−1. We need to show that P(k) is true. |
|
|
Term
|
Definition
| Every element is related to itself |
|
|
Term
|
Definition
| No element is related to itself |
|
|
Term
|
Definition
a is related to b if b is related to a.
for all x, y ∈ A, xRy implies yRx
Ex:
if 3 -> 4 then 4 -> 3 (related backwards/forwards) |
|
|
Term
|
Definition
|
|
Term
| A function is equivalent if |
|
Definition
| type signature and output are the same. |
|
|
Term
|
Definition
|
|
Term
|
Definition
| ∀x, y ∈ A, x != y → f(x) != f(y) |
|
|
Term
| Every variable is defined by 4 properties |
|
Definition
| Type, Name, value, memory location |
|
|
Term
|
Definition
| Separates methods from methods, represented as a pill and as .h/.cpp files in c++ |
|
|
Term
| Things to include and where in c++ files |
|
Definition
#pragma once - top of .h file #include "Cube.h" - top of .cpp file |
|
|
Term
| Large libraries in C++ are organized into |
|
Definition
|
|
Term
| Constructors in C++, defined where? |
|
Definition
| Top of public h file, defined as Cube.h for example. |
|
|
Term
|
Definition
| &c -> returns the memory address of c's data |
|
|
Term
|
Definition
| returns the data at that memory address |
|
|
Term
| What should we never do with stack memory? |
|
Definition
| Return a pointer to the stack variable |
|
|
Term
|
Definition
| All 3: Reflexive, symmetric, transitive. |
|
|