1.两个栈共享一片连续空间,可以将两个栈的栈底分别设在这片空间的两端。 T
2.Non recursive programs are generally faster than equivalent recursive programs. However, recursive programs are in general much simpler and easier to understand. T
非递归程序通常比等价的递归程序快。然而,递归程序通常要简单得多,也更容易理解。
3.When n elements are pushed into a stack, they may be popped in a different order. But if they are inserted into a queue, they will always be deleted in the same order as the insertions. T
当n个元素被推入堆栈时,它们可能会以不同的顺序弹出。但是,如果将它们插入到队列中,它们将始终按照与插入相同的顺序被删除。
4."Circular Queue" is defined to be a queue implemented by a circularly linked list or a circular array. F
“循环队列”定义为由循环链表或循环数组实现的队列。
循环队列是一个抽象的概念,不局限于实现方式。也就是说,可以可以用各种数据结构实现
5.
若已知一队列用单向链表表示,该单向链表的当前状态(含3个对象)是:1->2->3,其中x->y表示x的下一节点是y。此时,如果将对象4入队,然后队列头的对象出队,则单向链表的状态是:
6.
12.To delete a node from a linked stack with ST being its top pointer, and save the key value of the deleted node into X, we must do:X= ST->data; ST = ST->next;