Top Banner
Data Structures & Algorithms Richard Newman
21

Data Structures & Algorithms Richard Newman Clip Art Sources s s s s .

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Data Structures & Algorithms

Richard Newman

Page 2: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Clip Art Sources

www.barrysclipart.com www.livinggraphics.com www.rad.kumc.edu www.graphicmaps.com

Initial design from Sahni’s course, modified greatly by Newman for Sedgewick’s book

Page 3: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

What The Course Is About

Data structure: representation and storage of data.

Algorithm: method for solving a problem Programs represent data Programs use algorithms to manipulate

those data

Page 4: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

What The Course Is About

• Algorithm design methods needed to develop programs that do the data manipulation.

• The study of data structures and algorithms is fundamental to Computer Science.

Page 5: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Prerequisites

Asymptotic Complexity

Big Oh, Theta, and Omega notations

C++ Discrete Structures, Calculus

Page 6: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Web Site

www.cise.ufl.edu/~nemo/cop3530/ www.cise.ufl.edu/cop3530sp15/

Handouts, syllabus, text, source codes, exercise solutions, lectures, assignments, past exams, past exam solutions, TAs, etc.

Check twice weekly (48 hr apart)

Page 7: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Instructor

Dr. Richard “Dr. Nemo” Newman (nemo) www.cise.ufl.edu/~nemo/

Office hours: MWF 10:30-11:30 Office: CSE-E346

Page 8: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Teaching Assistants TA location: CSE-E309

Md Mahmudul Hasan (mmhasan) Office hours: M 10th, T 9th & 10th

Rahul Prabhu (rprabhu) Office hours: TBD

Page 9: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

AssignmentsAssignment guidelinesSubmission procedures

Page 10: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Discussion Sections

Required to attend your section TA may present a small problem that

you are to do during discussion TA may go through exercises from the

book TA will answer your questions

Page 11: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Goals Devise and analyze algorithms and

data structures to solve moderately hard problems

Correctly develop, document, and test programs to implement those algorithms and data structures

Page 12: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Roadmap Fundamentals Data Structures Sorting Searching Graph Algorithms Odds and Ends

Page 13: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Grades

15% for quizzes 5% for homeworks 35% for projects 15% for each exam (3 exams)

Page 14: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Grades (Rough Cutoffs)

A >= 80% B+ >= 75% B >= 70% C+ >= 65% C >= 60% D+ >= 55% D >= 50%

Page 15: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Why Study Algorithms? We are in the information age! Information = data with interpretation Algorithms allow us to manipulate the data to

obtain desired information Effect of algorithm is huge – on time, on

space, on power; and on information! Impact of algorithms in all facets of science,

medicine, law, engineering, art, music, business, and life

Page 16: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Why Study Algorithms? Study of algorithms at least as old as Euclid ca.

300 BC The name derives from a ca. AD 825 Arabic

mathematician, Muhammed ibn al-Khwarizmi Formalized by Church and Turing in 1930’s Some important algorithms were discovered by

undergraduates in a class just like this!

Page 17: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Why Study Algorithms? Intellectual stimulation: “For me, great

algorithms are the poetry of computation. Just like verse, they can be terse, allusive, dense, and even mysterious. But once unlocked, they cast a brilliant new light on some aspect of computing.” – Francis Sullivan

Page 18: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Why Study Algorithms? Improve programming skills: “I will, in fact, claim

that the difference between a bad programmer and a good one is whether he considers his code or his data structures more important. Bad programmers worry about code. Good programmers worry about data structures and their relationships.” – Linus Torvalds

“Algorithms + Data Structures = Programs” – Niklaus Wirth

Page 19: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Why Study Algorithms? Unlock secrets of the universe: “Computer

models mirroring real life have become crucial for most advances in chemistry today… Today the computer is just as important a tool for chemists as the test tube.” – Royal Swedish Academy of Sciences (Nobel Prize in Chemistry 2013)

Page 20: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Why Study Algorithms? Everyone else is doing it! For fun and for profit!

Page 21: Data Structures & Algorithms Richard Newman Clip Art Sources s  s  s  s .

Next – Lecture 2

Read Chapters 1 & 2 Union-Find Empirical analysis Asymptotic analysis of algorithms Basic recurrences