Presentation is loading. Please wait.

Presentation is loading. Please wait.

Overview of Course Java Review 1. This Course Covers, using Java Abstract data types Design, what you want them to do (OOD) Techniques, used in implementation.

Similar presentations


Presentation on theme: "Overview of Course Java Review 1. This Course Covers, using Java Abstract data types Design, what you want them to do (OOD) Techniques, used in implementation."— Presentation transcript:

1 Overview of Course Java Review 1

2 This Course Covers, using Java Abstract data types Design, what you want them to do (OOD) Techniques, used in implementation (class) Example: integers, strings, lists, etc Data structures Ways of organizing large quantities of data in computer’s memory Vector lists, linked lists, trees, hash tables Problem solving Solving problems in managing data structures Using data structures to solve real problems 2

3 THINK BIG: how does Amazon keep track of inventory, customer reviews, suppliers? how does Google keep track of web links? how does Google maps find the shortest route between two cities? how does your email get sorted by name, date, etc? 3

4 Java Collection Classes PERHAPS ONE OF THE MOST IMPORTANT changes to the Java environment over the past few years has been the introduction of a set of classes informally called the collection classes. This group of classes fills out java.util, bringing many commonly used data structures under one roof. For example, there is a Stack class. Unfortunately, there is no Queue. http://download.oracle.com/javase/tutorial/collections/ http://download.oracle.com/javase/tutorial/collections/ 4

5 Some examples of data structures Arrays, 2D Arrays Vector Lists, Linked Lists Algorithms for processing lists Stacks, Queues Trees 5

6 An example Array of Readings stored in memory starting at address x 6

7 A two-dimensional array with four rows and five columns stored in row major order 7

8 Storing names in memory as a contiguous list ( vector list ) 8

9 Storing names in a linked list 9

10 Using a stack to print a linked list in reverse order (continue d) 10

11 Using a stack to print a linked list in reverse order 11

12 A queue implemented with head and tail pointers 12

13 A queue “crawling” through memory 13

14 A circular queue (b) in its conceptual form in which the last cell in the block is “adjacent” to the first cell 14

15 An example of an organization chart 15

16 Tree terminology 16

17 The structure of a node in a binary tree 17

18 The conceptual and actual organiza- tion of a binary tree using a linked storage system 18

19 What good are all these things? Here are some applications you'll learn about: 19

20 20

21 21

22 22

23 23

24 24

25 25


Download ppt "Overview of Course Java Review 1. This Course Covers, using Java Abstract data types Design, what you want them to do (OOD) Techniques, used in implementation."

Similar presentations


Ads by Google