1st 10 Flashcards
Worst-case time is important for
real time algorithms
is the physical implementation of an ADT.
Each operation associated with the ADT is implemented by one or more subroutines in the implementation.
Data Structure
usually refers to an organization for data in main memory.
Data Structures
an organization for data on peripheral storage, such as a disk drive.
File structure
a definition for a data type solely in terms of a set of values and a set of operations on that data type.
Each ADT operation is defined by its blank and blank
Abstract Data type (ADT)
inputs and outputs.
An ADT manages complexity through
abstraction/metaphor or in other terms:
Hierarchies of labels
Ex: transistors then gates then CPU.
Data items have both a
blank is the definition of the data item within an ADT.
Ex: Integers in the mathematical sense: +, -, dibide, multiply
implementation of the data item within a data structure.
Ex: 16/32 bit integers, overflow.
logical and a physical form.
logical
physical form.
The data items of ADT and Data structure are?
Logical form and Physical form
As n grows, how does T(n) grow?
Cost: T(n) = c1n^2+ c^2 steps
The best case for my algorithm is n=1 because that is the fastest.” WRONG!
Big-oh refers to a growth rate as blank grows to infinity
Best case is defined for the input of size n that is cheapest among all inputs of size n.
n to infinity