Unit 4 - Exchanging Data Flashcards
what is lossy compression
non-essential data is permanently removed
how does lossy compression work on images
different shades of the same colour in an image will be made into a single shade
how does lossy compression work on sound files
frequencies outside the human hearing range are removed
what is lossless compression
patterns in the data are spotted and summarised in a shorter format without permanently removing any information
what is run length encoding
a basic method of compression that summaries consecutive patterns of the same data. this works well with image and sound where data can be repeated many times
what is dictionary compression
spots regularly occurring data and stores it separately in a dictionary. the reference to the entry in the dictionary is stored in the main file thereby reducing the original data stored
what is encryption
the transformation of data from one form to another to prevent an unauthorised third party from being able to understand it
what is plain text
the original data or message
what is cipher text
the encrypted data
what is the cipher
the encryption method or algorithm
what is the key
the secret information to lock or unlock the message
give an overview of the caesar cipher
a type of substitution cipher that works by shifting the letters of the alphabet along by a given number of characters
give an overview of the vernam cipher
the one-time pad (key) must be equal or longer in characters than the plaintext, random and only used once. one-time pads are used in pairs where the sender and recipient are both party to the key
what is symmetric encryption
- private key
- the same key is used to encrypt and decrypt
- this means that the key must also be transferred to the recipient
what is asymmetric encryption
- public key
- one key is made public so that others wishing to send you data can use this key to encrypt it
- the public key cannot decrypt the data
- a private key is used to decrypt the data
what is hashing
hashing turns your password or PIN into a short sting of letters and/or numbers using a hashing algorithm
what is a database
a database is an organised store of data usually controlled by a DBMS
what is a flat file database
consisting of information about a single entity
define entity
an entity is a category, object, person, event or thing of interest about which data needs to be recorded
define field
a field is one piece of information about the object (columns)
define record
a record is all of the fields about the individual object within an entity (rows)
how is an entity represented
table
define attribute
attributes define what type of data is stored in an entity
what is a primary key (entity identifier)
- each entity needs an identifier which uniquely identifies a particular record
- in a relational database, the identifier is knows as the primary key
- it is underlined in the entity description
what is the secondary key
- the primary key is automatically indexed so that any particular record can be found very quickly
- in some databases, searches may often need to be made on many fields
- so a secondary key is introduced
what is a composite primary key
- sometimes one or more attributes are needed to uniquely define a record
- in this case there is still one primary key, but made up of data from two or more fields
what are the three different relationships between entities
- one-to-one
- one-to-many
- many-to-many
how does a relational database work
a separate table is created for each entity identified in the system. where a relationship exists between entities, an extra field called a foreign key links the two tables