Lecture - 1
Lecture - 1
and Algorithms
Sem II - 2024-25
Who are we ?
- TAs will be assigned to batches - the listing will be up by next week on the
course website
What is this course?
Introduces to the idea of building programmatic solutions to problems
2. Positional notation of
numbers
(possibly 2000 BC in
Babylonia)
A collection could be a
● Approach 1:
Names = [“Veeru”, “Basanti”, “Jai”]
Batch= [1, 4, 3]
Entrynumber = [001, 004, 002]
Typical operations:
Adding a new student, deregistering Basanti from the course, …
Representing a Collection of Students of COL106
● Approach 2:
Student1 = { Name : ”Veeru”, Batch : 1, Entrynumber : “001”}
Student2 = { Name : ”Basanti”, Batch : 4, Entrynumber : “004”}
Student3 = { Name : ”Jai”, Batch : 3, Entrynumber : “002”}
Typical operations:
Adding a new student, deregistering Basanti from the course, …
Object Orientation
● Class
○ A “template” for objects – values identifiers, methods that define the behavior of the object