Definitions Flashcards
Array
A finite, ordered set of elements of the same type.
Overflow
reached maximum size but trying to push
Underflow
empty but trying to pop.
Stacks
Items are added to the top of the stack and removed from the front.Used to hold return addresses when subroutines are called, when you press back in browser and undo in word processing.
List
An abstract data type consisting of a number of items which may occur more than once.
Pop
removing and returning an item from data strucutre
Push
Adding an item to a data structure
Queue
An ordered collection of items where new elements are added at the end of a queue and removed from the front of the queue. Used for waiting to print (queue on disk)
Dynamic Data Structure
A collection of data in memory that has the ability to increase or decrease in size while a program is running
Static Data Structure
A collection of data in memory that is fixed in size and cannot increase or decrease in size while the program is running.
Abstract data types
a data type created by the programmer rather than defined in a programming language.
Records
To store data permanently so you can read and update it at future dates. (Database)
Tuples
A dynamic data structure where the elements do not have to be the same type, and the number of elements in tuple can increase or decrease.
2-dimensional array
A collection of data items of the same data type Under one identifier but uses two index numbers. It can be represented as a table.
Compression
reduce the storage space of files on disk.
Lossy compression
non-essential information is removed from the original file.
Lossless compression
retains all information required to replicate the original file exactly.
Attribute
a property or characteristic of an entity.
Flat file database
consists of a single file (one entity).
Relational Databases
different entities in a system may be linked in some way, and the two entities are said to be related.
Primary Key
An entity’s unique identifier, normally a numeric ID.
Secodary Key
An index so that something can be quickly searched up. It would be quicker to search a secondary key like a name than a primary key ID.
Index
so that a record can be quickly located in the database an index is maintained so that it will give the position of each record. Primary keys and other things that are often searched (secondary keys) are indexed.
Foreign Key
the attribute that links the two entities/table (attribute that is common in both tables, can be more than one.)