Tuesday, July 19, 2011

สรุปครั้งที่4 วิชาโครงสร้างข้อมูลและขั้นตอนวิธี (12 ก.ค.54)

Linked List  Data Structure แบบ linked list
Process and Function Create linked list
LL แบบ Complicate
LL เป็นการเก็บข้อมูลอย่างต่อเนื่องของ Elements ต่างๆ
Node ประกอบด้วย2ส่วน 1.Data 2. Link Field
1.เก็บข้อมูลของ Elements 2.เก็บตำแหน่งของ Node ต่อไปในlist
Elements = Variable in structure
Head Structure 3 ส่วน Count,Pos,Head
Create List Process
Function create empty list
Result    empty list
* ต้องบอก error ก่อนการเขียนโปรแกรม ไม่มี Head node ได้
หลักการที่ทำให้คอมพิวเตอร์รู้ค่าตัวเลข ALU Arithmetic logic unit