external memory algorithms - mit

Upload: dhruv-matani

Post on 05-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/2/2019 External Memory Algorithms - MIT

    1/7

    CPU

    Cache Disk

    .

    .

    .

    size M

    M/B blocks

    fast slow

  • 8/2/2019 External Memory Algorithms - MIT

    2/7

  • 8/2/2019 External Memory Algorithms - MIT

    3/7

    N/B

    N/2B N/2B.

    .

    .

    .

    .

    .

    O(1) O(1) O(1) O(1) O(1)

    N/B

    N/B

    N/B

  • 8/2/2019 External Memory Algorithms - MIT

    4/7

    N/B

    (N/(M/B))(1/B).

    .

    .

    .

    .

    .

    M/B

    N/B

    N/B

    N/B (N/M leaves)

    .. .M/B subproblems

    (N/(M/B))(1/B)

    M/B M/B M/B M/B

  • 8/2/2019 External Memory Algorithms - MIT

    5/7

    O(M/B)

    M

    O(M/B) children

    M

    .

    .

    .

    O(B)

    -

    -

  • 8/2/2019 External Memory Algorithms - MIT

    6/7

    -

    -

    -

    -

    -

    -

    - -

    -

    -

    -

  • 8/2/2019 External Memory Algorithms - MIT

    7/7

    -