Problem solving: Unit 2-3 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q
  • What are the two types of algorithms?
A
  • sorting algorithms.
  • searching algorithms.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a construct?

A
  • a smaller part from which something is built.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • What are the two sorting algorithms?
A
  • bubble sort.
  • merge sort.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • what is traversal?
A
  • travel across or through something.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

-what is recursion?

A
  • a process that is repeated.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • what is brute force?
A
  • an algorithm design that does not include any techniques to improve performance, but instead relies on computing power to try all possibilities until the solution to a problem is found.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  • what is divide and conquer?
A
  • an algorithm design that works by dividing a problem into smaller and smaller sub-problems, until they are easy to solve, the solution are then combined to give a solution to the complete problem.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  • what are the two searching algorithms?
A
  • linear search.
  • binary search.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is iteration?

A
  • a construct that means a process is repeated. An action is repeated until a condition is met or a particular outcome is reached.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is selection?

A
  • a construct that allows a choice to be made between different alternatives.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Compare binary search and linear search?

A
  • binary search is more efficient, wheras linear search will have multiple comparisons to be made.
  • ## binary search must be conducted in a sorted list, wheras linear search could be done in an unsorted list
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the limitation of Merge Sort? Bubble Sort?

A

limitation of merge sort is that it diffcult to code than, while bubble sort is more time consuming.

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