binary-tree
What's parent node and how to store it?
I want to sol开发者_StackOverflowve this problem. Even IVlad answered the problem, I didn\'t understand what\'s parent node and what\'s child node. Can you explain me?Any node that has a child is call[详细]
2023-03-01 10:20 分类:问答How does a red-black tree work?
There are lots of questions around about red-black trees but none of them ans开发者_如何学Pythonwer how they work.Why is it called red-black?How does this keep the tree balanced (thus increasing perfo[详细]
2023-03-01 09:25 分类:问答help with insert on first BST
EDIT there a small thing that I am missing!! the error is still there So I am attempting to learn how to code my first BST, and it is hard.... I am already having trouble with just a few lines of cod[详细]
2023-03-01 02:39 分类:问答C linked list inserting node at the end
I\'m having some trouble with my insertion method for a linked list in C. It seems to only add at the beginning of the list. Any other insertion I make fail. And this CodeBlocks debugger is so hard to[详细]
2023-03-01 02:24 分类:问答Permutation of string limited by another string
I\'m having a bit of trouble, mainly because I do not have much experience with recursive methods and a non-recursive method for my problem seems incredibly complex. However, I might just be looking a[详细]
2023-03-01 00:30 分类:问答Converting Binary Tree into a sorted array
Following my previous question, I would like now to put the Binary Tree values in a sorted array. So, first I used my numOfNodeswnfunction that counts total sum of nodes in my tree,[详细]
2023-02-28 19:54 分类:问答Binary tree insert()
I am trying to fill a binary tree with letters which will then be used to encode a Morse code sequence but I am stuck on my insert() method its adding a letter twice or more.[详细]
2023-02-28 11:40 分类:问答Confused on claim in CLRS randomly built binary search tree proof
Not sure if I should put this on开发者_运维知识库 math stackexchange instead, but oh well. On page 300 of CLRS...[详细]
2023-02-27 11:28 分类:问答Binary trees in Prolog
I need write a prolog program that read from keyboard such positive numbers until the user writes \'stop\' and builds a binary dictionary without duplicates.[详细]
2023-02-27 09:23 分类:问答Merging AVL trees using an empty tree (C++ templates)
As part of an AVL template I am working on (C++ templates) I was trying to merge 2 AVL trees in O(n1+n2开发者_如何学Go) complexity when n1+n2 is the total elements in both trees.[详细]
2023-02-27 02:16 分类:问答