Lecture 1 Introduction PDF
Lecture 1 Introduction PDF
Lecture 1: Introduction
14/10/2020
What to expect?
▪ Objectives:
▪ Text books:
▪ Reference books:
▪ Lecture 75%
► Assignments : 10%
► Mid-term : 30 % 75%
► Final : 60%
▪ Labs 25%
► Labs : 80% 25%
► Final Exam/Project : 20%
▪ How many cities with more than 250,000 people lie within
500 km of Islamabad?
▪ Data Search
► E.g., an inventory of 1 million(106) items of a store
▪ Processor Speed
► Processor speed although being very high, falls limited if the
data grows to billion records
▪ Multiple Requests
► As thousands of users can search data simultaneously on a
web server, even the fast server fails while searching the data
▪ Interface
► Represents the set of operations that a data structure
supports &
► Only provides the list of supported operations, type of
parameters they can accept and the return type of these
operations
▪ Implementation
► Provides the internal representation of a data structure &
► The definition of the algorithms used in the operations of the
data structure
▪ Issues
► Space needed
► Operations efficiency (Time required to complete operations)
- Retrieval
- Insertion
- Deletion
array
Linked list
queue
tree stack
▪ Algorithm
► Definition
▪ Examples
► sort a list of numbers
► find a route from one place to another (cars, packet routing,
phone routing, ...)
► find the longest common substring between two strings
► microchip wiring/design (VLSI)
► solving sudoku
► cryptography
► compression (file, audio, video)
► pagerank
► classify a web page
► Does it terminate?