सभी किताबें

पेशेवर

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 · शब्दावली

Pushdown automaton क्या है?

अन्य नाम: stack alphabet

Definition 23.12 University Computer Science — Year 2 · अध्याय 23 — Context-Free Grammars and Pushdown Automata

A pushdown automaton (PDA) is (Q,Σ,Γ,Δ,q0,Z0,F)(Q, \Sigma, \Gamma, \Delta, q_0, Z_0, F): a finite set of states QQ, an input alphabet Σ\Sigma, a stack alphabet Γ\Gamma, a finite set Δ\Delta of moves (q,x,Z)→(q′,γ)(q, x, Z) \to (q', \gamma) with x∈Σ∪{ε}x \in \Sigma \cup \{\varepsilon\}, Z∈ΓZ \in \Gamma and γ∈Γ∗\gamma \in \Gamma^*, a start state q0q_0, a bottom symbol Z0∈ΓZ_0 \in \Gamma, and accepting states F⊆QF \subseteq Q. In state qq with ZZ on top of the stack, the move reads xx (nothing if x=εx = \varepsilon), goes to q′q' and replaces ZZ by γ\gamma, whose first symbol ends on top. A configuration is a state, the unread input and the stack. The automaton accepts ww if some sequence of moves leads from (q0,w,Z0)(q_0, w, Z_0) to a configuration with no input left and an accepting state.

A PDA for \anbn\. A label x, Z / reads x with Z on top and replaces it by . State 0 pushes an A per a; the move to 1 guesses the middle; state 1 pops an A per b; state 2 is reached when only the bottom Z is left.
A PDA for {anbn}\{a^nb^n\}. A label x,Z/γx, Z / \gamma reads xx with ZZ on top and replaces it by γ\gamma. State 0 pushes an AA per aa; the move to 1 guesses the middle; state 1 pops an AA per bb; state 2 is reached when only the bottom ZZ is left.
अध्याय में पढ़ें →