CS Notes
CS Notes
1. Introduction
• De nition: Computer Science is the study of computers, computational systems, and the
theory of algorithms.
• Applications: Software development, arti cial intelligence, data science, cybersecurity,
and more.
• History: From early computing devices like the abacus to modern supercomputers.
2. Basic Concepts
• Central Processing Unit (CPU): The brain of the computer, which executes instructions
from programs.
• RAM (Random Access Memory): Temporary memory used by the CPU to store data
for active processes.
• Cache Memory: Small, fast memory that stores frequently used data to improve
performance.
5. Programming Foundations
• Variables and Data Types: Used to store data in a program. Common types: Integer,
Float, String, Boolean.
• Control Structures:
◦ Conditionals: if, else, elif
◦ Loops: for, while
• Functions: A block of code designed to perform a particular task.
• Classes and Objects: Fundamental to OOP, where classes are templates for creating
objects (instances).
fi
fi
fi
fi
• Classes and Objects: Fundamental to OOP, where classes are templates for creating
objects (instances).
• Encapsulation: Hiding the internal workings of an object and exposing only necessary
components.
• Inheritance: A mechanism where a new class is derived from an existing class.
• Polymorphism: The ability of different classes to be treated as instances of the same
class.
7. Databases
• Relational Databases: Store data in tables with relationships between them. Example:
SQL.
• NoSQL Databases: Used for unstructured data. Example: MongoDB.
• CRUD Operations: Create, Read, Update, Delete – basic operations for interacting with
databases.
10. Cybersecurity
• Books:
◦ Introduction to Algorithms by Cormen, Leiserson, Rivest, and Stein
◦ Clean Code by Robert C. Martin
• Websites:
◦ Khan Academy
◦ Coursera
Conclusion
These notes offer a broad overview of the key concepts in the eld of Computer Science. Further
exploration of each topic can deepen your understanding and provide the foundation for more
advanced study in specialized elds.
fi
fi