Unit 3- Part 1 Flashcards

(11 cards)

1
Q

What is the definition of an algorithm?

A

It is an ordered sequence of well defined finite instructions that given an initial state, performs some task and halts in finite time

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

What does an algorithm offer?

A

a clear start and end points for the system/task

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

What is the order of the Software Development Cycle?

A

-Specification
-Design
-Implementation
-Testing

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

What are the ways that Algorithms can be illustrated in?

A

-Pseudo Code
-Flow Charts
-Natural Language

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

Representations of algorithms are generally grouped in what 3 levels?

A

-High Level Description
-Implementation Description
-Formal Description

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

How does a Divide and Conquer algorithm work?

A

Repeatedly divide a problem into smaller subproblems until they are easy to solve
-then combine the solutions to the subproblems to solve the original problem

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

What is an example of Divide and Conquer algorithm?

A

-Merge Sorting Algorithm

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

How does Dynamic Programming work?

A

-constructs optimal solution to a problem from optimal solutions to subproblems

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

What is an example of Dynamic Programming?

A

All-Pair Shortest Path Algorithm

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

How does a Greedy Algorithm work?

A

-Makes locally optimal decisions even if they are inaccurate

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

How does a Search and Enumeration algorithm work?

A

Systemically checking all possible candidates for the solution

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