Lossy compression
Reduces file size by permanently removing data; not reversible; e.g., JPEG, MP3.
Lossless compression
Reduces file size without losing data; reversible; e.g., PNG, ZIP.
Run Length Encoding (RLE)
Replaces repeated consecutive characters with count + value (e.g., WWWWW -> 5W).
Dictionary coding
Replaces frequently occurring patterns with index references to a dictionary (e.g., LZW, GIF).
Symmetric encryption
Same key used for encryption and decryption; fast; problem = key exchange (e.g., AES).
Asymmetric encryption
Public key encrypts, private key decrypts; slower; used for key exchange/digital signatures (e.g., RSA).
Use of hashing
One-way function; verify integrity; store passwords; digital signatures.
Primary key
Uniquely identifies a record in a table.
Foreign key
Field in one table that references the primary key in another table; establishes relationship.
Secondary key
An indexed field used for searching that is not unique (e.g., searching customers by surname).
Entity Relationship (ER) modelling
Diagram showing entities, attributes, and relationships between entities.
Normalisation
Process of organising data to reduce redundancy and improve integrity.
First Normal Form (1NF)
No repeating groups; atomic values; primary key identified.
Second Normal Form (2NF)
1NF + No partial dependencies (non-key attributes depend on whole primary key).
Third Normal Form (3NF)
2NF + No transitive dependencies (non-key depends on non-key).
Indexing
Improves speed of data retrieval; uses additional storage; slows down INSERT/UPDATE/DELETE.
Referential integrity
Ensures foreign key values match a valid primary key; prevents orphan records.
ACID acronym
Atomicity, Consistency, Isolation, Durability (properties of database transactions).
Atomicity
Transaction is all-or-nothing; if one part fails, whole transaction rolls back.
Consistency
Transaction brings database from one valid state to another; constraints maintained.
Isolation
Concurrent transactions do not interfere; appear as if executed serially.
Durability
Once committed, transaction persists even after system failure.
Record locking
Prevents two users from editing the same record simultaneously.
Redundancy (database)
Duplication of data; normalisation removes it; can also refer to backup copies for fault tolerance.