apcsa quiz 21-26

5.0(1)
studied byStudied by 26 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

this has extra vocab words!! other set w/ only the required words is also available on my profile

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards
quick sort
Chooses arbitrary value from somewhere in list (usually middle value), roughly sorts lists into two left/right sublists (smaller values on left, greater values on right), recursively sorts until a list of one value is obtained
2
New cards
merge sort
Divides list in half until sublists are 1/2  values in length, then calls merge algorithm on small sublists before merging progressively larger sublists
3
New cards
bubble sort
Finds largest item and places it at end of item, removes largest item most recently found from set to be searched, repeats until # of items to be searched is 0
4
New cards
insertion sort
Finds correct insert point and right shifts any values between the start and insertion point
5
New cards
selection sort
Makes comparison between item and smallest/largest item found so far in passage through items, causing swapping to only occur once each for each pass
6
New cards
binary search
Divides a list in half, checks to see if the value in the middle of the list equals the value being searched for, and repeats for the appropriate sublist until the value is found
7
New cards
abstract class
a class in which some or all methods are declared abstract and left without code
8
New cards
polymorphism
Greek for “many shapes” - The principle that the actual type of the object determines the method to be called; The same computation works for objects of many forms and adapts itself to the nature of the objects
9
New cards
inheritance
The process of deriving new classes from existing classes
10
New cards
stub
an incomplete routine which can be called but does not solve anything yet
11
New cards
concrete class
A class where all the methods are fully defined and which has no abstract fields; a program can only create objects out of these classes
12
New cards
interface
a blueprint or design specification, encapsulates only abstract methods and constants -  lists a few methods, giving their names, return types, and argument lists, but does not give any code
13
New cards
order of algorithms
based on the number of steps that it takes to complete a task, used to compare algorithms
14
New cards
superclass
The more general class that forms the basis for inheritance
15
New cards
subclass
The more specialized class that inherits from the superclass
16
New cards
swap
Exchanging two values in a list, takes 3 lines of code and uses a temporary variable
17
New cards
cubic
The number of steps increases as a cube of N
18
New cards
linear
the number of steps is directly proportional to the size of the data set
19
New cards
constant
the size of the data set does not affect the number of steps this type of algorithm takes
20
New cards
recursion
When a method calls itself to solve a simpler version of the problem
21
New cards
instance
a specific realization of any object
22
New cards
early binding
the compiler picks the correct method when translating the program, before the program ever runs, applied w/ overloaded methods
23
New cards
late binding
Correct selection of a method takes place when a program runs, based on principle that the actual type of the object determines the method that runs
24
New cards
merge
Combines two sorted sublists into one completely sorted list
25
New cards
quadratic
the number of steps required to solve a problem increases as a function of the square of N
26
New cards
Big O Notation
Function written with capital O (order), signifying notation of an order of an algorithm
27
New cards
log2N
Involves splitting data in half repeatedly - the number of steps increases as a function of log2N
28
New cards
N\*log2N
Algorithms of this type have a log2N concept that must be applied N times
29
New cards
nondecreasing order
no element is less than the element before it