binary-search-tree
- g_tree_insert overwrites all data- I wonder how I should use the GTree (from GLib) to store data? Every new value I insert into GTree with g_tree_insert routine is overwrite the previous one![详细] 2022-12-24 13:28 分类:问答
- Description is only printing out for the last one entered- I\'m quite new to C and I\'m trying to implement a binary tree in C which will store a number and a string and then print them off e.g.[详细] 2022-12-24 07:12 分类:问答
- Binary Search Tree in C- I\'m a Python guy. Learning C language and I\'ve been trying to implement Binary Search Tree in C. I wrote down the code, and I\'ve been trying from few hours but, not able to get the output as expect[详细] 2022-12-23 19:20 分类:问答
- Handling duplicates keys within an AVL tree- I want to make my avl-tree support duplicate keys but there is a problem with the default behavior of the binary search tree with duplicates that the rotation could make nodes with equal key be on the[详细] 2022-12-23 03:58 分类:问答
- What does this pseudo code mean?- Binary Search Tree Successor Function- if right[x] != NIL then return TREE-MINIMUM(right[x]) y<-p[x] while y!= NIL and x = right[y] do x<-y[详细] 2022-12-21 05:56 分类:问答
- Calculate height of a tree- I am trying to calculate the height of a tree. I am doing it 开发者_StackOverflow社区with the code written below.[详细] 2022-12-20 21:26 分类:问答
- Why does my C++ code fail to delete all nodes in my BST?- This is supposed to tra开发者_如何学Goverse a BST and delete every node, including the root node.However, at the end, I get the message \"root still has a left node.\"Why aren\'t all nodes deleted?[详细] 2022-12-20 00:51 分类:问答
- C# Binary Trees and Dictionaries- I\'m struggling with the concept of when to use binary search trees and when to use dictionaries. In my application I did a little experiment which 开发者_StackOverflow社区used the C5 library TreeDic[详细] 2022-12-18 12:10 分类:问答
- BST implementation- What\'s wrong with the following implementation of a binary search tree (BST)? I have been told that it is better to use pointer to a pointer to struct node as an argument in insert function.[详细] 2022-12-16 01:23 分类:问答
- Searching a Binary Search Tree - Array Based- I am trying to search for a word using a key value recursively. In retrieve function: Problem is the index goes from 0, 1,3,7, to 15.... it suppose to go 0,1,3,7,8 and so forth[详细] 2022-12-13 20:21 分类:问答
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......