132 final Flashcards
TC
sorting w/o recursion
n2
TC
searching a sorted array
log n
TC
searching array
n
TC
sorting recursively
nlogn
TC
sort a tree
logn
TC
search a tree
n
why is bubblesort useful for smaller data sets?
bubblesort can be broken out of, it knows when it is sorted
TC
bubblesort best time
n
to remove from a linked list
x.next.prev = x.prev
Index
left child =
(parentindex *2)+1
index
right child=
(parentindex*2)+2
Parent
(child-1)/2
if something doesnt exist in your stack the number representation is ?
-1
default layout of a JFrame
border layout
TC
bubblesort
n2
TC
selection sort
n2
TC
quicksort
nlogn
TC
mergesort
nlogn
variable
static
belongs to the class and can be accessed by the class, but not by objects of the class
variable
this
can call on another constructor in your class