01:198:112 Chapter Notes - Chapter 7: Text Editor, The Algorithm, Linked List

68 views4 pages

Document Summary

When using the back button on a browser, the last page visited is the first page loaded. When using the undo operation in a text editor. A stack is a collection of entries that demonstrated this last-in, first-out behavior, called lifo. Stack: a stack is a linear collection of entries in which, for every entry y that enters the stack after another entry x, y leaves the stack before x. Push: add an entry to the top of stack. Pop: delete the entry at the top of stack. Enumerate: list all the entries in the stack isempty: tell if the stack is empty. Size: tell how many entries are in the stack. A compiler checks expressions in a program to ensure that all parentheses are matched. Some text editors can match parentheses on the fly, as you close a parentheses, the companion opening parentheses is shown.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents