Bỏ qua nội dung

Triển khai các ADT bằng mảng.

Đã giới thiệu
Tài liệu
Bài học video cho chủ đề này Mở trang video
17:29

Kiểu dữ liệu & Cấu trúc dữ liệu

Mỗi giá trị mà chương trình của bạn lưu trữ đều cần một kiểu dữ liệu — và việc chọn đúng loại rất quan trọng. Giả sử bạn muốn lưu trạng thái hàng có còn trong kho hay không. Bạn có thể viết từ yes…

Thuyết minh tiếng Anh · Có thể chuyển đổi phụ đề tiếng Anh và tiếng Trung

Trong bài học này

Bài giảng video
Từ vựng
English Ý nghĩa
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əʊ/Vượt quá
Pop()The operation that removes and returns the item at the top of a stack.
underflow/ˌʌndəˈfləʊ/tràn dưới
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ɪ/mảng vòng
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/danh sách trống
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.
Tiếp theo →

Tài liệu

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP