Fluffykitten5075 Fluffykitten5075
  • 02-09-2019
  • Computers and Technology
contestada

Which method of traversing a tree would result in a sorted list for a binary search tree?

Respuesta :

StaceeLichtenstein StaceeLichtenstein
  • 05-09-2019

Answer:

The inorder traversal make a binary search tree sorted.

Explanation:

The algorithm of inorder traversal is

1.  Traverse the left subtree.

2.  print the data .

3. Traverse the right subtree

In this algorithm left subtree  is visited first then it print the data or visit the data and finally it visited Right subtree .

Answer Link

Otras preguntas

I need help as soon as posable
what was iron used to make in the middle colonies? A) ships B) buildings C) furniture D) tools
Heather is saving for retirement and has been doing a lot of research on how much she should put aside each month. The newest article says that 1/36 of her sal
What is one subcellular structure where genes are found within eukaryotic cells
Help please it makes no sense
Regular exercise has been shown to increase
mrs smith agrees to pay 5 neiborhood boys $20 to clean her yard. they do such a good job she gives them some extra money, for a totall of $23.50¢. if the boys s
Read this sentence: The athletes, coaches, and newscasters all commingled at the same dinner after the Olympic opening ceremonies. Which word from the sentence
helpppppppppppppp please
The graph shows the number of laps that Jan runs as her coach times her. What is the slope of the line and what does it mean in this situation? The slope of the