Class Notes
Class Notes
organized manner. This format can be adapted to different subjects within computer
science:
---
- **What is a Computer?**:
- An electronic device that manipulates information or data.
- Can store, retrieve, and process data.
- **Programming Languages**:
- High-level vs. low-level languages.
- Examples: Python, Java, C++.
---
- **Algorithm**:
- A step-by-step procedure for solving a problem or performing a task.
- Characteristics: finite, clear, and effective.
- **Data Structure**:
- A way of organizing and storing data to enable efficient access and
modification.
- Examples: Arrays, Linked Lists, Stacks, Queues, Trees, Graphs.
- **Big O Notation**:
- Describes the performance or complexity of an algorithm.
- Common complexities: O(1), O(n), O(log n), O(n^2).
- **Sorting Algorithms**:
- **Bubble Sort**: Simple but inefficient for large datasets.
- **Merge Sort**: Efficient and commonly used.
- **Quick Sort**: Efficient