جميع الكتب

مهني

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 · المسرد

ما معنى Queue, enqueue, dequeue, FIFO؟

يُعرف أيضًا باسم: queue · enqueue · dequeue · FIFO

Definition 24.4 High School Computer Science · الفصل 24 — Linked Lists, Stacks and Queues

A queue is an abstract data type holding a sequence, with the operations: create an empty queue; test whether it is empty; enqueue an element at the back; dequeue the element at the front, removing and returning it, refused on an empty queue. The first element enqueued is the first dequeued: the queue is FIFO, first in, first out.

A linked queue holding 5, 8, 2. Enqueueing 7 links a new cell after the tail and moves _tail to it (dashed); dequeueing moves _head to the next cell.
A linked queue holding 5,8,25, 8, 2. Enqueueing 77 links a new cell after the tail and moves _tail to it (dashed); dequeueing moves _head to the next cell.
A queue from two stacks. The transfer pops 3, 2, 1 from the in-stack and pushes them on the out-stack, where 1, the oldest, is now on top. The next two dequeues pop 2 and 3 with no transfer.
A queue from two stacks. The transfer pops 33, 22, 11 from the in-stack and pushes them on the out-stack, where 11, the oldest, is now on top. The next two dequeues pop 22 and 33 with no transfer.
اقرأ في الفصل →