1.4 data types, structures and algorithms(unfin) Flashcards
(24 cards)
primitive data types
integer
real/floating point
character
string
Boolean
abstract data types
composite data types
static vs dynamic
binary
types:
-positive integers
-sign and magnitude
-floating points
operations:
-addition, subtraction
-shifting: AND, OR, XOR
ASCII
Unicode
arrays
records
lists
tuples
linked list
graphs
-directed
-undirected
stack
tree
binary search tree
hash table
stored as array, with a key map to a unique index
collision: when two keys produce the same hash value, the item will be placed in the next available space
use: commonly use for indexing, as it allows quick access
K-map
Boolean expressions with logical operators
rules to simplify boolean expressions
logic gates
d-type flip flops
half adder
full adder