コンテンツへスキップ

配列を用いたADTの実装

導入済み
プリント
このトピックのビデオレッスン 動画ページを開く
17:29

データ型と構造体

プログラムが格納するすべての値にはデータ型が必要であり、適切なものを選ぶことが重要です。ある商品が在庫にあるかどうかを格納する場合来说、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