![[자료구조] Binary Search Tree _ 이진 탐색 트리 포스팅 썸네일 이미지](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcYYUoR%2Fbtq2hCEiWxn%2FAAAAAAAAAAAAAAAAAAAAAGjZb4BtWAv_6hFQmGSlSA0B8SjKpM4u8wem7X8Lx2em%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DgUL3tzqvTYoOGBgiRAiVYmJGdvc%253D)
CS/자료구조
[자료구조] Binary Search Tree _ 이진 탐색 트리
Binary Search Tree 1) 데이터 특징: Left Child의 key값은 parent보다 작고, Right Child의 key 값은 parent보다 큼. 2) 형태적 특징: Binary Tree - Inorder Traversal of BST = 오름차순 sort Searching – Recursive ver. Searching – Iterative ver. Searching BST의 시간 복잡도 - Average case: O(h), h=height of tree - Worst case: O(n), n=number of nodes Insertion BST의 시간복잡도 - O(h), h=height of tree Insertion (1) Insertion (2) – Modified Searc..