49

นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

Embed Size (px)

Citation preview

Page 1: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5
Page 2: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

51

1

2 3 4

2 5 6 7 8

Page 3: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

1

1

1.

2.

3. -

4.

DATA UNITS)

Page 4: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

1. bit)2 0 1

2. charecter)ASCII 1 8

1 01000001 A 16 Unicode 0000 0000 1110 0110 ?

3. Field)

4. Record)

431999999

5. file)

6. Database)

Key field)

Page 5: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

2

3.1 formatted data)

3.2 text)

3.3 images)

3.4 audio)

3.5 video)

Page 6: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

6.1 master file)

6.2 transaction file)

6.3 table file)

51 4,50052 1,20053 4 M 4,50054 8 M 7,00055 50056 200

Page 7: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

inventory master file) customer order master file) production master file)

3 product code)

product description) product price)

2

6.4 sort file)

report file)

Page 8: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

3

Page 9: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

4

word processor) compression utility)

file extension) Microsoft Word doc Winzip

zip Microsoft Word2000

doc .htm .html .rtf .txt .mcw wpsdoc

Adobe Photoshop psd

Bitmap ( BMP) Graphics Interchange Format (GIF) Joint Photographic Experts Group (JPEG) Windows PaintBrush , Adobe Photoshop Microsoft Photo Editor

exe , .com , .bat , .dll

Page 10: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

2

5

2

Page 11: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

Physical Data Structure)

Page 12: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

2 1. Primitive Data Types)

- Integer)- Floating point)- Boolean)- Real)- Character)

2. Structure Data Types)- Array)- Record)- File)

Page 13: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

- Logical Data Structure)

Page 14: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

2 1. Linear Data Structure)

- List)- Stack)- Queue)- String)

2. Non-Linear Data Structure)

- Tree) - Graph)3. Data Structure Operation)

4 1. Traversing)2. Searching)3. Inserting)4. Deleting)

2 1. Sorting)2. Merging)4.

Page 15: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

2 Static Memory Representation)

Array)Dynamic Memory

Representation)

Pointer)5.5.1

Page 16: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

5.2 Decision)

2 5.3 Loop)

6. Algorithm)

1. Divide and conquer)2. Dynamic Programming)3. Greedy Algorithm)

Page 17: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

Flowchart)Flow Chart

Pseudo Code)Pseudo Code

- Machine Language)- Assembly Language)- High Level Language)- 4 (Fourth Generation Language 4GL)

Program Maintenance)

Page 18: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

6

• accuracy)

Page 19: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

• (relevancy)

• (timeliness)

Page 20: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

7

,

2

1. Internal Sorting

2. External Sorting

Page 21: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

1. SELECTION SORT2. INSERTION SORT / LINEAR INSERTION SORT3. BUBBLE SORT4. SHELL SORT

5. BUCKET SORT /RADIX SORT6. QUICK SORT7. HEAP SORT / TREE SORT1. Selection Sort)

-A(1) A(1)

- A(2), A(3),....,A(n) A(2) N-1

2. Insertion Sort)

Page 22: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

1.

2. 3. Insert 3. Bubble Sort)

1 2 2 3

Bubble Sort

4. shell sort)sort

11959 D.L.SHELL) shell

sort)

Page 23: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

5. radix sort)

6. quick sort)C.A.R HOARE)

pivot)

7. heapsort)2

1. 2.

Page 24: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

8 (searching)

(Sequencial Search)

2 (Blind Search) (Heuristic Search)

(Blind Search)

(Blind search)

- (exhaustive search)- (partial search)

(Depth first search)(Breadth first search)

Page 25: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

(Depth first search)

(Root node)(Terminal node)

1

Page 26: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

()

(pop)

2

Page 27: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

A B C AC C C

D F(Push) B D F C F

G B D G(A C F G H E D B) 1

1

Page 28: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

1

(Breadth first search)

( 0) 1 1 23

3

(Breadth first search)( 0)

3

Page 29: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

(Queue)

4

Page 30: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

A B CA B

D E B D E B(A B C D E F G H)

2

2

Page 31: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

n+1 n

n+1 n

Page 32: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

(Heuristic Search)

(heuristic search)

(heuristic function)

(aspects)

Page 33: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

Weak Methods Weak Methods (general-purpose control stategies)

Page 34: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

(Hill climbing)

Hill climbing algorithm

Page 35: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

(Hill climbing)

Page 36: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5
Page 37: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

6Hill climbing

Page 38: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

h(i) i h-

-

-

(Steepest ascent hill climbing)

Page 39: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

(Best-first search)

(Depth firstsearch) (Breadth first search)

(most promising)

2.71 (root node) 2

B C B C3 1 C

()

C 3 D E4 6

(terminal node)B 3 ( )

4 F G6 5

Page 40: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5
Page 41: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5
Page 42: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

:1. OPEN2.

OPENOPEN

i)

OPENii)

Page 43: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

Greedy (Greedy Algorithm)(Best first

search)

1.2.3.

3.1

3.2

4. 2

Page 44: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

A B C D 3

9

Page 45: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

9 AB C D A 20

30 50 BB C D 15 20

C C D10 D A20 + 15 + 10 + 50 = 95

Page 46: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5
Page 47: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

A*A*

A*

A*2

f gcost h'

cost

f = g + h’

Page 48: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

A* (A* Search)

A* f' sf'(s)=g(s)+h'(s)

g h'f'

h'

'h'

g'

f'h' g

A*f' h'

f' A*h'

g A*f'

Page 49: นวลลออ ถาวรโรจน์เสถียร เลขที่20 ม.5

11 A* 8

g A B,C D

CA* f' E

h' E