Module 3 Flashcards

1
Q

It is a straightforward approach based on the problem’s statement and concepts

A

Brute Force

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

What are the strengths of a brute force approach?

A
  • Wildly applicable and simple
  • Yields reasonable algorithms for some important problems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the weaknesses of a brute force approach?

A
  • Rarely yields efficient algorithms
  • Some brute-force algorithms are unacceptably slow
  • Not as constructive as other design techniques
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

This type of algorithm sorts an array by repeatedly finding the minimum element from unsorted part and putting it at a subarray in the beginning.

A

Selection Sort

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

In this type of sorting algorithm, the minimum element from the unsorted subarray is picked and moved to the sorted subarray in every iteration.

A

Selection Sort

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

This type of algorithm compares a given pattern with all substrings of a given text.

A

Brute-Force String Matching

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

in this type of algorithm, comparisons between substring and pattern proceed character by character unless a mismatch is found.

A

Brute-Force String Matching

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

In this type of algorithm, whenever a mismatch is found, comparisons are dropped and the next substring can be selected immediately.

A

Brute-Force String Matching

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

It is a brute force solution to a problem involving search for an element with a special property.

A

Exhaustive Search

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

This consists of a salesman and a set of cities. The salesman has to visit each one of the cities starting from a certain one and returning to the same city.

A

Travelling Salesman Problem

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

This problem, given a set of items with a weight and a value, determines the items to include when picked so that the total weight is less than or equal to a given limit and the total value is as large as possible.

A

Knapsack Problem

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

Who named the “Knapsack Problem”?

A

Tobias Dantzig

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