Algorithms, Sorting and Searching Flashcards

1
Q

What is abstraction?

A

The computational process of removing elements of a code or program that are not relevant.

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

What is decomposition?

A

The process of breaking down a problem into smaller sub-problems.

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

What is computational thinking?

A

A problem-solving technique that imitates the process programmers go through when writing computer programmes and algorithms.

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

What is linear search?

A

Linear search is the simplest form of searching. It is when an algorithm sorts through elements in a list one by one until a match is found.

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

What is binary search?

A

A search method used by algorithms that splits a list into smaller sub-lists, which are constantly split until a match is found, or if the match is within the range of the sub-lists.

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

What is bubble sort?

A

A sorting method used by algorithms, where it goes through a list a number of times, comparing elements in pairs over and over to determine the correct order.

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

What is merge sort?

A

An efficient sorting method used by algorithms which splits a list into individual elements, and then sorts them by combining them in to doubling groups each time until a new list is made.

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

What is insertion sort?

A

A sorting method where an element is compared to another element in a pair. If the element on the left is smaller than or equal to the one on the right, no change is made. Otherwise, the element on the right is constantly moved left until the former condition is met.

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

What is casting?

A

The process of converting an object into a different data type (implicit means automatic and explicit means using a function)

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