| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 알고리즘
- function
- 티스토리챌린지
- string
- 백준
- C++
- 포인터
- baekjoon
- raw data
- 오블완
- assignment operator
- pointer
- 파이썬
- Pre-processing
- 문자열
- pass by reference
- Data Science
- 배열
- programming
- Class
- 반복문
- 함수
- Python
- OOP
- predictive analysis
- const
- vscode
- Object Oriented Programming
- Deep Learning
- array
- Today
- Total
목록Data Science (94)
Channi Studies
A binary search tree can be implemented in Python using a Node class and a BinarySearchTree class. The Node class contains a key value and data members for the left and right children nodes. The BinarySearchTree class contains a data member for the tree's root (a Node object).class Node: def __init__(self, key): self.key = key self.left = None self.right = Noneclass Binar..
Parent PointersA BST implementation often includes a parent pointer inside each node. A balnaced BST, such as an AVL tree or red-black tree, may utilize the parent pointer to traverse up the tree from a particular node to find a node's parent, grandparent, or siblings. Balanced Binary Tree - GeeksforGeeksYour All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that..
Binary Search Tree Inorder TravsersalA tree traversal algorithm visits all nodes in the tree once and performs an operation on each node. An inoreder traversal visits all nodes in a BST from smallest to largest, which is useful for example to print the tree's nodes in sorted order.Starting from the root, the algorithm recursively prints the left subtree, the current node, and the right subtree. ..
SearchGiven a key, a search algorithm returns the first node found matching that key, or returns null if a matching node is not found. A simple BST search algorithm checks the current node (initially the tree's root node), returning that node as a match, else assigning the current node with the left (if key is less) or right (if key is greater) child and repeating. If such a child is null, the a..