![Phân tích tư tưởng của nhân dân qua đoạn thơ: Những người vợ nhớ chồng… Những cuộc đời đã hóa sông núi ta trong Đất nước của Nguyễn Khoa Điềm](https://timtailieu.net/upload/document/136415/phan-tich-tu-tuong-cua-nhan-dan-qua-doan-tho-039-039-nhung-nguoi-vo-nho-chong-nhung-cuoc-doi-da-hoa-song-nui-ta-039-039-trong-dat-nuoc-cua-nguyen-khoa-136415.jpg)
Lecture Java Programming Language: The content of data structures - Ho Dac Hung
Số trang: 12
Loại file: pdf
Dung lượng: 156.94 KB
Lượt xem: 6
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Lecture Java Programming Language: The content of data structures mentions about the stack data structure, the queue data structure and the linked list data structure. Download to see more, please!
Nội dung trích xuất từ tài liệu:
Lecture Java Programming Language: The content of data structures - Ho Dac Hung Data Structures Ho Dac Hung1 The Stack Data Structure The data structure organizes data. The stack data structure can contain many data items just as an array can. Additionally, it has a set of operations that can be performed on the data. A stack structure has a top.2 The Stack Data Structure There are two standard operations that can be performed on the items in a stack, and only the top item of a stack can be processed. The pop operation removes the top item. The push operation add an item to the top of the stack.3 The Stack Data Structure Other stack operations include the isEmpty query, which returns true when there are no items in the stack, and false otherwise. The size operation determines the number of items in a stack. A stack can be emptied with the makeEmpty operation.4 The Stack Data Structure Since the stack is desiged so that the last item pushed on is the first item to be popped, it is sometimes referred to as a last in first out (LIFO) data structure.5 The Queue Data Structure A queue is a data structure similar to a stack in that it holds a number of data items. However, one end of the queue is referred to as the rear and the other end the front. All insertions are made at the read and all removals are made at the front.6 The Queue Data Structure There are two standard operations that can be performed on a queue. The dequeue operation removes an item from the front. The enqueue operation adds an item to the rear.7 The Queue Data Structure A queue is analogous to a line at a ticket counter where first come first serve, and is sometimes referred to as a first in first out (FIFO) data structure.8 The Linked List Data Structure Another way of storing lists of data in memory requires each item to store information that indicates where the next item is stored. The additional information is a reference, or pointer, to a data location. This kind of list data structure called a linked list.9 The Linked List Data Structure The first item in a linked list is called the head, The last item points to a null and is called the tail. Each element of a linked list is called a node.10 The Linked List Data Structure There are two standart operations that can be performed on a linked list. The addAtFront operation adds a new node to the front of the list.11 The Linked List Data Structure The remove operation removes an item from the linked list. Removing an item from a linked list means that the pointer of the previous item is change to point to the item after the one to be removed.12
Nội dung trích xuất từ tài liệu:
Lecture Java Programming Language: The content of data structures - Ho Dac Hung Data Structures Ho Dac Hung1 The Stack Data Structure The data structure organizes data. The stack data structure can contain many data items just as an array can. Additionally, it has a set of operations that can be performed on the data. A stack structure has a top.2 The Stack Data Structure There are two standard operations that can be performed on the items in a stack, and only the top item of a stack can be processed. The pop operation removes the top item. The push operation add an item to the top of the stack.3 The Stack Data Structure Other stack operations include the isEmpty query, which returns true when there are no items in the stack, and false otherwise. The size operation determines the number of items in a stack. A stack can be emptied with the makeEmpty operation.4 The Stack Data Structure Since the stack is desiged so that the last item pushed on is the first item to be popped, it is sometimes referred to as a last in first out (LIFO) data structure.5 The Queue Data Structure A queue is a data structure similar to a stack in that it holds a number of data items. However, one end of the queue is referred to as the rear and the other end the front. All insertions are made at the read and all removals are made at the front.6 The Queue Data Structure There are two standard operations that can be performed on a queue. The dequeue operation removes an item from the front. The enqueue operation adds an item to the rear.7 The Queue Data Structure A queue is analogous to a line at a ticket counter where first come first serve, and is sometimes referred to as a first in first out (FIFO) data structure.8 The Linked List Data Structure Another way of storing lists of data in memory requires each item to store information that indicates where the next item is stored. The additional information is a reference, or pointer, to a data location. This kind of list data structure called a linked list.9 The Linked List Data Structure The first item in a linked list is called the head, The last item points to a null and is called the tail. Each element of a linked list is called a node.10 The Linked List Data Structure There are two standart operations that can be performed on a linked list. The addAtFront operation adds a new node to the front of the list.11 The Linked List Data Structure The remove operation removes an item from the linked list. Removing an item from a linked list means that the pointer of the previous item is change to point to the item after the one to be removed.12
Tìm kiếm theo từ khóa liên quan:
Java programming language Bài giảng ngôn ngữ lập trình Java Stack data structure The queue data structure Linked list data structureTài liệu liên quan:
-
10 trang 28 0 0
-
Bài giảng Chương 1: Cơ bản về ngôn ngữ lập trình Java
19 trang 27 0 0 -
Bài giảng Ngôn ngữ lập trình Java: Chương 6.2 - TS. Phan Nguyên Hải
34 trang 26 0 0 -
Bài giảng Ngôn ngữ lập trình Java: Phần 2 - TS. Vũ Hữu Tiến
65 trang 24 0 0 -
Bài giảng Công nghệ Java: Chương 0 - Trần Quang Diệu
6 trang 23 0 0 -
Lecture Introduction to Java programming - Chapter 15: Graphics
32 trang 22 0 0 -
Bài giảng Ngôn ngữ lập trình Java căn bản
115 trang 21 0 0 -
Lecture Java programming language: Inheritance and Polymorphism - Ho Dac Hung
11 trang 21 0 0 -
Lecture Introduction to Java programming - Chapter 1: Introduction to computers, programs, and Java
63 trang 19 0 0 -
Bài giảng Ngôn ngữ lập trình Java: Chương 4 - TS. Phan Nguyên Hải
56 trang 19 0 0