Questions tagged as 'arbol-binario'

2
answers

Avoid memory leakage C #

I have a class to make a tree that can be traversed up and down, with reference to the parent node, something like this: public class Nodo { protected List<Nodo> Hijos... public Nodo Padre.... public void Add(Nodo nodo) { n...
asked by 19.09.2018 / 18:23
0
answers

How to use SPLIT in a binary tree data structure to separate a txt file

I need to create a binary tree in java that reads a txt text externally and that each word stores it in a node so that when I want to search for that data, I'll do it all in automatic.     
asked by 07.12.2018 / 17:38
1
answer

Instden bst tour along with the level of each node - JAVA

One slogan raises the following: "Develop a method that allows you to print on screen, so ascending, the code of each node next to the level where it is said node. " It gives me to understand that I have to do an inorder tour but showing...
asked by 11.11.2018 / 15:22
0
answers

What's wrong with this program?

I'm working on a program with trees, it's the first one I do and when I compile it I throw segmantation fault and I do not know what is wrong. struct Nodo { int Dato; struct nodo *izq, *der; }; typedef struct Nodo nodoArbol; typedef n...
asked by 26.10.2018 / 01:56
0
answers

How to load data through files in a java program?

This is my code for file management package arbolBinario; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.PrintWriter; public class archivos { public archivos() {...
asked by 04.08.2018 / 18:28
0
answers

Tree in binary tree

I am creating a genealogical tree in java, however, the saved data must be string, they must have the possibility of having several brothers and the parents must go to the left, mothers to the right. My problem is the creation of this tree itsel...
asked by 05.07.2018 / 08:43
0
answers

Draw binary tree

I must make a binary tree that keeps people with their age. I already have the tree code keeping records but I need to show it in the following way (attached image): This is the code I have done so far, thanks for your help. #include...
asked by 24.05.2018 / 22:07