Data Structures Algorithms & 171-622 Data Management - - PDF document

data structures algorithms 171 622 data management
SMART_READER_LITE
LIVE PREVIEW

Data Structures Algorithms & 171-622 Data Management - - PDF document

Data Structures Algorithms & 171-622 Data Management ( 311 13:00-15:00)


slide-1
SLIDE 1

Data Structures & Algorithms

slide-2
SLIDE 2
  • S. Prasitjutrakul 1994

171-622 Data Management

ผูสอน สมชาย ประสิทธิ์จูตระกูล (หอง 311 ทุกวันอังคาร 13:00-15:00) หนังสืออางอิง

  • 1. "Data Structures and Program Design in C"

R.L.Kruse, B.P.Leung, and C.L.Tondo. คะแนน การบาน 20% สอบกลางภาค 30% สอบปลายภาค50%

slide-3
SLIDE 3
  • S. Prasitjutrakul 1994

โครงสรางขอมูลและอัลกอริธึม

!บทนํ

!รายการ, กองซอน, แถวคอย !รายการโยง !การประยุกตใชกองซอน

และแถวคอย

!การคนหาขอมูล !การวิเคราะหความซับซอน

ของอัลกอริธึม

!ตารางและการคนคืนขอมูล

การหาเลขที่อยูแบบแฮช

!การเรียงลํ

าดับขอมูล

!ตนไมแบบทวิภาค !โครงสรางขอมูลแบบอื่นๆ !หัวขอพิเศษอื่นๆ

slide-4
SLIDE 4
  • S. Prasitjutrakul 1994

! Algorithm : a problem-solving method suitable for

computer implementation

! a finite sequence of instructions ! each instruction has a clear meaning ! each instruction can be performed with a finite amount

  • f effort in a finite length of time

! Data Structure : collections of related data objects

involved in the computation

Definition

slide-5
SLIDE 5
  • S. Prasitjutrakul 1994

! machines for executing algorithms ! languages for describing algorithms ! foundations of algorithms ! analysis of algorithms

The Study of Algorithms

slide-6
SLIDE 6
  • S. Prasitjutrakul 1994

The Study of Data

! machines that hold data ! languages for describing data manipulation ! foundations which describe what kinds of refined data

can be produced from raw data

! structures for representing data

slide-7
SLIDE 7
  • S. Prasitjutrakul 1994

Data Structures & Algorithms

Data Structures Algorithms

! simple algorithms can give rise to complicated data structures ! complicated algorithms can use simple data structures

slide-8
SLIDE 8
  • S. Prasitjutrakul 1994

Course Objectives

structuring of data systhesis of algorithms

! to study the properties of many data structures ! to study a variety of fundamental algorithms

students will be able

!

to devise alternative forms of data representation

!

to analyze the algorithm which operates on that structure

slide-9
SLIDE 9
  • S. Prasitjutrakul 1994

Example : Shortest Path Problem

slide-10
SLIDE 10
  • S. Prasitjutrakul 1994

Example: Shortest Path Problem

1 4 1 1 5 3 1 2 3 A Z Z 1 4 1 1 5 3 1 2 3 A

2 3

Z 1 4 1 1 5 3 1 2 3 A

2 3 5

1 4 1 1 5 3 1 2 3 A

2 3 4 7

Z 1 4 1 1 5 3 1 2 3 A

2 3 4 7 5 9

Z 1 4 1 1 5 3 1 2 3 A

2 4 6

Z

slide-11
SLIDE 11
  • S. Prasitjutrakul 1994

Graph

D E F C B 1 4 1 1 5 3 1 2 3 A Z

A B C D E F Z A 2 3 B 2 3 C 3 1 1 5 D 3 1 4 E 4 1 F 1 1 1 Z 5 1 ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ A B C D E F Z A 2 3 B 2 3 C 3 1 1 5 D 3 1 4 E 4 1 F 1 1 1 Z 5 1 ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞ ∞