Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
14 results across 6 corpora for memoization.
Encyclopedia 6
lookup table
put operation. The tables may be precalculated and stored in static program storage, calculated (or "pre-fetched") as part of a program's initialization phase (memoization ), or even stored in hardware in application-specific platforms. Lookup tables are also used extensively to validate input values by matching against a list of valid (or invalid) items in an array and, in some programming languages, may include poi
double-ended queue
the operations in worst-case time. Another challenge is the real-time catenation of deques. Okasaki gives a simple solution that uses lazy lists combined with memoization. The stack to stack balancing is then partially automatic by means of a precise scheduling of incremental functions. However some authors deem such algorithm as not purely functional since memoization is considered as a side effect. Kaplan and Tarj
Four fours
to the hash table, including parenthesis, for n=4. Here the sets A and B that contain a and b are calculated recursively, with n=1 and n=2 being the base case. Memoization is used to ensure that every hash table is only computed once. The second case (factorials and roots) is treated with the help of an auxiliary function, which is invoked every time a value v is recorded. This function computes nested factorials and
thunk
iler, have relied heavily on thunks, with the added feature that the thunks save their initial result so that they can avoid recalculating it; this is known as memoization or call-by-need. Functional programming languages have also allowed programmers to explicitly generate thunks. This is done in source code by wrapping an argument expression in an anonymous function that has no parameters of its own. This prevents
control table
ed or unsorted) Dynamic dispatch: common functions can be pre-loaded and less common functions fetched only on first encounter to reduce memory usage. In-table memoization can be employed to achieve this. The interpreter can have debugging, trace and monitor features built-in – that can then be switched on or off at will according to test or 'live' mode Control tables can be built 'on-the-fly' (according to some user
Director string
utation, directors or director strings are a mechanism for keeping track of the free variables in a term. Loosely speaking, they can be understood as a kind of memoization for free variables; that is, as an optimization technique for rapidly locating the free variables in a term algebra or in a lambda expression. Director strings were introduced by Kennaway and Sleep in 1982 and further developed by Sinot, Fernández
Dictionary 1
memoization
A technique in which partial results are recorded (forming a memo) and then can be re-used later without having to recompute them
Papers 1
Memoization Without Keys: Compact, Out-of-Core Tables for Functions of Sorted Arguments
OpenAlex work · 2026 · IN
Developer library 6
Array.prototype.filter()
The **`filter()`** method of Array instances creates a [shallow copy](/docs/Glossary/Shallow_copy) of a portion of a given array, filtered down to just the elements from the given array that pass the test implemented by the provided function. shorter ```js interactive-example const words = ["spray", "elite", "exuberant", "destruction", "present"]; const result = words.filter((word) => word.length > 6); console.lo
Array.prototype.findLast()
The **`findLast()`** method of Array instances iterates the array in reverse order and returns the value of the first element that satisfies the provided testing function. If no elements satisfy the testing function, undefined is returned. If you need to find: - the _first_ element that matches, use find(). - the _index_ of the last matching element in the array, use findLastIndex(). - the _index of a value_, use i
Array.prototype.findIndex()
The **`findIndex()`** method of Array instances returns the index of the first element in an array that satisfies the provided testing function. If no elements satisfy the testing function, -1 is returned. See also the find() method, which returns the first element that satisfies the testing function (rather than its index). shorter ```js interactive-example const array = [5, 12, 8, 130, 44]; const isLargeNumber
Array.prototype.findLastIndex()
The **`findLastIndex()`** method of Array instances iterates the array in reverse order and returns the index of the first element that satisfies the provided testing function. If no elements satisfy the testing function, -1 is returned. See also the findLast() method, which returns the value of last element that satisfies the testing function (rather than its index). shorter ```js interactive-example const array
Array.prototype.find()
The **`find()`** method of Array instances returns the first element in the provided array that satisfies the provided testing function. If no values satisfy the testing function, undefined is returned. - If you need the **index** of the found element in the array, use findIndex(). - If you need to find the **index of a value**, use indexOf(). (It's similar to findIndex(), but checks each element for equality with
TypedArray.prototype.findLast()
The **`findLast()`** method of TypedArray instances iterates the typed array in reverse order and returns the value of the first element that satisfies the provided testing function. If no elements satisfy the testing function, undefined is returned. This method has the same algorithm as Array.prototype.findLast(). JavaScript Demo: TypedArray.prototype.findLast() ```js interactive-example function isNegative(elemen