Chapter 7 Flashcards

1
Q

Does f(n)En(square)

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is definition of O notation and omega notation

A

The definition of Omega notation relies on proving both a lower and upper asymptotic bound

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is O notation

A

The O-notation is used to state only the asymptotic upper bounds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is omega notation

A

The omega notation allows us to state only the asymptotic lower bound

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are Asymptotic Notations

A

Asymptotic Notations are languages that allow us to analyze an algorithm’s running time by identifying its behavior as the input size for the algorithm increases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to make an algorithm

A

First make mathematical definition of a problem, then make a strategy, and then find an algorithm. Then write algorithm in suedo language and then write analysis on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is divide and conquer strategy

A

The divide and conquer is a strategy to solve a large number of computational problems. It has 3 parts.
Divide: Divide the problem into small number of pieces
Conquer: Solve each piece by applying divide and conquer to it recursively
Combine: The pieces together into a global solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How merge sort algorithm works

A

Divide: Split the array down the middle into 2 sub sequences, each of size roughly n/2
Conquer: Sort each sub sequences by calling merge sort recursively on it.
Combine: Combine the 2 sorted sub sequences into a single sorted list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly