Title: Heap Implementation of IStructures
1Heap Implementation of I-Structures
EE-653 Project Professor Dr. Jean Luc
Gaudiot Daman Ahluwalia
2Contents
- Heaps
- I-structure
- I-structures as Heaps
- Operations
- Advantages and Disadvantages
- Future Work
3An Overview of Heaps
- Directed Acyclic Graphs
- Each Node is either a fork or a leaf
- Value is represented at leaf of the graph tree
4A 3x3 Array represented as a Heap
A
A11
A22
A21
A13
A12
A11
A31
A32
A33
5A 3x3 Array represented as a Heap
A
A
A11
A22
A21
A13
A12
A11
A31
A32
A33
A33
6Disadvantages of Heap Approach
- Large Start-up Overhead
- Sequentialization of array operations
- Centralization of array access
- Centralization of array
- Storage overhead
7An 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.
8An 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
9An 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
10I-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
11Operation
A
Process B Read(A11)
11
11
00
00
01
B
A11
12Operation contd.
A
Process C Read(A11)
11
11
00
00
01
C
A11
13Operation contd.
A
Process C Read(A33)
11
11
11
00
01
01
C
C
A33
A11
14Operation contd.
A
Process D Write(A11)
11
11
11
00
11
01
C
C
A33
A11
15Operation contd.
A
A
Process E Write(A11)
11
11
11
11
11
00
10
01
10
C
A11
A33
A33
A11
16Advantages and Disadvantages
- No Large Start-up Overhead
- No Race Condition
- No Deferred Writes
- Parallel Processing of Deferred Lists
- Temporal and Spatial Locality
- Fast
17Advantages and Disadvantages contd.
- Centralization of array
- Centralization of array access
- Storage overhead
18Future Work
- Investigate the effects of this new scheme
- Explore efficient method to reclaim the memory
space