首页 | 本学科首页   官方微博 | 高级检索  
     

数据结构中栈在过河问题中的应用
引用本文:李橙,李海燕,丁国栋.数据结构中栈在过河问题中的应用[J].数字社区&智能家居,2014(11):7279-7281.
作者姓名:李橙  李海燕  丁国栋
作者单位:南京师范大学泰州学院,江苏泰州225300
摘    要:栈是数据结构中的一种基本而重要的存储结构。栈是一种限定仅在一段进行插入与删除操作的线性表,插入或删除是限定在表尾进行的,我们通常将表尾称之为栈顶。相反的,将表头端称之为栈底。在栈中,先插入的元素被压在栈底,最后才能出栈,所以栈也被称为后进先出表。因而,实际应用中,凡是符合后进先出的问题,我们都可以用堆栈来处理和实现。栈的典型应用包括:递归函数的调用,进制转换,括号比配问题,背包问题,中缀表达式求值等等。过河问题是一个非常经典的智力问题,很多竞赛中都使用过这个题材,该文中我们将讨论栈对于过河问题的应用。

关 键 词:  数据结构  计算机编程  过河问题

The Application of Stack in River Crossing Problem in Data Structure
LI Cheng,LI Hai-yan,DING Guo-dong.The Application of Stack in River Crossing Problem in Data Structure[J].Digital Community & Smart Home,2014(11):7279-7281.
Authors:LI Cheng  LI Hai-yan  DING Guo-dong
Affiliation:(Nanjing Normal University Taizhou College, Taizhou 225300, China)
Abstract:Stack is a basic and important storage of data structure. Stack is a limit for the insert table of linear and delete operations in only one paragraph, insert or delete is defined in the rear, we usually set the table tail call stack top. On the contrary, the header end called the bottom of stack. On the stack, first insert the element is pressed on the bottom of the stack, and finally to the stack, so the stack is also called the LIFO list.Therefore, in practical application, in line with all the LIFO problem, we can be used to deal with the stack and the implementation. Including the typical application stack:a recursive function calls, hexadecimal conversion,parentheses matching problem, knapsack problem, infix expression etc..Crossiong river is a very classic intellectual problem, lots of competition use this subject, in this paper, we will discuss the application stack for acrossing river problem.
Keywords:stack  data structure  computer programming  crossing river problem
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号