| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
- 문자열
- raw data
- function
- 티스토리챌린지
- Data Science
- array
- string
- C++
- pass by reference
- Deep Learning
- 함수
- vscode
- programming
- 배열
- Class
- assignment operator
- 알고리즘
- const
- 백준
- baekjoon
- 파이썬
- Python
- pointer
- 포인터
- Pre-processing
- predictive analysis
- OOP
- 오블완
- 반복문
- Object Oriented Programming
- Today
- Total
Channi Studies
[Data Structures] Binary Tree - 2 | Application of Trees (File Systems, BSP) 본문
[Data Structures] Binary Tree - 2 | Application of Trees (File Systems, BSP)
Chan Lee 2025. 4. 22. 02:09File Systems
Trees are commonly used to represent hierarchical data. A tree represent files and directories in a file system, since a file system is a hierarchy.

A file in a file system tree is alwyas a leaf node.
A directory in a file system tree can be both leaf node or internal node.
Unlike binary trees that have a fixed number of children per node (0-2), a file system tree must support a variable number of children per directory node.
Binary Space Partitioning (BSP)
Binary space partitioning (BSP) is a technique of repeatedly separating a region of space into 2 parts and cataloging objects contained within the regions. A BSP tree is a binary tree used to store information for binary space partitioning. Each node in a BSP tree contains information about a region of space and which objects are contained in the region.
In graphics applications, a BSP tree can be used to store all objects in a multidimensional world. The BSP tree can then be used to efficiently determine which objects must be rendered on screen. The viewer's position in space is used to perform a lookup within the BSP tree. The lookup quickly eliminates a large number of objects that are not visible and therefore should not be rendered.

When traversing down a BSP tree, half of the spaces are eliminated each level, and approximately half of the elements are elimiated, but not exactly.
In practice, most BSP implementations partition according to how objects exist in the world, not simply just in the middle.
'Data Science > Data Structure & Algorithm' 카테고리의 다른 글
| [Data Structure] BST Operations - Search, Insert, and Remove (0) | 2025.04.22 |
|---|---|
| [Data Structure] Binary Search Trees (0) | 2025.04.22 |
| [Data Structures] Binary Trees - 1 (0) | 2025.04.22 |
| [Data Structure] Hash Table - 6 | Python Implementation (0) | 2025.04.10 |
| [Data Structure] Hash Table 5 - Common Hash Functions (0) | 2025.04.10 |