Skip to content

Btree

  • B-Tree: 다방향 탐색 트리. 대용량의 파일을 효율적으로 검색하고 갱신하기 위해 고안된 트리 형태의 자료 구조이다.
  • B+Tree: B-Tree와 유사하나 실제 데이터는 최하위에 존재하며 순차적으로 연결되어 있다. 따라서 순차적인 값을 찾을때는 훨씬 유리하나 특정 값을 찾을때는 최밑단까지 가야 하는 단점이있음.
  • B*Tree: B+Tree에서 합병의 비용을 줄이기 위해 재배치를 활용하도록 한 트리라고 한다.

Libraries

Favorite site

References


  1. Www.touc.org.zip 

  2. Btree-1.0-by_Thomas_H_Cormen.tar.gz 

  3. These routines implement a B-Tree data structure. I developed most of this code using Introduction to Algorithms by Thomas H. Cormen, Charles E. Leiserson and Ronald L. Rivest. The code implements B-Tree and not B-Tree+. B-Tree+ allow you to do an in order traversal of the data without having to lock each node. Currently the code isn't reetrant, but I plan on making it so.