Class Notes - Introduction to Computer Science
Date: August 25, 2025
Topic 1: Basics of Algorithms
An algorithm is a step-by-step procedure for solving a problem or performing a task. It must be
clear, finite, and effective.
Topic 2: Data Types and Variables
Programming languages use different data types such as integers, floating-point numbers, strings,
and booleans. Variables are named locations used to store these values.
Topic 3: Control Structures
Control structures such as if-else, loops (for, while), and switch statements allow us to control the
flow of execution in a program.
Topic 4: Functions
Functions are reusable blocks of code that perform a specific task, helping to make programs more
organized and maintainable.
Key Takeaways
• Algorithms must be efficient and clear.
• Choosing the right data type is important for performance.
• Control structures help in decision-making and iteration.
• Functions allow for modular and reusable code.