


























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



























7/7/2012 Introduction 1-
Kashif Javed [email protected] Department of Electrical Engineering UET Lahore
Introduction 1-
Text Book: Mark Allen Weiss, “Data Structures and Algorithm Analysis in C” , 2 nd^ Edition, Pearson Education
Reference Books: Robert Sedgewick, “Algorithms in C”, 3 rd^ Edition, Pearson Education
Cormen, Leiserson, Rivest, Stein, “Introduction to Algorithms”, 2 nd^ Edition, McGraw-Hill
7/7/2012 docsity.com
7/7/2012 Introduction 1-
Computer Fundamentals
C language programming
Editors, Compilers , Linkers, Debuggers User-level knowledge of Operating Systems
Elementary Calculus and Algebra
7/7/2012 Introduction 1-
An algorithm is a well-defined computational procedure that takes some values, as input and produces some value, or set of values, as output
Computing time of an algorithm and the space it requires in the memory determine its efficiency
These are bounded resources and therefore should be used wisely
7/7/2012 Introduction 1-
This course will help the students
To understand the fundamental ways of organizing collections of data to be processed by a program focus is on main-memory data structures
To evaluate the efficiency of data structures and their algorithms
To define, implement and use Abstract Data Types (ADTs)
7/7/2012 Introduction 1-
EE 232 Data Structures Session-05 , Spring-
7/7/2012 Introduction 1-
Our goals: we shall
discuss the aims and goals of this course and briefly review programming concepts
summarize the basic mathematical background
also briefly review recursion
7/7/2012 Introduction 1-
Selection Problem Given a list of N numbers, determine the k th largest, where k N
Algorithm 1
7/7/2012 Introduction 1-
Algorithm 2
7/7/2012 Introduction 1-
We will learn
How to estimate the running time of a program for large inputs
How to compare the running times of two programs without actually coding them
Techniques for drastically improving the speed of a program
Techniques for determining program bottlenecks
7/7/2012 Introduction 1-
7/7/2012 Introduction 1-
Properties of logarithms
log AB = log A + log B ; A, B > 0 log(A/B) = log(A) - log(B) log(AB) = B log(A) log(X) < X for all X > 0 log(1)=0, log(2)=1, log(1,024)=10, log(1,048,576)=
logC B logC A
7/7/2012 Introduction 1-
Geometric Series
i=0..N
i=0..N
i=0..N
i=0..N