דלג לתוכן

Comparing algorithms and ADTs in algorithms

הוצג
חומר עזר
שיעור וידאו לנושא זה פתח את עמוד הוידאו
15:34

חיפוש ומיון

ספר טלפונים עם מיליון שמות. אם תבדוק אותם אחד אחד, ייתכן שתבצע מיליון השוואות. אבל כבר ידוע לך הטריק: פתח אותו בחצי…

קריינות באנגלית · כתוביות באנגלית ובסינית 中文 שאפשר להחליף ביניהן

בשיעור הזה

שיעור וידאו
מילון מונחים
English משמעות
algorithm/ˈælɡərɪθəm/A finite sequence of precise steps for solving a problem or carrying out a task.
hardware/ˈhɑːdweə/The physical parts of a computer system that can be touched.
complexity analysisThe study of how an algorithm's time or memory needs grow with input size.
Big-O/bɪɡ əʊ/A way to describe an upper limit on how an algorithm's resource needs grow.
ADTsTypes of data defined by their values and allowed operations, without saying how they are built.
Time complexity/taɪm kəmˈpleksɪti/How an algorithm's running time grows as its input size increases.
running timeThe amount of time an algorithm takes to finish its work.
input sizeThe amount of data given to an algorithm to process.
dominant termThe part of an expression that grows fastest as input size increases.
constant/ˈkɒnstənt/A quantity whose value remains fixed within a given problem, expression or program.
logarithmic/ˌlɒɡəˈrɪθmɪk/Involving logarithms, which describe the exponents needed to obtain numbers from a given base.
binary search/ˈbaɪnəri sɜːtʃ/A search of ordered data that repeatedly compares with the middle item and discards half of the remaining search range.
linear/ˈlɪnɪə/Describing growth that is proportional to input size, so doubling the input approximately doubles the amount of work for large inputs.
linear search/ˈlɪnɪə sɜːtʃ/A search that checks items one by one until it finds the target or reaches the end.
quadratic/kwɒˈdrætɪk/Describes growth that follows the square of the input size.
bubble and insertion sortTwo sorting algorithms whose running times can grow with the square of the input size.
Space complexity/speɪs kəmˈpleksɪti/The extra memory an algorithm needs, beyond the input itself.
memory/ˈmeməri/The part of a computer that holds data and programs currently in use.
in place/ɪn pleɪs/Describes an algorithm that rearranges its input using only a small amount of extra storage.
variables/ˈveərɪəblz/A quantity or named value that can change or take different values.
Merge sort/mɜːdʒ sɔːt/A sorting algorithm that divides data into smaller parts, sorts them, and joins them in order.
array/əˈreɪ/An indexed collection of elements arranged in one or more dimensions.
Recursion/rɪˈkɜːʃn/The use of a rule inside its own definition to express repetition.
stack memoryMemory that holds information about function calls that have not yet finished.
frame/freɪm/A section of stack memory holding information for one function call.
time and memory trade-offA choice between using more memory to save time and using less memory but taking longer.
memoisation/ˌmeməʊaɪˈzeɪʃn/Saving the results of function calls so repeated calls with the same inputs can reuse an earlier result.
Stability/stəˈbɪlɪti/The property of a sorting algorithm that keeps equal items in their original order.
field/fiːld/A named component of a record, with its own value and type.
stack/stæk/A last-in, first-out data structure in which items are added and removed at the same end.
depth-first/depθ fɜːst/עומק-תחילה
push/pʊʃ/To add an item to the top of a stack.
call stack/kɔːl stæk/A stack that records active function calls and their return information.
queue/kjuː/A data structure in which items are normally removed in the order they were added.
breadth-first/bredθ fɜːst/רוחב-תחילה
enqueue/enˈkjuː/To add an item to the rear of a queue.
shortest path/ˈʃɔːtɪst pæθ/A route between two nodes with the fewest edges in an unweighted graph.
unweighted graphA graph whose edges have no assigned costs or distances.
balanced binary search tree/ˈbælənst ˈbaɪnəri sɜːtʃ triː/A binary search tree with balanced branches, allowing values to be found quickly.
node/nəʊd/A point in a graph or tree that can hold data and connect to other points.
backtracksReturns along an earlier path to explore a different route.
הבא →

חומר עזר

היכנס או צור חשבון

IGCSE, A-Level & AP