Dsa 5 - Analysis Of Algorithms With Correct Answers 100%
DSA 5 - ANALYSIS OF ALGORITHMS WITH CORRECT ANSWERS 100% O(log n) - Correct Answer Identify the worst case runtime complexity of an algorithm that efficiently deletes a node from a Red-Black tree. O(n log n) - Correct Answer Identify the worst case runtime complexity of an algorithm that sorts an array (or list), by first dividing the n-element sequence into two n/2 element subsequences. Next, the algorithm recursively sorts the subsequences by dividing each subsequence, until each sequence has only one element. Finally, the algorithm combines the two sorted subsequences. Choose the best answer. O(log n) - Correct Answer Identify the worst case runtime complexity of an algorithm that efficiently inserts a new node into a Red-Black tree. O(n) - Correct Answer Identify the worst case runtime complexity of a program that computes Fibonacci Numbers recursively, but also stores solutions of subproblems to reduce runtime complexity. Choose the best answer. O(n^2) - Correct Answer Identify the worst case runtime complexity of the Selection Sort algorithm. Choose the best answer. O(n) - Correct Answer Identify the best case runtime complexity of a program that computes Fibonacci Numbers iteratively. Choose the best answer. O(n) - Correct Answer Identify the best case runtime complexity of the Bubble Sort algorithm. Choose the best answer. O(n log n) - Correct Answer Identify the best case runtime complexity of the Merge Sort algorithm. Choose the best answer. O(n) - Correct Answer Identify the best case runtime complexity of the Insertion Sort algorithm. Choose the best answer. O(1) - Correct Answer Identify the best case runtime complexity of a program that searches a sorted array by comparing the target value to each value in the array, until the target value is found or until the all values have been compared. Choose the best answer. O(2^n) - Correct Answer Identify the average case runtime complexity of a program that attempts to crack a password by trying every possible combination of characters. Choose the best answer. O(log n) - Correct Answer Identify the average case runtime complexity of an algorithm that efficiently deletes a node from a Binary Search tree. O(n^2) - Correct Answer Identify the average case runtime complexity of the Selection Sort algorithm. Choose the best answer. O(n) - Correct Answer Identify the average case runtime complexity of a linear search over an array or list. Choose the best answer. O(n log n) - Correct Answer Identify the average case runtime complexity of the Quick Sort algorithm. Choose the best answer.
Document information
- Uploaded on
- March 26, 2026
- Number of pages
- 2
- Written in
- 2025/2026
- Type
- Exam (elaborations)
- Contains
- Questions & answers