全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Stack, queue, deque?

又称: stack (abstract type) · queue · deque

Definition 15.4 University Computer Science — Year 1 · 第 15 章 — Linked Structures: Lists, Stacks and Queues

A stack is an abstract type with operations push, pop, top and empty, where pop removes the element pushed last (last in, first out). A queue has put and take, where take removes the element put first (first in, first out). A deque, or double-ended queue, allows adding and removing at both ends.

Stacks and queues on arrays and on links. The stack 7, 2, 5 (5 on top) and the queue 4, 6, 8, 9 (4 at the front) each have two representations with the same operations and the same results.
Stacks and queues on arrays and on links. The stack 7, 2, 5 (5 on top) and the queue 4, 6, 8, 9 (4 at the front) each have two representations with the same operations and the same results.
在原文中阅读 →