Folk Chapter 1 - PowerPoint PPT Presentation

About This Presentation
Title:

Folk Chapter 1

Description:

Folk Chapter 1 Intro to the design and specification of file structures Disks Disks are very slow to access compared with RAM Nano- vs. milli- sec. RAM volitile ... – PowerPoint PPT presentation

Number of Views:84
Avg rating:3.0/5.0
Slides: 9
Provided by: Andrew1308
Category:
Tags: chapter | folk | hybrids

less

Transcript and Presenter's Notes

Title: Folk Chapter 1


1
Folk Chapter 1
  • Intro to the design and specification of file
    structures

2
Disks
  • Disks are very slow to access compared with RAM
  • Nano- vs. milli- sec.
  • RAM volitile
  • Disk non-volitile
  • Disks have higher storage capacity than RAM
  • giga- vs. tera-byte

3
File Structures
  • Def Data in files and operations for access
  • Read
  • Write
  • Modify
  • Order
  • Details of representation and implementation
    determine efficiency
  • Whats best for one app. may be worst for another

4
File structure design course objectives
  • Think creatively about file structure design
    problems
  • Historical presentation of developments
  • Design Goals
  • Single disk access for desired data
  • If not, close to single
  • Aggregate data for multiple data w. 1 disk visit

5
File structure challenges
  • Files static vs. dynamic
  • Ordering
  • Sequential (usually sorted)
  • Indexed
  • Recursive graph structures (e.g. trees)
  • Binary unbalanced vs. balanced (e.g. AVL)
  • N-ary (e.g. B-tree)
  • Randomizing probabilistic structures (hashing)
  • Hybrids of the above (e.g. Btree)

6
File structure literacy
  • Evolution Problem Solution cycle the solution
    to one problem introduces new problems to solve
  • Basic conceptual design tools
  • Aggregation of small things
  • Splitting of large things

7
Object-Oriented Design
  • Class definition unified presentation coupling
    data types and the operations (functions or
    methods) on those data types
  • Each file structure approach is represented by
    its own class
  • Complications Classes in practice are
    progressive, i.e., modifications or extensions of
    other related classes

8
Objects in C
  • struct-like syntax
  • Semantic components
  • Definitions
  • Constructors and destructors
  • encapsulation
  • Access privileges private, public, friend,
    protected
  • Scope resolution ()
  • Operator overloading
  • Inlining
  • Self-reference (this)
Write a Comment
User Comments (0)
About PowerShow.com