[工学]数据结构 course05 Stack and Queue 前序和后序表达式.ppt

[工学]数据结构 course05 Stack and Queue 前序和后序表达式.ppt

[工学]数据结构 course05 Stack and Queue 前序和后序表达式

資料結構(Data Structures) Course 5: Stack and Queue ▓ Outlines 本章重點 Stack的定義、應用、製作與ADT Queue的定義、應用、製作與ADT Infix(中序)運算式與Postfix (後序), Prefix (前序) 運算式間之相互轉換 Postfix與Prefix的計算 (Evaluation) Stack Permutation A stack is a linear list in which all additions and deletions are restricted to one end. If you inserted a data series into a stack and then removed it the order of the data would be reversed (反轉). This reversing attribute is why stacks are known as the last in-first out (LIFO) data structure. ▓ Stack Def: 具有LIFO (last in-first out)或FILO (first in-last out) 性質的有序串列。 插入元素的動作稱為Push, 刪除元素的動作稱為Pop.

文档评论(0)

1亿VIP精品文档

相关文档