ข้ามไปยังเนื้อหา

การนำไปใช้ ADT โดยใช้อาร์เรย์

แนะนำใหม่
เอกสารประกอบการเรียน
บทเรียนวิดีโอสำหรับหัวข้อนี้ เปิดหน้าวิดีโอ
17:29

ประเภทข้อมูล & โครงสร้างข้อมูล

ทุกค่าที่คุณโปรแกรมจัดเก็บต้องมีประเภทข้อมูล — และการเลือกให้ถูกต้องนั้นสำคัญ Suppose คุณต้องการจัดเก็บว่าสินค้ามีในสต็อกหรือไม่ คุณอาจพิมพ์คำว่า yes…

บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้

ในบทเรียนนี้

บทเรียนวิดีโอ
คำศัพท์
English ความหมาย
stack/stæk/A last-in, first-out data structure in which items are added and removed at the same end.
memory/ˈmeməri/The part of a computer that holds data and programs currently in use.
array/əˈreɪ/An indexed collection of elements arranged in one or more dimensions.
cells/selz/Small parts of memory that each store a bit of data.
queue/kjuː/A data structure in which items are normally removed in the order they were added.
linked list/lɪŋkt lɪst/A sequence of nodes connected by references or pointers; the nodes need not occupy adjacent memory locations.
integer variablesNamed storage places that hold whole numbers and can change during a program.
Push/pʊʃ/The operation that adds an item to the top of a stack.
dequeue/diːˈkjuː/To remove the next item from the front of a queue.
pointers/ˈpɔɪntəz/A value that identifies a memory location or refers to another stored object.
declarationsStatements that give variables their names and data types, and arrays their bounds.
overflow/ˌəʊvəˈfləʊ/การล้น
Pop()The operation that removes and returns the item at the top of a stack.
underflow/ˌʌndəˈfləʊ/เดอร์โฟลว์
initialise/ɪˈnɪʃəlaɪz/Give a variable or data structure its starting value before it is used.
elements/ˈelɪmənts/Individual items in a collection or data structure.
type/taɪp/A category of data that determines what values it can hold.
constant/ˈkɒnstənt/A named or literal value that does not change during the relevant part of a program.
top-of-stack pointerAn integer that gives the position of the item at the top of a stack.
Enqueue/enˈkjuː/The operation that adds an item to the rear of a queue.
circular array/ˈsɜːkjʊlə əˈreɪ/วงจรรายชื่อ
circular queue/ˈsɜːkjʊlə kjuː/A queue implemented with storage whose end connects logically back to its start, reusing freed positions.
count/kaʊnt/A number that records how many items are currently in the queue.
index/ˈɪndeks/A whole number that identifies the position of an item in an array.
algorithm/ˈælɡərɪθəm/A finite sequence of precise steps for solving a problem or carrying out a task.
rear pointerA value that identifies the rear position used when adding to a queue.
node recordsGroups of fields that store linked list data and the positions of following nodes.
free list/friː lɪst/ฟรีลิสต์
null pointer/nʌl ˈpɔɪntə/A special value that shows the pointer does not refer to a node.
parallel arrayAn array whose positions match those of another array to hold related information.
record fieldA named part of a record that holds one piece of information.
start pointerAn integer that gives the position of the first node in a linked list.
free-list pointerAn integer that gives the position of the first unused slot in a free list.
pointer arithmetic/ˈpɔɪntə əˈrɪθmətɪk/Calculations that change pointer values to track positions in an array.
ADTA description of data and its allowed operations, separate from how it is stored.
ถัดไป →

เอกสารประกอบการเรียน

เข้าสู่ระบบหรือสร้างบัญชี

IGCSE, A-Level & AP