Skip to content

Commit 0497cf2

Browse files
Enhance trees.json with additional categories and detailed descriptions for tree operations
Signed-off-by: Maisha Supritee Chowdhury <[email protected]>
1 parent 61d9cc3 commit 0497cf2

File tree

1 file changed

+68
-12
lines changed

1 file changed

+68
-12
lines changed

web/thesauruses/_meta/trees.json

Lines changed: 68 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,88 @@
1010
"create_node_class": "Creating the node class or struct",
1111
"create_a_node_object": "Creating an object of the node class or struct",
1212
"create_tree_class": "Creating the tree class",
13-
"create_a_tree_object": "Creating an object of the tree class"
14-
},
15-
"Insertions": {
16-
"insert_node_in_empty_tree": "Inserting a new node in an empty tree",
17-
"insert_node_in_binary_tree": "Inserting a node with a given value in a binary tree",
18-
"insert_node_in_bst_recursion": "Inserting a node with a given value in a binary search tree using recursion",
19-
"insert_node_in_bst_iteration": "Inserting a node with a given value in a binary search tree using iteration",
20-
"insert_node_in_avl_tree": "Inserting a node with a given value in an AVL tree"
13+
"create_a_tree_object": "Creating an object of the tree class",
14+
"create_node_for_tst": "Creating a node for a ternary search tree (TST)",
15+
"create_n_ary_trees": "Creating N-ary trees",
16+
"create_btree_node": "Creating a node for a B-tree",
17+
"create_btree": "Creating a B-tree",
18+
"create_b+tree_node": "Creating a node for a B+ tree",
19+
"create_b+tree": "Creating a B+ tree"
2120
},
2221
"Depth-First Traversals":{
2322
"inorder_tree_traversal": "Inorder Tree Traversal",
2423
"preorder_tree_traversal": "Pre-order Tree Traversal",
25-
"postorder_tree_traversal": "Post-order Tree Traversal"
24+
"postorder_tree_traversal": "Post-order Tree Traversal",
25+
"tst_tree_traversal": "Ternary Search Tree (TST) Traversal",
26+
"n_ary_tree_level_order_traversal": "N-ary Tree Level Order Traversal using DFS",
27+
"btree_traversal": "B-tree Traversal"
2628
},
2729
"Breadth-First Traversals":{
2830
"level_order_tree_traversal_recursion": "Level Order Tree Traversal using recursion",
29-
"level_order_tree_traversal_queues": "Level Order Tree Traversal using queues"
31+
"level_order_tree_traversal_queues": "Level Order Tree Traversal using queues",
32+
"n_ary_tree_level_order_traversal": "N-ary Tree Level Order Traversal using BFS"
33+
},
34+
"Balancing Trees":{
35+
"is_balanced_binary_tree": "Check if a binary tree is height-balanced",
36+
"balance_factor_of_node": "Finding the balance factor of a node in an AVL tree",
37+
"right_rotation_avl_tree": "Right rotation in an AVL tree",
38+
"left_rotation_avl_tree": "Left rotation in an AVL tree",
39+
"left_right_rotation_avl_tree": "Left-Right rotation in an AVL tree",
40+
"right_left_rotation_avl_tree": "Right-Left rotation in an AVL tree",
41+
"rebalance_avl_tree": "Rebalancing an AVL tree after insertion or deletion",
42+
"is_red_black_tree": "Check if a binary tree is a valid Red-Black tree"
43+
},
44+
"Insertions": {
45+
"insert_node_in_empty_tree": "Inserting a new node in an empty tree",
46+
"insert_node_in_binary_tree": "Inserting a node with a given value in a binary tree",
47+
"insert_node_in_bst_recursion": "Inserting a node with a given value in a binary search tree using recursion",
48+
"insert_node_in_bst_iteration": "Inserting a node with a given value in a binary search tree using iteration",
49+
"insert_node_in_avl_tree": "Inserting a node with a given value in an AVL tree",
50+
"insert_node_in_red_black_tree_black_parent": "Inserting a node in a Red-Black tree when the parent is black",
51+
"insert_node_in_red_black_tree_red_parent_and_uncle": "Inserting a node in a Red-Black tree when the parent and uncle are red",
52+
"insert_node_in_red_black_tree_red_parent_and_black_uncle": "Inserting a node in a Red-Black tree when the parent is red and uncle is black",
53+
"insert_node_in_red_black_tree_top_down_insertion": "Top-down insertion in a Red-Black tree",
54+
"insert_node_in_tst": "Inserting a word in a ternary search tree (TST)",
55+
"insert_node_in_btree": "Inserting an element in a B-tree",
56+
"insert_node_in_parent_b+tree": "Inserting an element in a parent node of a B+ tree",
57+
"insert_node_in_leaf_b+tree": "Inserting an element in a leaf node of a B+ tree",
58+
"insert_node_in_b+tree": "Inserting an element in a B+ tree"
3059
},
3160
"Deletions":{
3261
"delete_node_binary_tree": "Deleting a node with a given value from a binary tree",
3362
"delete_leaf_node_bst": "Deleting a leaf node from a binary search tree",
3463
"delete_node_with_single_child_bst": "Deleting a node with a single child from a binary search tree",
35-
"delete_node_with_both_children_bst": "Deleting a node with both children from a binary search tree"
64+
"delete_node_with_both_children_bst": "Deleting a node with both children from a binary search tree",
65+
"delete_node_avl_tree": "Deleting a node with a given value from an AVL tree",
66+
"delete_black_node_red_sibling_red_black_tree": "Deleting a black node with a red sibling node from a Red-Black tree",
67+
"delete_black_node_black_sibling_black_children_red_black_tree": "Deleting a black node with a black sibling node that has black children from a Red-Black tree",
68+
"delete_black_node_black_sibling_far_red_child_red_black_tree": "Deleting a black node with a black sibling node that has a far red child from a Red-Black tree",
69+
"delete_black_node_black_sibling_near_red_child_red_black_tree": "Deleting a black node with a black sibling node that has a near red child from a Red-Black tree",
70+
"delete_node_in_tst": "Deleting a word from a ternary search tree (TST)",
71+
"delete_node_in_btree": "Deleting an element from a B-tree",
72+
"delete_node_in_b+tree": "Deleting an element from a B+ tree"
3673
},
3774
"Search":{
38-
75+
"search_value_in_binary_tree": "Searching for a value in a binary tree",
76+
"search_value_in_bst_recursion": "Searching for a value in a binary search tree using recursion",
77+
"search_value_in_bst_iteration": "Searching for a value in a binary search tree using iteration",
78+
"search_word_in_tst": "Searching for a word in a ternary search tree (TST)",
79+
"search_element_in_btree": "Searching for an element in a B-tree",
80+
"search_element_in_b+tree": "Searching for an element in a B+ tree"
81+
},
82+
"Find":{
83+
"find_minimum_value_in_bst": "Finding the minimum value in a binary search tree",
84+
"find_maximum_value_in_bst": "Finding the maximum value in a binary search tree",
85+
"find_height_of_tree": "Finding the height of a tree",
86+
"find_depth_of_node": "Finding the depth of a node in a tree",
87+
"find_lca_binary_tree": "Finding the lowest common ancestor (LCA) of two nodes in a binary tree",
88+
"find_lca_bst": "Finding the lowest common ancestor (LCA) of two nodes in a binary search tree",
89+
"find_kth_smallest_element_bst": "Finding the k-th smallest element in a binary search tree",
90+
"find_kth_largest_element_bst": "Finding the k-th largest element in a binary search tree",
91+
"find_diameter_of_tree": "Finding the diameter of a tree",
92+
"find_level_of_node": "Finding the level of a node in a tree",
93+
"find_parent_node_btree": "Finding the parent node of a given node in a B-tree",
94+
"find_predecessor_successor_bst": "Finding the predecessor and successor of a given node in a binary search tree"
3995
}
4096

4197
}

0 commit comments

Comments
 (0)