דלג לתוכן

יישום ADTs באמצעות מערכים

הוצג
חומר עזר
שיעור וידאו לנושא זה פתח את עמוד הוידאו
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