A tree is a widely-used data structure that emulates a hierarchical tree-like structure with a set of linked nodes.

**0**

votes

**0**answers

15 views

### Connecting two 2-3 trees to a value x

Given two 2-3 trees, T1 and T2, and a value x, such that all elements of T1 are less than x and all elements of T2 are greater than x, how do I construct a new tree T' that contains all elements of T1,...

**0**

votes

**0**answers

9 views

### Tree implementation in java, based on user input

Essentially, I'm trying to put together a program that starts from a root, and builds a tree based on the users input. The root may have as many children as possible, and those children may also have ...

**-1**

votes

**1**answer

47 views

### How to execute a piece of code only once in a recursive function while running the rest of it recursively? [on hold]

Given that I don't have access to the driver function, I want the compiler to execute a block of code in my recursive function only once in the call from the driver function and NOT during the ...

**-3**

votes

**0**answers

25 views

### Traverse object graph using reflection c# [on hold]

I need to implement an algorithm that goes through an entire Object and gets all of it's properties using Reflection (including all nested properties).The algorithm must not be recursive to avoid ...

**0**

votes

**0**answers

14 views

### What is the time complexity of WITH recursive in MYSQL database?

I want to create a parentid/children relation in MYSQL and I searched in stackoverflow an example to create this and I saw this code "Getting all children of a specified node" (source): WITH ...

**0**

votes

**1**answer

47 views

### Finding the largest area of equal numbers in matrix java

I have a task.I need to find the biggest area with equal numbers(e.g. neighbours by row or column). The program that i made works fine,but the problem is that if i have the following matrix:{ 1, 3, ...

**0**

votes

**0**answers

17 views

### React.js + D3.js - Nodes overlap each other

I have tree to show data. Can see here TREEIn big data when A is expanded children spread all the free space and overlap each other. Then, if you open the next parent Z the children spread between ...

**0**

votes

**1**answer

62 views

### search data in tree structure

could you please recommend effective (fast) algorithm of searching data in tree structure like below:struct Node{std::string value;Node* parent;std::vector<Node*> childs;}...

**5**

votes

**1**answer

46 views

### Purpose of base case in binary search tree deletion

I am taking a course on algorithms and data structures in Python 3 and my instructor recently introduced us to the binary search tree. However, I am having trouble understanding the deletion algorithm....

**0**

votes

**0**answers

36 views

### Please help me understand this recursive process

Taken from Introduction to Computation and Programming Using Python 2nd ed., the following code is an implementation of the binary decision tree to solve the knapsack problem.For more context check ...

**0**

votes

**1**answer

17 views

### Defining Tree's and Search Function

I am trying to define my tree and create a search function, but I think I am getting lost in the syntax of SML. Here is my treedatatype either=ImAString of string | ImAnInt of int;datatype ...

**1**

vote

**2**answers

51 views

### merging two lists positionally in Scheme

ExampleFirst list: (1 2 3 4)Second list: (* slot (- slot (/ slot slot)))Output: (* 1 (- 2 (/ 3 4)))The first list's elements will be inserted to the second list.The symbol slot in second ...

**0**

votes

**1**answer

39 views

### Collect values as I recurse tree in javascript

I understand basic recursion, but this problem has be stumped. I have a tree structure set up in a database, where each node(row) has an id and parent id.I need a function that can run and in the ...

**-2**

votes

**0**answers

13 views

### Python CLI-based navigation menu

I am wanting to develop a python program with a CLI-based menu that will include the ability to navigate a simple tree structure, selecting nodes and subnodes. The tree structure is illustrated below....

**1**

vote

**0**answers

33 views

### How to derive a parent-child table from a hierarchical table using R?

I'm attempting to use the collapsibleTree htmlwidget which requires a dataframe containing a row for each node, i.e. containing all parent-child relationships (known as a DataFrameNetwork in data.tree ...