Heap Implementation of IStructures - PowerPoint PPT Presentation

1 / 18
About This Presentation
Title:

Heap Implementation of IStructures

Description:

An Overview of Heaps. Directed Acyclic Graphs. Each Node is ... Disadvantages of Heap Approach. Large Start-up Overhead. Sequentialization of array operations ... – PowerPoint PPT presentation

Number of Views:39
Avg rating:3.0/5.0
Slides: 19
Provided by: ceng9
Category:

less

Transcript and Presenter's Notes

Title: Heap Implementation of IStructures


1
Heap Implementation of I-Structures
EE-653 Project Professor Dr. Jean Luc
Gaudiot Daman Ahluwalia
2
Contents
  • Heaps
  • I-structure
  • I-structures as Heaps
  • Operations
  • Advantages and Disadvantages
  • Future Work

3
An Overview of Heaps
  • Directed Acyclic Graphs
  • Each Node is either a fork or a leaf
  • Value is represented at leaf of the graph tree

4
A 3x3 Array represented as a Heap
A
A11
A22
A21
A13
A12
A11
A31
A32
A33
5
A 3x3 Array represented as a Heap
A
A
A11
A22
A21
A13
A12
A11
A31
A32
A33
A33
6
Disadvantages of Heap Approach
  • Large Start-up Overhead
  • Sequentialization of array operations
  • Centralization of array access
  • Centralization of array
  • Storage overhead

7
An Overview of I-Structures
  • Basically,it is a data structure with a presence
    bit associated with each element.
  • Various states are Empty,Full or Deferred.

8
An Overview of I-Structures contd.
  • Presence DATA
  • Two Changes is made to the this basic structure
  • In addition to presence bit , LIST BIT is also
    introduced

Empty state, DATA unavailable Full state, DATA
available Deferred state, DATA unavailable
9
An Overview of I-Structures contd.
  • Also in Deferred state, data fields stores two
    pointers, Head_of_list and End_of_list.

Presence List Data
Empty state, DATA unavailable Full state, DATA
available, No Wait list Deferred state, DATA
unavailable Full state, DATA available, Wait List
10
I-Structure As Heap
A
11
11
11
11
11
11
11
11
11
11
11
11
11
A11
A22
A21
A13
A12
A11
A31
A32
A33
11
Operation
A
Process B Read(A11)
11
11
00
00
01
B
A11
12
Operation contd.
A
Process C Read(A11)
11
11
00
00
01
C
A11
13
Operation contd.
A
Process C Read(A33)
11
11
11
00
01
01
C
C
A33
A11
14
Operation contd.
A
Process D Write(A11)
11
11
11
00
11
01
C
C
A33
A11
15
Operation contd.
A
A
Process E Write(A11)
11
11
11
11
11
00
10
01
10
C
A11
A33
A33
A11
16
Advantages and Disadvantages
  • No Large Start-up Overhead
  • No Race Condition
  • No Deferred Writes
  • Parallel Processing of Deferred Lists
  • Temporal and Spatial Locality
  • Fast

17
Advantages and Disadvantages contd.
  • Centralization of array
  • Centralization of array access
  • Storage overhead

18
Future Work
  • Investigate the effects of this new scheme
  • Explore efficient method to reclaim the memory
    space
Write a Comment
User Comments (0)
About PowerShow.com