$24
Write this homework in LaTex, with
Update your photo on D2L to be a recognizable headshot of you.
Consider the third function de ned in EPI, Section 13.1 (Compute the Intersection of Two Sorted Arrays).
When we design an algorithm, we design the algorithm to solve a problem or answer a question. What is the problem that this algorithm solves?
Prove that the while loop terminates using a decrementing function.
Prove the following statement: Every tree with one or more nodes/vertices has exactly n 1 edges.
Consider the following statement: If a and b are odd numbers, then ab is an odd number.
What is the de nition of an odd number?
What is the de nition of an even number?
What is the contrapositive of this statement?
Prove this statement, using the contrapositive.