CSE Faculty - Chapter 3: STACK (part b)
Số trang: 37
Loại file: pdf
Dung lượng: 382.11 KB
Lượt xem: 16
Lượt tải: 0
Xem trước 4 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Reversing data itemsEx.: Reverse a list. Convert Decimal to Binary.Brackets Parse. Infix to Postfix Transformation. Evaluate a Postfix Expression. ParsingEx.: Ex.:Postponement of processing data itemsBacktrackingEx.: Goal Seeking Problem. Knight’s Tour. Exiting a Maze. Eight Queens Problem..Reverse a listPROBLEM: Read n numbers, print the list in reverse order.Algorithm ReverseList Pre User supplies numbers. Post The numbers are printed in reverse order. Uses Stack ADT. 1. loop (stack is not full and there is more number) 1. read a number 2. push the number into the stack 2. loop (stack is not empty) 1. top the number from the stack 2. pop...
Nội dung trích xuất từ tài liệu:
CSE Faculty - Chapter 3: STACK (part b)
Nội dung trích xuất từ tài liệu:
CSE Faculty - Chapter 3: STACK (part b)
Tìm kiếm theo từ khóa liên quan:
Computer Science Engineering Computer Data Structures Definition of Stack Specifications for Stack Implementations of Stack Linked StackGợi ý tài liệu liên quan:
-
11 trang 130 0 0
-
Ebook Facts on file science experiments: Computer science experiments – Part 1
92 trang 68 0 0 -
Lecture Computer Architecture: Introduction
9 trang 38 0 0 -
Lecture Computer literacy - Lecture 03: Computer software
35 trang 32 0 0 -
Lecture Computer literacy - Lecture 27: Online Collaboration Applications
40 trang 32 0 0 -
Lecture Introduction to computing - Lecture 29
77 trang 30 0 0 -
Ebook Eloquent JavaScript - A modern introduction to programming: Part 1
199 trang 30 0 0 -
computer science - an overview (12th edition): part 1
331 trang 30 0 0 -
Lecture Introduction to computing - Lecture 21
40 trang 29 0 0 -
Lecture Introduction to computing - Lecture 13
50 trang 28 0 0