CSE 373 Lecture Notes - Lecture 5: Locality Of Reference, Linked List

39 views3 pages
CSE 373 Lecture 5
Implementing Tree Map
- Putting into a tree
o Traversing, then hit null create a new node
- AVL inbalance cases:
Check for + fix inbalances:
Memory architecture
- More memory a layer can store, slower it is
- Accessing disk is very slow
- Balance between speed and space
Locality
Unlock document

This preview shows page 1 of the document.
Unlock all 3 pages and 3 million more documents.

Already have an account? Log in

Document Summary

Putting into a tree: traversing, then hit null create a new node. More memory a layer can store, slower it is. Spatial partition memory you are likely to use close by: arrays + fields, leveraging special locality, bring more in than you need. Temporal computers assume memory you just accessed will be likely accessed in the near future: leveraging temporal locality, once something is loaded into ram or cache, keep it around for a while. Amount of memory moved from disk to ram: called a block/page, ~4kb (smallest unit of data on disk) Amount of memory moved from ram to cache: called a cache line, ~64 bytes. Operating system is boss: controls page and cache line size, decides when to move or evict data. Progra(cid:373) asks ja(cid:448)a virtual machi(cid:374)e (cid:894)jvm(cid:895) for (cid:373)ore (cid:373)e(cid:373)ory fro(cid:373) the (cid:862)heap(cid:863) (cid:894)pile of recently used memory) If necessary, jvm asks operating system for more memory.

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