Roles Of Algorithm In Real World
Insertion Sort
Loop Invariant
Complexity Analysis
Mixed bag
100

This is a search algorithm used by search engines to index web pages.

What is crawling?

100

In insertion sort, this element is compared and inserted into its correct position in the sorted part.

What is the key element?

100

A loop invariant is a condition that remains _______ before and after every iteration of a loop.

What is true?

100

This term describes the growth rate of an algorithm as input size increases.

What is Big-O notation?

100

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?

200

Algorithms in this field help optimize delivery routes for logistics companies.

What is logistics?

200

The worst-case time complexity of insertion sort.

What is O(n^2)?

200

Loop invariants are crucial for proving this property of an algorithm.

What is correctness?

200

In complexity analysis, this factor is ignored to simplify the analysis.

What are constants?

200

This is the name of the process of proving an algorithm works for all inputs using a general case.

What is mathematical induction?

300

Social media platforms use algorithms for this, which decides what content users see.

What is content recommendation?

300

The number of swaps required in insertion sort compared to bubble sort is typically _______.

What is fewer?

300

In insertion sort, the loop invariant states that the subarray to the left of the key is _______.

What is sorted?

300

The space complexity of an algorithm depends on these two factors.

What are input size and auxiliary variables?

300

In Big-O notation, this symbol represents logarithmic complexity.

What is O(log n)?

400

The algorithm used by banks to detect unusual transactions and prevent fraud.

What is fraud detection?

400

This is the reason insertion sort performs well for nearly sorted arrays.

What is low number of shifts?

400

This is the term for showing that a loop invariant holds before the loop begins.

What is initialization?

400

This type of algorithm has the same time complexity for the best, average, and worst-case scenarios.

What is O(n)?

400

The best-case time complexity of insertion sort.

What is O(n)?

500

This algorithm type is used in genetic research to sequence DNA efficiently.

What is dynamic programming?

500

The number of comparisons required for a completely sorted array of size n.

What is n−1?

500

The process of showing a loop invariant holds at the start of the next iteration.

What is maintenance?

500

Fastest non-traditional time complexity of sorting algorithms.

log2n

500

Arguably the most dreaded error/exception while using programming languages such as c++

What is a segmentation fault?