apcsa quiz 21-26

studied byStudied by 26 people
5.0(1)
Get a hint
Hint

quick sort

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

29 Terms

1

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

New cards
2

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

New cards
3

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

New cards
4

insertion sort

Finds correct insert point and right shifts any values between the start and insertion point

New cards
5

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

New cards
6

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

New cards
7

abstract class

a class in which some or all methods are declared abstract and left without code

New cards
8

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

New cards
9

inheritance

The process of deriving new classes from existing classes

New cards
10

stub

an incomplete routine which can be called but does not solve anything yet

New cards
11

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

New cards
12

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

New cards
13

order of algorithms

based on the number of steps that it takes to complete a task, used to compare algorithms

New cards
14

superclass

The more general class that forms the basis for inheritance

New cards
15

subclass

The more specialized class that inherits from the superclass

New cards
16

swap

Exchanging two values in a list, takes 3 lines of code and uses a temporary variable

New cards
17

cubic

The number of steps increases as a cube of N

New cards
18

linear

the number of steps is directly proportional to the size of the data set

New cards
19

constant

the size of the data set does not affect the number of steps this type of algorithm takes

New cards
20

recursion

When a method calls itself to solve a simpler version of the problem

New cards
21

instance

a specific realization of any object

New cards
22

early binding

the compiler picks the correct method when translating the program, before the program ever runs, applied w/ overloaded methods

New cards
23

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

New cards
24

merge

Combines two sorted sublists into one completely sorted list

New cards
25

quadratic

the number of steps required to solve a problem increases as a function of the square of N

New cards
26

Big O Notation

Function written with capital O (order), signifying notation of an order of an algorithm

New cards
27

log2N

Involves splitting data in half repeatedly - the number of steps increases as a function of log2N

New cards
28

N*log2N

Algorithms of this type have a log2N concept that must be applied N times

New cards
29

nondecreasing order

no element is less than the element before it

New cards

Explore top notes

note Note
studied byStudied by 2220 people
... ago
4.7(3)
note Note
studied byStudied by 24 people
... ago
5.0(1)
note Note
studied byStudied by 42 people
... ago
5.0(2)
note Note
studied byStudied by 48 people
... ago
5.0(1)
note Note
studied byStudied by 452 people
... ago
5.0(3)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 19 people
... ago
4.5(2)
note Note
studied byStudied by 23406 people
... ago
4.5(119)

Explore top flashcards

flashcards Flashcard (41)
studied byStudied by 2 people
... ago
4.0(1)
flashcards Flashcard (26)
studied byStudied by 173 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 21 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (47)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 3 people
... ago
5.0(1)
robot