Binary Multiplication Flashcards
Up to what size number n can two integers be summed in a single CPU operation (O(1))?

what is the efficiency of the following:


What is the algorithm for binary multiplation using the grade school method.
Complete it and share the complexity


What is the naive algorithm for this base 10 number multiplication?
2715 * 6399

Perform the naive algorithm multiplation for these base 2 numbers:
0110 * 1101

What is the general multiplication for two n-bit integers
a * b

What is the Divide-and-conquer for general case of n-bit integers

How efficient is the following? What is the recursive formula?


Using master theorem, what is the speed of this algo:


What is the observation that leads to Karatsuba’s Multiplication algo?

What is the Divide, Conquer and Combine for Karatsuba’s mult algo?

What is the recursive formula for Karatsuba’s mult algo and what is it’s speed?

What are the algorithms that divide the size n into subproblems of approximately equal size?

What are the divide and conquer algos that divide the problem into subproblems of uneven sizes?

What is the divide,conquer and combine for quick sort?

What is the worst-case performance of QuickSort?

What is the performance of best case quickSort?

What are the different pivot choice implementations of QuickSort?

What is the complexity of:
Summing/Multiplying two numbers, where n <= the number of bits in a word of memory?
Summing/Multiplying two numbers where n is > the number of bits in a word of memory?
If n <= the number of bits in a word of memory:
- Both operations take one CPU cycle, O(1)
If n is > the number of bits in a word of memory:
- Summing:
- Theta of (n), where n is the num of columns
- Multiplying:
- Theta of (n2)