Title: Lecture 15 Indexed Sequential Access, B trees, Simple prefix B trees Sections 10'1 10'5
1Lecture 15 Indexed Sequential Access,
Btrees,Simple prefix Btrees (Sections 10.1
10.5)
In the Name of God
2Indexed Sequential Access Btrees, Simple prefix
Btrees
- ????? ??? ??? ???? ??????? ?????? ?? ???? ??? ??
???? ??????? - ??????? ??? Indexed Sequential ?????
- ???????????? ISAM ????? ???? ????
- ??? ?????? B-tree ????? ?????? ??? ?? ??????? ??
?????? ???? ?????? - ????? ?????? ??? ?? ???????? ?? ???? ?????? ????
???? ?????? - ?????? ?? Sequence Set ????? ????
- ???????????? Btree ????? ????
- ???????????? Simple Prefix Btree ????? ????
-
3Indexed Sequential Access
- ????? ??? ??? ???? ??????? ?????? ?? ????
??? ?? ???? ??????? - ??? ?????? ???? ?????? (Indexed Access Method )
- ?????? ?? ???? ?????????? ???? ?? ??????? ??
???? ? ??????. - ??? ?????? ??? (Sequential Access Method )
- ?????? ?? ???? ???????? ???? ?? ????? ???? ????
??? ???? ??????? ?? ??????. (????) - ?? ??????? ???? ???????? ???? ?? ??? ?????? ??
??? ???? ???? ???? ??? ?????. - ?????? ??? ??? ?? ???? ?????? ?? (Batch
Processing) ?? ?????? ?? ????? ?????? ??? ????
???????? ???? ????? ?? ????. - ???? ?????? ???? ??????? ???????? ?? ??????.
4History ISAM File
???????????? ??? ISAM ????? ???? ????
Prof. Hyoung-Joo Kim, Comp Eng, Seoul National
Univ
5History ISAM File
???????????? ??? ISAM ????? ???? ????
Example Reorganization
Prof. Hyoung-Joo Kim, Comp Eng, Seoul National
Univ
6Indexed Sequential Access
- ??? ?????? B-tree ????? ?????? ??? ?? ???????
?? ?????? ???? ?????? - ?? ?????? B-tree
- ?????? ???? ??? ???? ?????? ?????? ?????? ??
???????? ???? ???????. - ??????? ????? ???? ???? ???????? ???? ?????
??????? ???. - ?????? ??? ?? ???????? ???? ?????? ???? ????
???????. (????) - ????? ?????? ??? ?? ???????? ?? ???? ??????
???? ???? ?????? - ???? ?????? ?? ???? ???? ???? (sort) ???? ?????
??? ?? ????? - ?????? ???? ?? ?? ???? ???????? ?? ???????? ????
??? ??????? ????. - ??? ?????? ????? ?? Sequence Set ??????.
7Indexed Sequential Access
- ?????? ?? Sequence Set ????? ????
- ???????? ???? ?? ?????? ???? ???? ???? ??????.
- ?? ???? ???? ????? ??? ????? ??? ?? ???????
??????. - ???????? ???? ?? ???? ???? ??? (sorted) ??????.
- ???? ?? ??? ?? ????? ?? ?????? ???? ??? ???????.
- ??? ????? ???? ?? ??? ?????? ????. ???? ??
??????? ??????? ?? ????? ?????. - ?????? ??? ? ????? ??????? ???? ?????? ?? ??? ???
B-Tree ???????. - ????? (insertion) ?? ????? ?? ???? ????? ??? (??
???? ?? ???? ??) ???? ??? ???? ????? ??? (Block
Splitting) ????. (overflow) - ??? (deletion) ?? ????? ?? ?? ???? ???? ??? ????
????? ?? ???? Block Merging ?? Block
Redistribution ????. (underflow)
8Sequence Set
????
(??? 10.1 ???? 427 ????)
9Sequence Set
???? (?????...)
Prof. Hyoung-Joo Kim, Comp Eng, Seoul National
Univ
10Sequence Set
???? (?????...)
Prof. Hyoung-Joo Kim, Comp Eng, Seoul National
Univ
11Sequence Set
- ?????? ?????? sequence set ?????
- ??????? ?? ???? ???? ???? ???????? ???? ???
??????? ????? ?? ??? ????? ??? ????. - ????? ?????? sequence set ?????
- ???? ???? ?????? ???? ??????? ???? ???? ???.
- ??? ???? ?? ?? ?????? 50 ????? ??? ????? ?????
?????. - ????? ?????? ??????? ??? ?? ???? ?? ???? ????
??? ?? ?? ?? ????.
12Sequence Set
- ????? ?????? ?????? ?? ???? ????? ????
- ???? ?? ??? Merge / Redistribution ???????
?????? ????? RAM ???? ???? ???? ????? 2 ?? 3
???? ?? ????? ????. - ???? ??? ?? ???? ?????? ?? ???? ??? ?? ?????? ??
???? (seek) ?????? ????. - ?? ???? ??? ????? ???? ??? ?????? ?? ???? ???????
????? ?? cluster ?????? ???. - ?? ???? ??? ???? ???? ??? ?????? ?? ???? ?? ?????
????? ?? Track ( ?? ??? ?? ) ?????? ???.
13Sequence Set
??? ????? ?????? B-tree ?? ???? ?? ??????
Sequence Set ????? ????
14?????? ?????? BTree
- ???????? ?????? Btree ????? ????
- ?????? ?????? BTree ???? ?? ?????? ?????? ??
B-Tree ?? ????? ??? ?? ?? ????? - ?? BTree ???????? ???? ?? ??? ?? ????? reference
?? ??? parent ???? ?? ???. - 2) ???? ????? ???? ?? ??? parent ?? ??? ????? ??
????.
Key1 ?????
Key3.
Key1.
Key2.
15Simple Prefix BTree
- ???????? ?????? Simple Prefix Btree ????? ????
- ?? ???? ?? ?????? sequence set ?????? ?? ???????
?? separator ??? ????? ??? ?????? ???? ?? ????
???? ??. - Block No. Range of Keys
Separator - 1 Adams-Berne
- 2 Bolen-Cage
- 3 Camp-Dutton
- 4 Embry-Evans
- 5 Faber-Folk
- 6 Folks-Gaddis
????
16Simple Prefix BTree
???????? ?????? Simple Prefix Btree ????? ????
???? (??? 10.7 ???? 434 ????)
Prof. Hyoung-Joo Kim, Comp Eng, Seoul National
Univ