Java Games: Flashcards, matching, concentration, and word search.

C++ Lambert Ch 10

AB
bubble sorta sort that rearranges elements of an array until they are in either ascending or descending order. Consecutive elements are compared to move the elements to the top or bottom accordingly on each pass
selection sorta sorting algorithm that sorts the components of an array in either ascending or descending order. This process puts the smallest or largest element in the top position and repeats the process on the remaining array components.
insertion sortsorts an array of elements that starts with an empty array and inserts elements one at a time in their proper order
best caseThe arrangement of data items prior to the start of a sort function to finish in the least amount of time for that particular set of items - minimum number of comparisons required for the algorithm
worse caseThe arrangement of data items prior to the beginning of the sort procedure which causes that procedure to take the longest amount of time for that particular set of items 0 maximum number of comparisons required for the algorithm
order of magnitudepower of ten. Two numbers have the same order of magnitude if their representations in scientific notation have identical exponents to designate the power of ten
big-O notationsaying that an algorithm is O(f(n)) indicates that the function f(n) may be useful in characterizing how efficiently the algorithm performs for large n. For such n, we are assured that the operations required by the algorithm will be bounded by the product of a constant and f(n)
logarithmic algorithmsan algorithm whose effiency is dominated by a term of the form log n
linear algorithmsa polynomial algorithm in which the highest nonzero term is n
quadratic algorithmsa polynomial algorithm in which the highest nonzero term in n-squared
cubic algorithmsa polynomial algorithm in which the highest nonzero term in n-cubed
exponential algorithmsan algorithm whose efficiency is dominated by a term of the form k n.
physically sorteddata to be arranged in order within the array being sorted
logical orderan ordering of data items according to some defined criterion such as alphabetic, increasing numeric and so forth. That logical order of the data may or may not be the physical order of the data as stored in the computer
pointera memory location containing the location of another data item
pointer sorta sort in which pointers to the data are manipulated rather than the data themselves
data about datawhat pointers store
time/space trade offthe maxim that an attempt to make a program more efficient in terms of time will only come as a result of a corresponding decrease in efficiency in terms of space, and vice versa
radix sortsorts integer data by repeatedly placing the items into bins and then collecting the bins, starting with the least significant digit for the first pass and finishing with the most significant digit
bin sortradix sort
search algorithmsfind a particular data item in a large collection of such items
sequential searchthe process of searching a list by examining the first component and then examining successive components in the ordere in which they occur
compiler symbol tablelist of identifiers maintained by a compiler as it parses a source program
binary searchthe process of examining a middle value of a sorted array to see which half contains the value in question and halving until the value is located
profiling an algorithma means of empirically measuring the execution of an algorighm by inserting counters to keep track of the number of times certain instructions are executed during a run of the program
watch objecta monitoring object that measures work in terms of time
counter objectmeasures work simply by counting specific kinds of operations performed by the algorithm
paging algorithmis responsible for bringing into main memory the page the program requests
log2n search algorithma search algorithm whose efficiency is dominated by a term of the form log2n
polynomial algorithjman algorithm whose efficiency can be expressed in terms of a polynomial
state spacethe space of all possible states which can be generated in the solution to a given problem
virtual memorymemory divided into pages some stored on disks
dominant termthe highest powers of n in a polynomial. For large n, the behavior of the entire polynomial will approach the behavior of a polynomial that contains only that term
heuristicsrules of thumb that cut doen on the number of possible choices to examine. They often lead to quick solutions but do not guarantee a solution the way an algorithm does
big-O analysisa technique for estimating the time and space requirements of an algorithm in terms of order of magnitude
linear searchsequential search


The Summit Country Day School
Cincinnati, OH

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities