1 / 37

Figure:

Figure:. Computer Science an overview EDITION 7. J. Glenn Brookshear. C H A P T E R 7. Data Structures. Figure 7.1: Novels arranged by title but linked according to authorship. Figure 7.2: The array of Readings stored in memory starting at address x.

Download Presentation

Figure:

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Figure: Computer Science an overview EDITION 7 J. Glenn Brookshear

  2. C H A P T E R7 Data Structures

  3. Figure 7.1: Novels arranged by title but linked according to authorship

  4. Figure 7.2: The array of Readings stored in memory starting at address x

  5. Figure 7.3: A two-dimensional array with four rows and five columns stored in row major order

  6. Figure 7.4: Names stored in memory as a contiguous list

  7. Figure 7.5: The structure of a linked list

  8. Figure 7.6: Deleting an entry from a linked list

  9. Figure 7.7: Inserting an entry into a linked list

  10. Figure 7.8: A procedure for printing a linked list

  11. Figure 7.9: Nested procedures terminating in the opposite order to that in which they were requested

  12. Figure 7.10: Using a stack to print a linked list in reverse order (continued)

  13. Figure 7.10: Using a stack to print a linked list in reverse order

  14. Figure 7.11: A procedure (using an auxiliary stack) for printing a linked list in reverse order

  15. Figure 7.12: A stack in memory

  16. Figure 7.13: A queue implemented with head and tail pointers

  17. Figure 7.14: A queue “crawling” through memory

  18. Figure 7.15: A circular queue (a) containing the letters F through O as actually stored in memory

  19. Figure 7.15: A circular queue (b) in its conceptual form in which the last cell in the block is “adjacent” to the first cell

  20. Figure 7.16: An example of an organization chart

  21. Figure 7.17: Tree terminology

  22. Figure 7.18: The structure of a node in a binary tree

  23. Figure 7.19: The conceptual and actual organiza- tion of a binary tree using a linked storage system

  24. Figure 7.20: A tree stored without pointers

  25. Figure 7.21: A sparse, unbalanced tree shown in its conceptual form and as it would be stored without pointers

  26. Figure 7.22: The letters A through M arranged in an ordered tree

  27. Figure 7.23: The binary search as it would appear if the list were implemented as a linked binary tree

  28. Figure 7.24: The successively smaller trees considered by the procedure in Figure 7.23 when searching for the letter J

  29. Figure 7.25: Printing a search tree in alphabetical order

  30. Figure 7.26: A procedure for printing the data in a binary tree

  31. Figure 7.27: Inserting the entry M into the list B, E, G, H, J, K, N, P stored as a tree (continued)

  32. Figure 7.27: Inserting the entry M into the list B, E, G, H, J, K, N, P stored as a tree

  33. Figure 7.28: A procedure for inserting a new entry in a list stored as a binary tree

  34. Figure 7.29: A stack of integers implemented in C++

  35. Figure 7.30: A stack of integers implemented in Java and C#

  36. Figure 7.31: Our first attempt at expanding the machine language in Appendix C to take advantage of pointers

  37. Figure 7.32: Loading a register from a memory cell that is located by means of a pointer stored in a register

More Related