Download Computer Science Essentials: Study Notes and more Study notes Computer science in PDF only on Docsity!
Computer Science Essentials
A clean, visual set of notes covering the foundations of computing, programming, data, networks, databases,
and cybersecurity.
01 Computational thinking
- Decomposition: break a complex problem into smaller, manageable parts.
- Pattern recognition: identify repeated structures or relationships.
- Abstraction: focus on important details while hiding unnecessary complexity.
- Algorithm: a finite sequence of clear steps that solves a problem.
- Pseudocode: language-independent, human-readable steps used to plan an algorithm.
Input Process Output
Algorithm = a finite, ordered procedure for solving a problem
Algorithm qualities
Quality Meaning
Correctness Produces the intended result for valid inputs.
Finiteness Eventually stops rather than running forever.
Efficiency Uses reasonable time and memory.
Clarity Steps are precise and unambiguous.
Programming fundamentals
Programming is the process of expressing algorithms in a language that a computer can execute.
Core building blocks
Concept What it does
Variable Names a stored value that can change during execution.
Data type Describes what kind of value is stored, such as integer, floating-point, Boolean, or string.
Condition Makes a decision based on whether an expression is true or false.
Loop Repeats instructions while a condition is met or for a defined number of times.
Function Reusable block of code that performs a task and may receive inputs and return a value.
Array/List Stores multiple values in an ordered collection.
Logic to remember
- Boolean values are typically True/False.
- AND requires both conditions to be true; OR requires at least one; NOT reverses a Boolean value.
- Use == for comparison in many languages and = for assignment where the language defines it that way.
- Good code favors readability, modularity, testing, and meaningful names.
Debugging mindset
When code fails: reproduce the problem → isolate the smallest failing part → inspect inputs and assumptions → test a change → verify the fix.
Computer systems & networks
Under the software layer are hardware components, operating systems, and communication networks that
work together.
Hardware essentials
Remember the roles
- CPU: executes instructions and performs calculations.
- RAM: fast, temporary working memory used by active programs.
- Storage: keeps data persistently, such as SSDs and hard drives.
- GPU: specialized for highly parallel computations, especially graphics and some scientific/AI workloads.
- Operating system: manages hardware/resources and provides services for applications.
A
B
C
D
Nodes communicate through links using agreed protocols.
Networking vocabulary
Term Meaning
IP address Address used to identify an interface/device on an IP network.
Router Forwards packets between networks.
DNS Translates domain names into IP addresses and related records.
HTTP/HTTPS Protocols used for web communication; HTTPS adds encryption and authentication via TLS.
Bandwidth Maximum data-transfer capacity of a connection.
Latency Delay between sending and receiving data.
Databases, security & digital responsibility
Modern computing depends on reliable data storage and responsible protection of systems and people.
Databases
Concept Quick definition
Database Organized collection of data designed for efficient storage and retrieval.
Table Structured set of rows and columns in a relational database.
Primary key Field or combination of fields that uniquely identifies a record.
SQL Language commonly used to query and manage relational databases.
Normalization Organizing relational data to reduce unnecessary duplication and update anomalies.
SYSTEM
Confidentiality Integrity
Availability
Cybersecurity basics
The CIA triad
- Confidentiality: only authorized people/systems can access information.
- Integrity: information remains accurate and is not improperly altered.
- Availability: authorized users can access systems and data when needed.
- Use strong unique passwords , multi-factor authentication where available, software updates, backups, and careful handling of links/files.
- Treat unexpected requests for passwords, codes, or sensitive information as suspicious; verify through an independent channel.
The bigger picture
Computer science is not just coding. It combines problem solving, algorithms, data, systems, communication, security, and human-centered design.