Mock-Midterm-Exam-02
Tags: #◇Computer Science #◇CCDSALG #◇Mock-Midterm-Exam-02 #◇Conceptual
◇Overview
The second mock exam focuses heavily on algorithm analysis (frequency counting, explicit functions, and recurrence relations), determining the appropriate asymptotic notations (Big Oh, Omega, Theta), evaluating sorting algorithms (Bubble Sort, Selection Sort, Insertion Sort, Merge Sort), and converting expressions among infix, postfix, and prefix notations.
◇Important Formulas
Recurrences: Examples include and .
Logarithmic Time: Merge sort combines two sorted arrays in time, yielding an overall time complexity of .
◇Worked Examples
- Expression Conversion: Converting to postfix and prefix.
- Queue and Stack Methods: Writing a function to copy a queue to a stack while retaining the queue's original contents.
- Code Behavior: Analyzing the effect of changing the condition from
>to<in a Selection Sort implementation.
◇References & Navigation
- Previous Topic: ◇Mock-Midterm-Exam-01
- Related Notes: ◇Mock-Midterm-Exam-01
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
What is a key focus of Mock Midterm Exam 02 that differentiates it slightly from the first exam?
Which algorithmic notation is used to describe a tight bound on running time?
What time complexity does Merge Sort achieve by combining two sorted arrays in time?
What worked example is mentioned regarding expression conversion?