This is a search algorithm used by search engines to index web pages.
What is crawling?
In insertion sort, this element is compared and inserted into its correct position in the sorted part.
What is the key element?
A loop invariant is a condition that remains _______ before and after every iteration of a loop.
What is true?
This term describes the growth rate of an algorithm as input size increases.
What is Big-O notation?
Sorting algorithms can be divided into these two categories based on whether they directly modify the input array.
What are in-place and out-of-place sorting algorithms?
Algorithms in this field help optimize delivery routes for logistics companies.
What is logistics?
The worst-case time complexity of insertion sort.
What is O(n^2)?
Loop invariants are crucial for proving this property of an algorithm.
What is correctness?
In complexity analysis, this factor is ignored to simplify the analysis.
What are constants?
This is the name of the process of proving an algorithm works for all inputs using a general case.
What is mathematical induction?
Social media platforms use algorithms for this, which decides what content users see.
What is content recommendation?
The number of swaps required in insertion sort compared to bubble sort is typically _______.
What is fewer?
In insertion sort, the loop invariant states that the subarray to the left of the key is _______.
What is sorted?
The space complexity of an algorithm depends on these two factors.
What are input size and auxiliary variables?
In Big-O notation, this symbol represents logarithmic complexity.
What is O(log n)?
The algorithm used by banks to detect unusual transactions and prevent fraud.
What is fraud detection?
This is the reason insertion sort performs well for nearly sorted arrays.
What is low number of shifts?
This is the term for showing that a loop invariant holds before the loop begins.
What is initialization?
This type of algorithm has the same time complexity for the best, average, and worst-case scenarios.
What is O(n)?
The best-case time complexity of insertion sort.
What is O(n)?
This algorithm type is used in genetic research to sequence DNA efficiently.
What is dynamic programming?
The number of comparisons required for a completely sorted array of size n.
What is n−1?
The process of showing a loop invariant holds at the start of the next iteration.
What is maintenance?
Fastest non-traditional time complexity of sorting algorithms.
log2n
Arguably the most dreaded error/exception while using programming languages such as c++
What is a segmentation fault?