61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
HOMEWORK 3: MATRIX CLASS
|
|
|
|
|
|
NAME: < insert name >
|
|
|
|
|
|
COLLABORATORS AND OTHER RESOURCES:
|
|
List the names of everyone you talked to about this assignment
|
|
(classmates, TAs, ALAC tutors, upperclassmen, students/instructor via
|
|
LMS, etc.), and all of the resources (books, online reference
|
|
material, etc.) you consulted in completing this assignment.
|
|
|
|
< insert collaborators / resources >
|
|
|
|
Remember: Your implementation for this assignment must be done on your
|
|
own, as described in "Academic Integrity for Homework" handout.
|
|
|
|
|
|
ESTIMATE OF # OF HOURS SPENT ON THIS ASSIGNMENT: < insert # hours >
|
|
|
|
|
|
|
|
ORDER NOTATION:
|
|
For each of the functions below, write the order notation O().
|
|
Write each answer in terms of m = the number of rows and n = the
|
|
number of columns. You should assume that calling new [] or delete []
|
|
on an array will take time proportional to the number of elements in
|
|
the array.
|
|
|
|
get
|
|
|
|
set
|
|
|
|
num_rows
|
|
|
|
get_column
|
|
|
|
operator<<
|
|
|
|
quarter
|
|
|
|
operator==
|
|
|
|
operator!=
|
|
|
|
swap_rows
|
|
|
|
rref (provided in matrix_main.cpp)
|
|
|
|
|
|
|
|
TESTING & DEBUGGING STRATEGY:
|
|
Discuss your strategy for testing & debugging your program.
|
|
What tools did you use (gdb/lldb/Visual Studio debugger,
|
|
Valgrind/Dr. Memory, std::cout & print, etc.)? How did you test the
|
|
"corner cases" of your Matrix class design & implementation?
|
|
|
|
MISC. COMMENTS TO GRADER:
|
|
(optional, please be concise!)
|
|
|