جميع الكتب

مهني

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المسارات المهنية عبر الإنترنت
التطبيقات حول المدرب تسجيل الدخول ابدأ القراءة

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.
اقرأ في الفصل →