Lecture01 Introduction
Lecture01 Introduction
Algorithms
Introduction
Data structures and
Algorithms
• Lecturer: Phạm Bảo Sơn.
• Email: [email protected]
• Consultations: via email or after lecture.
• Course website:
– courses.uet.vnu.edu.vn
Step 3 Step 4
1. (Thăng, 29) 1. (Thăng, 29)
2. (Vinh, 26) 2. (Ánh, 27)
3. (Ánh, 27) 3. (Vinh, 26)
4. (Tuấn, 22) 4. (Tuấn, 22)
• x = ab, y = cd
• Compute a*c (1)
• Compute b*d (2)
• Compute (a+b)(c+d) (3)
• Compute (3) – (2) – (1) = (4)
• Product: (1)*10000 + (2) + (4)*100
• Recursive Algorithm
Phạm Bảo Sơn - DSA 2021-2022 s1
What is a good program?
1. Correctness
2. Effective
3. Simple/Understandable
4. Easy to find bugs
5. Easy to change and upgrade/maintain