Unit 5 test Flashcards

1
Q

What is the most efficent algorithm

A

binary, sequential,bubble,selection

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

What is Big o notation

A

it is the measure of the efficency of an algorithm, it describes the relationship of the runtime and how it will scale with certain input variables

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

What does efficency mean?

A

efficency is the amount of computer resources required to perform its function, minimizing the amount of computer resources used such as the cpu is important

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

what is correctness

A

correctness is the extent of which the algorithm satisfies its specification free from fault and fulfills its objectives determined during the design of the algorithm

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

what is reliability

A

reliability is the capability of the algorithm to maintain a predefined performance level

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

what is flexibility

A

the effort required to modify the algorithm for a different purpose

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

explain bubble sort

A

bubble sort is a sorting algorithm thats purpose is to sort values in different orders such as ascending, descending, and alphabetical, it does so by comparing adjacent values and exchanging them if they are not in the correct order

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

explain selection sort

A

selection sort is another type of sort that sorts numbers by creating two sections, one being a sorted section and the other being an unsorted section, in doing so , the algorithm loops and finds the lowest or highest number in the array depending on how the array is going to be sorted and replaces it with the leftmost value in the unsorted section and does so till all the values in the array are sorted

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

explain binary search

A

binary search is an algorithm that searches for a certain value by narrowing down the possible values by dividing, if a value is greater than the middle value all values less than that will be ignored and will keep doing so till the middle value is the target value

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

explain sequential search

A

sequential search is an algorithm that iterates through each value in an array till the target value is found

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

outline the difference between sequential search and binary search

A

the difference between sequential search and binary search is that sequential search does not require the array to be sorted.

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

outline the difference between bubble sort and selection sort

A

the difference between bubble sort and selection sort is that buble sort compares adjacent values and exchanges them while selection sort searches for the minimum or maximum value and replaces it with the leftmost value in the unsorted section.

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