सभी किताबें

पेशेवर

1 Markets I: The Ecosystem and Exchange-Traded Marketsबाज़ार ऑनलाइन 2 Markets II: Rates, FX and Creditबाज़ार ऑनलाइन 3 Markets III: Commodities, Energy and Cryptoबाज़ार ऑनलाइन 4 Quantitative Methodsविधियाँ ऑनलाइन 5 Derivatives and Volatilityडेरिवेटिव्स ऑनलाइन 6 Rates, Credit, XVA and Riskब्याज दरें, क्रेडिट और जोखिम ऑनलाइन 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosअनुसंधान ऑनलाइन 8 Strategies I: Equities and Futuresरणनीतियाँ ऑनलाइन 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksरणनीतियाँ ऑनलाइन 10 Microstructure and Executionनिष्पादन ऑनलाइन 11 Market Making and High-Frequency Tradingमार्केट मेकिंग ऑनलाइन 12 Machine Learning for Marketsमशीन लर्निंग ऑनलाइन 13 Low-Latency Softwareतकनीक ऑनलाइन 14 Networks, Hardware and Trading Infrastructureतकनीक ऑनलाइन 15 Research, Data and Risk Platformsतकनीक ऑनलाइन 16 The Desk and the Firmफ़र्म ऑनलाइन 17 The Industry: Firms, Roles and Careersकरियर ऑनलाइन 18 Interviews I: Maths, Probability and Speedकरियर ऑनलाइन 19 Interviews II: Markets, Trading Games and the Final Roundकरियर ऑनलाइन 20 Interviews III: Codeकरियर ऑनलाइन
ऐप्स परिचय Coach लॉग इन पढ़ना शुरू करें

Computer Science · शब्दावली

Persistent data structure, structural sharing, path copying क्या है?

अन्य नाम: persistent data structure · structural sharing · path copying

Definition 9.5 University Computer Science — Year 2 · अध्याय 9 — Functional Programming

A data structure is persistent if an update returns a new version and leaves every old version intact and usable. Structural sharing is the use of the same nodes by several versions; path copying implements an update of a tree by copying only the nodes on the path from the root to the place of the change, the new nodes pointing to the old, unchanged subtrees.

Two persistent lists sharing a tail. Adding an element at the front costs one node, whatever the length; neither list can change the shared part, since nothing modifies a node once built.
Two persistent lists sharing a tail. Adding an element at the front costs one node, whatever the length; neither list can change the shared part, since nothing modifies a node once built.
Path copying, from . v2 owns three copies (189, 65, 133) and the new 140; its dashed pointers lead into v1’s nodes 251 and 98, with all that hangs below them. v1 is untouched.
Path copying, from Output 9.8. v2 owns three copies (189, 65, 133) and the new 140; its dashed pointers lead into v1’s nodes 251 and 98, with all that hangs below them. v1 is untouched.
अध्याय में पढ़ें →