University Notes Simulation 3
University Notes Simulation 3
Computer science studies algorithms, data structures, and the principles of computing. Key areas
Fundamental Concepts:
- Data Structure: Way to store and organize data (e.g., arrays, lists).
History:
Programming Basics:
Programming involves writing instructions that a computer can execute. Key components include
Python:
def greet(name):
Sorting Algorithms:
- Bubble Sort: Repeatedly swaps adjacent elements if they are in the wrong order.
- Merge Sort: Divides the list into halves, sorts each, and merges them.