SLR08 ALGORITHMS Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an Algorithm?

A

A specific sequence of steps that can be followed to complete a task

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

What is abstraction?

A

Removing the unnecessary details and filtering the necessary ones.
It is a method of computational thinking.

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

What is decomposition?

A

Breaking a complex problem down into smaller tasks.
It is a method of computational thinking.
To make problems easier to solve, can divide the work for each person in a group, program components developed can easily be used in other programs.

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

What is an example of algorithmic thinking?

A

The way of getting a solution by identifying the individual steps needed. Creating a set of rules, an algorithm that if followed precisely leads to an answer.
E.g learning multiplication. Following these rules can get the answer to a problem.

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

Which two ways would you do to describe algorithms?

A

Pseudo code and flow diagrams

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

How would we visually see if a program works without running it?

A

We could use trace tables which works as a yes/no trace table to see each and every outcome.

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

What is linear search?

A

From the beginning of a data set, each item is checked in turn to see if it is the one it searches for.

  • doesn’t require any order
  • Any type of storage device
  • efficient in smaller sets
  • inefficient in large data sets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is binary search?

A

It is to calculate a mid-point in a data set.
If the item is to be found higher or lower. It will set the mid point in that range until it is found.
Requires order
More efficient on average.

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