Lec1 Introduction - 1
Lec1 Introduction - 1
Structures
Muhammad Usman Joyia
Course Objective
Introduce the basic concepts of data structures /ADTs, and use them
efficiently in algorithms for solving various problems using C/C++
What should you expect in this course?
◦ Extensive programming
◦ A lot of thinking
Source: http://maxnoy.com/interviews.html
Source: http://en.wikipedia.org/wiki/Data_structure
DEPARTMENT OF COMPUTER SCIENCE, FAST-NU
Performance vs
efficiency
Performance is the measure of quality of the work done by any
machine.
Efficiency is the ratio of desired output to the required input for
any machine.
Source: http://en.wikipedia.org/wiki/Data_structure
DEPARTMENT OF COMPUTER SCIENCE, FAST-NU
Some example data
structures…
Queues
◦ scheduling
◦ transportation
◦ operations management
Linked lists
◦ Can be used to implement several other common abstract data structures,
such as
◦ Stacks
◦ Queues
◦ Symbolic expressions, etc.
In simple words:
◦ an algorithm is a step-by-step procedure for computations
double Double precision 8 bytes +/- 1.7e +/- 308 (~15 digits)
floating point number
long double Long double precision 8 bytes +/- 1.7e +/- 308 (~15 digits)
floating point number
Reading: https://web.mit.edu/6.031/www/sp17/classes/12-abstract-data-types/